Add back 32 bit architectures for distribution but use 64 bit config for Xcode 14 development #1134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
PR #1132 Removed 32 bit architectures since they are not supported in Xcode 14, but this causes us to drop support for iOS 9 and 10. This PR adds back the 32 bit architectures while still allowing us to develop in Xcode 14.
Details
Xcode 14 removed 32 bit architecture support so you will get a build error if you build for armv7 using Xcode 14. However we still want to support iOS 9 and 10 (32 bit archs) until Xcode 14 is required for uploading apps to the app store. In order to allow us to develop with Xcode 14 but distribute binaries that include armv7 I have kept armv7 in the release and debug configs and then added an additional debug/release 64 bit config that does not include armv7.
We will need to always release using Xcode 13 build tools (the script will fail if you use Xcode 14 tools)
This PR also adds the OneSignalExample scheme as a shared scheme so that folks use the debug 64 bit config by default
Motivation
Allows us to develop with Xcode 14 but distribute using Xcode 13 build tools with armv7.
Scope
Build and release binaries
Testing
Unit testing
Unit test schemes also use debug 64 bit scheme
Manual testing
I have tested building an app using Xcode 14 when including an XCFramework built with Xcode 13 build tools that contains an armv7 slice.
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is