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

iOS build fix for Xcode 15 #1149

Merged
merged 6 commits into from
May 5, 2024
Merged

Conversation

louisg1337
Copy link
Contributor

@louisg1337 louisg1337 commented May 3, 2024

This PR fixes an error we had while building using Xcode 15, see here.

For testing, I did a fresh install rm -rf platforms plugin && bash setup/setup_ios_native.sh, and then tried building using Xcode and npm run build-dev-ios and they both worked.

@@ -36,6 +36,8 @@
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
<platform name="ios">
<preference name="deployment-target" value="12.0"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

we actually want the deployment target to be 13. That is the minimum version that we have supported for a while to get our javascript to work.


for (let path of paths) {
let content = fs.readFileSync(path, { encoding: 'utf-8' });
content = content.replace(/IPHONEOS_DEPLOYMENT_TARGET = [0-9]+.0;/g, 'IPHONEOS_DEPLOYMENT_TARGET = 12.0;');
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto

@shankari
Copy link
Contributor

shankari commented May 5, 2024

I am actually going to make the changes myself since we now have one showstopper and one unblocking hack to merge and deploy to production ASAP

#1150
#1151

shankari added 3 commits May 5, 2024 12:17
- We want to upgrade the pinned version of the OS to the next one
- We don't want to run on `latest` because then changes to the underlying
  runner will break all tests, including for pull requests, and block
development.

Instead, we should schedule a periodic (~ once a week) check against `latest`
so we know when the latest has changed, and can fix it before again bumping up
the pinned version @louisg1337

Also, there was a typo in `latest` :smile
Copy link

codecov bot commented May 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 26.40%. Comparing base (9f3fc59) to head (d890502).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1149   +/-   ##
=======================================
  Coverage   26.40%   26.40%           
=======================================
  Files         114      114           
  Lines        4983     4983           
  Branches     1069     1064    -5     
=======================================
  Hits         1316     1316           
  Misses       3665     3665           
  Partials        2        2           
Flag Coverage Δ
unit 26.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@shankari
Copy link
Contributor

shankari commented May 5, 2024

Great job @louisg1337

@shankari shankari merged commit 0a43a4d into e-mission:master May 5, 2024
8 checks passed
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