You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "geoidesic (via GitHub)" <gi...@apache.org> on 2024/07/18 10:16:38 UTC
[I] Problems with 'Cordova platform add iOS` – needs updating according to new apple standards [cordova-ios]
geoidesic opened a new issue, #1448:
URL: https://github.com/apache/cordova-ios/issues/1448
# Bug Report
## Problem
Apple has updated minimum build version.
As well as various schema changes
### What is expected to happen?
- IPHONEOS_DEPLOYMENT_TARGET should be 12.0 by default for iOS `Cordova add platform iOS`
### What does actually happen?
Build succeeds with warnings, warnings which will prevent the app from being shippable.
## Information
I suggest:
- create a new GitHub repo
- check it out
- create a new Cordova app `Cordova create`, add the iOS platform
- copy that into your GitHub repo folder
- commit that as your initial commit to enable yourself to get a diff
- then open that project in Xcode and see the warning icon, click it to implement suggested changes, change the minimum target in both the project root folder and the app folder,
- now view the git diff to see how apple's expectations have changed for basic compatibility
### Command or Code
```
git clone git@github.com:your-account/cordova-test.git
cordova create cordovatest uk.co.domain.test cordova-test
mv -R cordovatest/ Cordova-test
cd cordova-test
git add *
git commit -m "initial commit"
git push
cordova platform add ios
cordova Build ios
```
That should allow you to see the errors. Then open the project in Xcode, click the warning icon and accept changes, change the build targets to the new minimum of 12, Then:
```
git diff
```
Which should show you what's changed in terms of apple's minimum build requirements.
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
iOS on a GitHub macOS-latest runner
and also iOS on my local Mac osx environment
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
Mac OS X 14.5 (23F79)
Xcode Version 15.4 (15F31d)
cordova 12.0.0 (cordova-lib@12.0.1)
ios-deploy@1.12.2
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Problems with 'cordova platform add ios` – needs updating according to new apple standards [cordova-ios]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1448:
URL: https://github.com/apache/cordova-ios/issues/1448#issuecomment-2237348593
Warnings isn't the cause of a non-zero exit code (which will trigger error routine), which can be observed by our CI: https://github.com/apache/cordova-ios/actions/workflows/ci.yml
It is possible that an actual error is buried in your build output somewhere. xcodebuild (like most other c compilers) does not stop when an error occurs, it will proceed to build every object file, and print information on the status of each compilation unit and then return an error code at the end.
In other words if the project has 1,000 source files and source file 1 has a build error, it will print the error details then proceed to build the other 999 source files (also printing information, burying the error). In this hypothetical scenario, the error would be relatively near the top, but of course in a real scenario errors could be anywhere in the build output.
Hope this helps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Problems with 'cordova platform add ios` – needs updating according to new apple standards [cordova-ios]
Posted by "geoidesic (via GitHub)" <gi...@apache.org>.
geoidesic commented on issue #1448:
URL: https://github.com/apache/cordova-ios/issues/1448#issuecomment-2237205534
> It is only a warning, it does not impact the ability to submit the application to the App Store.
My experience was that in the Github Action's runner, this would cause an error and exit for the workflow.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Problems with 'cordova platform add ios` – needs updating according to new apple standards [cordova-ios]
Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue commented on issue #1448:
URL: https://github.com/apache/cordova-ios/issues/1448#issuecomment-2237062921
> Build succeeds with warnings, warnings which will prevent the app from being shippable.
It is only a warning, it does not impact the ability to submit the application to the App Store.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Problems with 'cordova platform add ios` – needs updating according to new apple standards [cordova-ios]
Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue closed issue #1448: Problems with 'cordova platform add ios` – needs updating according to new apple standards
URL: https://github.com/apache/cordova-ios/issues/1448
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org