Skip to content

Conversation

thymikee
Copy link
Contributor

@thymikee thymikee commented Dec 4, 2024

Summary

Add visionOS platform. cc @okwasniewski
Builds on #41

image

Test plan

Copy link
Contributor

@szymonrybczak szymonrybczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nits! amazing how composable plugins are 💯

if (config) {
await createBuild('visionos', config, args as BuildFlags);
} else {
throw new Error('visionOS project not found.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see that we have v similar errors across codebase when we can't find config. we should find a nice way or do a writeup in docs how to proceed with such case

Comment on lines 63 to 77
xcworkspace=$(find . -maxdepth 1 -name '*.xcworkspace' -type d | head -1)
xcodebuild \
-workspace "${xcworkspace}" \
-scheme "${{inputs.scheme}}" \
-destination "generic/platform=visionOS Simulator" \
-configuration Debug \
-derivedDataPath DerivedData \
ARCHS="${{inputs.architectures}}" \
CODE_SIGNING_ALLOWED=NO \
CLANG_ADDRESS_SANITIZER=NO \
CLANG_UNDEFINED_BEHAVIOR_SANITIZER=NO \
OTHER_CFLAGS='$(inherited) -fno-sanitize=undefined -fno-sanitize=bounds -fstack-protector-strong' \
OTHER_LDFLAGS='$(inherited) -fno-sanitize=undefined -fno-sanitize=bounds -fstack-protector-strong' \
COMPILER_INDEX_STORE_ENABLE=NO \
build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we use build:vision? with --extra-params ofc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can, but I need @mdjastrzebski to test this. for now I'd keep it this way


@implementation HelloWorldTests

- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests don't need to be in the template, I've removed them in 0.77

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, will update that once we migrate the templates to 0.77 :)

@thymikee thymikee force-pushed the feat/run-ios branch 2 times, most recently from 4b93420 to 5bbd4a7 Compare December 12, 2024 14:29
Base automatically changed from feat/run-ios to main December 12, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants