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

Update iOS builds to use latest iOS SDK #679

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Conversation

kmagiera
Copy link
Member

In #587 we updated the way we build iOS apps. We started extracting the SDK from the selected device, and using that for the build. Apparently, the assumption that the installed SDK matches the simulator SDK isn't necessarily correct.

When new SDK is released and xcode is updated, the previous versions of SDK seem to get deleted. This isn't true for simulator runtimes. As a result, simulators can continue to use older runtimes while it is no longer possible for xcodebuild to access these.

In this PR, we are updating iOS build pipeline to use "iphonesimulator" without specifying the exact version. This turns out to be handled well by xcodebuild and allows it to select the most recent, available SDK.

How Has This Been Tested:

  1. Create iOS device with iOS 17 runtime (make sure you don't have SDK 17 installed by running xcodebuild -showsdks
  2. Force rebuild the app to make sure the build process starts.
  3. Before this change the build would fail because of missing sdk

Copy link

vercel bot commented Oct 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
radon-ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2024 10:35pm

Copy link
Collaborator

@filip131311 filip131311 left a comment

Choose a reason for hiding this comment

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

passed test plan

@kmagiera kmagiera merged commit 4b07d3b into main Nov 1, 2024
4 checks passed
@kmagiera kmagiera deleted the kmagiera/use-latest-ios-sdk branch November 1, 2024 13:08
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.

2 participants