-
Notifications
You must be signed in to change notification settings - Fork 25k
Description
Description
Xcode Cloud now offers and appears to auto-select Xcode 14.3 Release Candidate for builds. This trips an iOS versioning bug. This is the relevant error section:
=== BUILD TARGET React-Codegen OF PROJECT Pods WITH CONFIGURATION Release === 2s
Passed Make symlink libReact-Codegen.a 0s
Passed Write all-product-headers.yaml 0s
Passed Write React-Codegen.hmap 0s
Passed Write React-Codegen-project-headers.hmap 0s
Passed Write React-Codegen-own-target-headers.hmap 0s
Passed Write React-Codegen-generated-files.hmap 0s
Passed Write React-Codegen-all-target-headers.hmap 0s
Passed Write React-Codegen-all-non-framework-target-headers.hmap 0s
Passed Write React-Codegen.LinkFileList (arm64) 0s
Passed Compile React-Codegen-dummy.m (arm64) 0s
Error Compile FBReactNativeSpec-generated.mm (arm64) 2s
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
Error 'value' is unavailable: introduced in iOS 12.0
So, the error is that react-native's minimum version is iOS 12.4 but many pods are getting set to 11.0. The surface answer is to patch the projects, but the underlying problem is get_react_codegen_spec uses a hardcoded '11.0' rather than '12.4' or min_ios_version_supported defined in react_native_pods.rb.
React Native Version
0.71.4
Output of npx react-native info
NOTE: This is from my local machine. I am working on getting npx react-native info output from the build machine on Xcode Cloud.
info Fetching system and libraries information...
System:
OS: macOS 13.2.1
CPU: (10) arm64 Apple M1 Max
Memory: 707.53 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 19.5.0 - /opt/homebrew/bin/node
Yarn: Not Found
npm: 9.3.1 - /opt/homebrew/bin/npm
Watchman: 2023.02.20.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9477386
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 19.0.2 - /opt/homebrew/opt/openjdk/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: ^0.71.4 => 0.71.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Create a sample project and connect to Xcode Cloud in App Store Connect. Run workflow on Xcode 14.3 RC.