Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build scripts and add visionOS support #1279

Merged
merged 4 commits into from
May 29, 2024
Merged

Conversation

tkukielk
Copy link
Contributor

Multiple fixes:

  • building on Apple Silicon Macs - remove the assumptions that the build machine is always x86_64
  • fix badly broken build.sh for Mac, especially with getopts for options & params
  • extend build-ios.sh to allow building for iOS-derived platforms like visionOS

The expected iOS build invocation is:
build-ios.sh [clean] [release|debug] ${ARCH} ${PLATFORM} where
ARCH = arm64|arm64e|x86_64
PLATFORM = iphoneos|iphonesimulator|xros|xrsimulator

Multiple fixes:
- building on Apple Silicon Macs - remove the assumptions that the build machine is always x86_64
- fix badly broken build.sh for Mac, especially with getopts for options & params
- extend build-ios.sh to allow building for iOS-derived platforms like visionOS

The expected iOS build invocation is:
build-ios.sh [clean] [release|debug] ${ARCH} ${PLATFORM}
where
ARCH = arm64|arm64e|x86_64
PLATFORM = iphoneos|iphonesimulator|xros|xrsimulator
@tkukielk tkukielk requested a review from a team as a code owner May 25, 2024 07:02
The verification pipeline uses older Xcode
-Wno-unused-but-set-variable is unknown to older compilers, add -Wno-unknown-warning-option
@ThomsonTan
Copy link
Contributor

Could the vision OS support to moved to a dedicated script like build-visionos.sh?

@swasti29 swasti29 requested a review from lalitb May 28, 2024 23:53
Copy link
Contributor

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for improving the build script too.

build-ios.sh Show resolved Hide resolved
Copy link
Contributor

@swasti29 swasti29 left a comment

Choose a reason for hiding this comment

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

Just make sure to test for all architecture and platform: device, simulator

@tkukielk tkukielk merged commit 06c0679 into main May 29, 2024
24 checks passed
@tkukielk tkukielk deleted the tkukielk/build-visionOS branch May 29, 2024 21:03
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.

4 participants