tiagoappereira opened a new pull request, #1274: URL: https://github.com/apache/cordova-ios/pull/1274
<!-- ### Platforms affected iOS ### Motivation and Context <!-- Why is this change required? What problem does it solve? --> Xcode 14 considers that iOS apps should support by default not only iPhone and iPad, but also Mac (with Apple Silicon processors). With the introduction of “Designed for iPad“, IPAs can be installed on these devices, and Apple wants to make this the default behaviour/experience. Also, when apps with the Mac target are submitted to the App Store they are available for Mac by default as well. They can be found in a specific “iPhone & iPad Apps“ tab. Therefore, with the suggested preference in this PR, developers can disable the aforementioned default behaviour. ### Description <!-- Describe your changes in detail --> To disable Mac target, the following lines need to be added to the .pbxproj: ``` SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; ``` The Mac support removal (or not) is controlled by a preference called `SupportMac`: | SupportMac | Mac target | | ------------- | ----------- | | N/A | enabled | | true | enabled | | false | disabled | ### Testing <!-- Please describe in detail how you tested your changes. --> Created a local iOS Cordova project based on this cordova-ios branch and the .pbxproj was: - NOT updated when the preference SupportMac is not set - NOT updated when the preference SupportMac is set with the value true - updated when the preference SupportMac is set with the value false ### Checklist - [x] I've run the tests to see all new and existing tests pass - [x] I added automated test coverage as appropriate for this change - [ ] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`) - [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/)) - [ ] I've updated the documentation if necessary -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
