Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
watchOS
: fixed crash when ran on single-target apps with Xcode 14 a…
…nd before watchOS 9.0 Follow up to #1849. That fix was incomplete, and still crashed when ran before watchOS 9.0. Fixes [SDKONCALL-119] and [CSDK-416] and #1891. There are 3 variables we need to take into account: - `watchOS` version - Xcode version - Dual/single target app | watchOS | Xcode | Dual / Single target | Before PR | With this PR | |---------------|-----------|----------------------|--------------------|-------------------| | < 9.0 | < 14.x | Single | `WKExtension` | `WKExtension` | | < 9.0 | < 14.x | Dual | N/A | N/A | | < 9.0 | >= 14.0 | Single | crash⚠️ | always `false` | | < 9.0 | >= 14.0 | Dual | `WKApplication` | `WKExtension` | | >= 9.0 | >= 14.0 | Single | `WKApplication` | `WKApplication` | | >= 9.0 | >= 14.0 | Dual | `WKApplication` | `WKApplication` |
- Loading branch information