Updating to xcode 14.2 failing build in circle ci works fine in local

Hi there, we updated our config.yml to specify XCode 14.2.0 and now nothing will build. “ARCHIVE FAILED with Exit status: 65” Apple needs all of us to build with XCode 14.2.0 for App Store releases and we can’t find any way to resolve the issue we’re experiencing.

2023-05-16 05:08:03.203 xcodebuild[20444:39682] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
— xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:63FF07F4-83BA-48CC-A7AB-6F6D7770DE1C, OS:15.5, name:iPhone 13 }
{ platform:iOS Simulator, id:2BF445C5-B223-4C5B-ABFB-B343FA686C00, OS:15.5, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:8A4CFB1C-484A-459E-A08F-AA80A1BE72D8, OS:15.5, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:9EF015E0-26E3-4CF0-8338-F4EB8E83C0BE, OS:15.5, name:iPhone 13 mini }
{ platform:iOS Simulator, id:56AE6AAE-7385-4453-AD41-112C369322A6, OS:16.2, name:iPhone 14 }
{ platform:iOS Simulator, id:21452B8C-7170-4BDF-ABDC-CC69123BC461, OS:16.2, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:309CE2B6-45C8-4FE5-9B43-87A0A93C72E1, OS:16.2, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:AFF1A48C-D8FA-4F9D-84F0-382F2FB9F1B0, OS:16.2, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:27B987A2-631B-494C-B82B-9250DAB548B4, OS:15.5, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:3AEDBC8B-C49E-48B4-9854-8096FA7D5595, OS:16.2, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:CF49EB86-AA50-45D7-8D46-D9DC3AE53211, OS:15.5, name:iPod touch (7th generation) }
{ platform:iOS Simulator, id:89572413-4FB7-4048-9205-8F533B1DC2D0, OS:15.5, name:iPad (9th generation) }
{ platform:iOS Simulator, id:BE3B5223-D9AF-412F-9A73-95F6CA5B5198, OS:16.2, name:iPad (10th generation) }
{ platform:iOS Simulator, id:81A624CA-10EF-4E7D-AF81-558CB315087F, OS:15.5, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:1096D066-4531-4174-9AF4-99AF5B10F814, OS:16.2, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:F5348267-FAD8-40E8-8D12-DE13971B63D6, OS:15.5, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:69A11FF3-D102-48B1-9A95-2CF77F8F69AE, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:3D01F8CE-F519-4295-83E8-D690358D829B, OS:16.2, name:iPad Pro (11-inch) (4th generation) }
{ platform:iOS Simulator, id:BB354921-4E7B-4691-82FD-491C8EDE4A4D, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:AAECFEEF-83B9-4964-896F-9DFA5D15647D, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) }
{ platform:iOS Simulator, id:909D94E5-18C7-44FC-A68B-8C1543F2FFD8, OS:15.5, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:362D1B0F-D1DF-4337-9CC5-96570437E88B, OS:16.2, name:iPad mini (6th generation) }
2023-05-16 05:08:09.059 xcodebuild[20465:39774] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[05:08:09]: Detected provisioning profile mapping: {:“com.yara.connect.qa”=>“match Development com.yara.connect.qa”}

±--------------------------------------------------------±-------------------------------------------------------------+
| Summary for gym 2.212.2 |
±--------------------------------------------------------±-------------------------------------------------------------+
| workspace | YaraConnect.xcworkspace |
| scheme | YaraConnect |
| clean | true |
| configuration | QA |
| export_method | development |
| export_options.provisioningProfiles.com.yara.connect.qa | match Development com.yara.connect.qa |
| output_directory | . |
| output_name | YaraConnect |
| silent | false |
| skip_package_ipa | false |
| skip_package_pkg | false |
| build_path | /Users/distiller/Library/Developer/Xcode/Archives/2023-05-16 |
| result_bundle | false |
| buildlog_path | ~/Library/Logs/gym |
| destination | generic/platform=iOS |
| xcodebuild_formatter | xcpretty |
| build_timing_summary | false |
| skip_profile_detection | false |
| xcodebuild_command | xcodebuild |
| skip_package_dependencies_resolution | false |
| disable_package_automatic_updates | false |
| use_system_scm | false |
| xcode_path | /Applications/Xcode-14.2.app |
±--------------------------------------------------------±-------------------------------------------------------------+

[05:08:09]: $ set -o pipefail && xcodebuild -workspace YaraConnect.xcworkspace -scheme YaraConnect -configuration QA -destination ‘generic/platform=iOS’ -archivePath /Users/distiller/Library/Developer/Xcode/Archives/2023-05-16/YaraConnect\ 2023-05-16\ 05.08.09.xcarchive clean archive | tee /Users/distiller/Library/Logs/gym/YaraConnect-YaraConnect.log | xcpretty
[05:08:18]: ▸ Clean Succeeded
[05:08:32]: ▸ Run script build phase ‘Start Packager’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘YaraConnect’ from project ‘YaraConnect’)
[05:08:32]: ▸ Run script build phase ‘Setup Firebase’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘YaraConnect’ from project ‘YaraConnect’)
[05:08:32]: ▸ Run script build phase ‘ATS’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘YaraConnect’ from project ‘YaraConnect’)
[05:08:32]: ▸ Run script build phase ‘Bundle React Native code and images’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘YaraConnect’ from project ‘YaraConnect’)
[05:08:32]: ▸ Run script build phase ‘[CP-User] Config codegen’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘react-native-config’ from project ‘Pods’)
[05:08:32]: ▸ ** ARCHIVE FAILED **

Has anyone else run into this? It seems to be very common with moving to XCode 14.2.0. I saw one suggested on StackOverflow to just remove setup_circle_ci but that didn’t do anything for us.
Thanks, Neil

Maybe related to this…as this now works perfectly for us and we moved to M1 at the same time…

setting ITMSTRANSPORTER_FORCE_ITMS_PACKAGE_UPLOAD = false didn’t solve the issue. still build failing with the same error.