iOS Failed to Archive on Xcode 14.1 & 14.2

Hello! Im trying to build my iOS game with an Xcode 14.1+, to comply with iOS newest deadline.
The UCB builds are currently working with Xcode 13.4.1 and we are using Unity 2021.3.21f1.
We tried to build & archive locally with both Xcode 14.1 & 14.2, and it did work, so it makes me think it’s something to do with UCB itself.

Attached is the full log, and some screenshots of the issue.
We have a hard deadline on April 1st, and this is a live project, so any help is very much appreciated!

8898213–1217232–doctor-who-prod-i-os-store-70.txt (9.46 MB)

1 Like

My project is having a similar issue as well. Can compile just fine with older xcode versions and local but it fails in cloud builds. Currently using unity 2020.2.1f1 and xcode 13.0.0. Trying yo change it to xcode 14.1 to comply as well.

Yea, I imagine this is more a UCB issue than an us issue. Lets hope we can get an answer before the deadline

After running more test I think there is something wrong with cloud build. I have two configurations with the exact same settings with the only difference being an environment variable for post build scripts. Even rerunning the old branch the build is now failing even though it had previously worked just fine the previous day. I’ll be looking into trying to find a possible fix and will update if I find anything.

me to. fastlane issue?

[2023-03-26T15:59:08.732Z] - 7.3.2.2.4.2 - INFO: ** ARCHIVE FAILED **
[2023-03-26T15:59:08.732Z] - 7.3.2.2.4.2 - INFO: Exit status: 65
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO:
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO: Maybe the error shown is caused by using the wrong version of Xcode
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO: Found multiple versions of Xcode in '/APPLICATION_PATH/'
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO: Make sure you selected the right version for your project
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO: This build process was executed using '/APPLICATION_PATH/Xcode14_1_0.app'
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO: If you want to update your Xcode path, either
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO:
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO: - Specify the Xcode version in your Fastfile
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
[2023-03-26T15:59:08.780Z] - 7.3.2.2.4.2 - INFO:
[2023-03-26T15:59:08.781Z] - 7.3.2.2.4.2 - INFO: - Specify an absolute path to your Xcode installation in your Fastfile
[2023-03-26T15:59:08.781Z] - 7.3.2.2.4.2 - INFO: ▸ xcode_select "/APPLICATION_PATH/Xcode8.app"
[2023-03-26T15:59:08.781Z] - 7.3.2.2.4.2 - INFO:
[2023-03-26T15:59:08.781Z] - 7.3.2.2.4.2 - INFO: - Manually update the path using
[2023-03-26T15:59:08.781Z] - 7.3.2.2.4.2 - INFO: ▸ sudo xcode-select -s /APPLICATION_PATH/Xcode.app

If you are still experiencing this issue please open up a support ticket through the dashboard. Dashboard → Unity DevOps → Help & Support → File a Ticket

Hello @Benjamin-Gooding . Just sent the ticket as you requested.
Please keep in mind, there is a hard deadline in less than 4 days for this as per Apples requirement.

1 Like

I have also put in a ticket. I’ll leave my most recent error logs in case someone comes along who can help debug.

[warning] [2023-03-28T14:34:31.935Z] - 7.3.2.2.7.4 - WARN:        build was signed for app store!
[warning] [2023-03-28T14:34:31.966Z] - 7.3.2.2.7.4 - WARN:        ! Podfile.lock and Pods/ directory exists, skipping cocoapods install
[warning] [2023-03-28T14:34:54.505Z] - 7.3.2.2.7.4 - INFO: ▸     Run script build phase 'Run Script' 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 'UnityFramework' from project 'Unity-iPhone')
[warning] [2023-03-28T14:34:54.507Z] - 7.3.2.2.7.4 - INFO: ▸     Run script build phase 'Crashlytics Run Script' 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 'UnityFramework' from project 'Unity-iPhone')
[warning] [2023-03-28T14:34:54.507Z] - 7.3.2.2.7.4 - INFO: ▸     Run script build phase 'Create Symlinks to Header Folders' 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 'Libuv-gRPC' from project 'Pods')
[warning] [2023-03-28T14:34:54.507Z] - 7.3.2.2.7.4 - INFO: ▸     Run script build phase 'Crashlytics Run Script' 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 'Unity-iPhone' from project 'Unity-iPhone')
[warning] [2023-03-28T14:34:54.507Z] - 7.3.2.2.7.4 - INFO: ▸     Run script build phase 'Create Symlinks to Header Folders' 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 'abseil' from project 'Pods')
[warning] [2023-03-28T14:34:54.507Z] - 7.3.2.2.7.4 - INFO: ▸     Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-Core' from project 'Pods')
[warning] [2023-03-28T14:34:54.508Z] - 7.3.2.2.7.4 - INFO: ▸     Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-C++' from project 'Pods')
[warning] [2023-03-28T14:34:54.508Z] - 7.3.2.2.7.4 - INFO: ▸     Run script build phase 'Create Symlinks to Header Folders' 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 'BoringSSL-GRPC' from project 'Pods')
[warning] [2023-03-28T14:34:54.525Z] - 7.3.2.2.7.4 - INFO:     Run script build phase 'Run Script' 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 'UnityFramework' from project 'Unity-iPhone')
[warning] [2023-03-28T14:34:54.525Z] - 7.3.2.2.7.4 - INFO:     Run script build phase 'Crashlytics Run Script' 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 'UnityFramework' from project 'Unity-iPhone')
[warning] [2023-03-28T14:34:54.525Z] - 7.3.2.2.7.4 - INFO:     Run script build phase 'Create Symlinks to Header Folders' 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 'Libuv-gRPC' from project 'Pods')
[warning] [2023-03-28T14:34:54.525Z] - 7.3.2.2.7.4 - INFO:     Run script build phase 'Crashlytics Run Script' 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 'Unity-iPhone' from project 'Unity-iPhone')
[warning] [2023-03-28T14:34:54.525Z] - 7.3.2.2.7.4 - INFO:     Run script build phase 'Create Symlinks to Header Folders' 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 'abseil' from project 'Pods')
[warning] [2023-03-28T14:34:54.525Z] - 7.3.2.2.7.4 - INFO:     Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-Core' from project 'Pods')
[warning] [2023-03-28T14:34:54.525Z] - 7.3.2.2.7.4 - INFO:     Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-C++' from project 'Pods')
[warning] [2023-03-28T14:34:54.525Z] - 7.3.2.2.7.4 - INFO:     Run script build phase 'Create Symlinks to Header Folders' 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 'BoringSSL-GRPC' from project 'Pods')
[warning] [2023-03-28T14:34:54.542Z] - 7.3.2.2.7.4 - INFO: ▸ /BUILD_PATH/apex-innovations.nihss.ios_beta_build/temp20230328-6413-1hie6ry/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'FirebaseInstallations' from project 'Pods')
[warning] [2023-03-28T14:34:54.543Z] - 7.3.2.2.7.4 - INFO: ▸ /BUILD_PATH/apex-innovations.nihss.ios_beta_build/temp20230328-6413-1hie6ry/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'gRPC-C++' from project 'Pods')
[warning] [2023-03-28T14:34:54.543Z] - 7.3.2.2.7.4 - INFO: ▸ warning: Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-C++' from project 'Pods')
[warning] [2023-03-28T14:34:54.543Z] - 7.3.2.2.7.4 - INFO: ▸ /BUILD_PATH/apex-innovations.nihss.ios_beta_build/temp20230328-6413-1hie6ry/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'BoringSSL-GRPC' from project 'Pods')
[warning] [2023-03-28T14:34:54.543Z] - 7.3.2.2.7.4 - INFO: ▸ warning: Run script build phase 'Create Symlinks to Header Folders' 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 'BoringSSL-GRPC' from project 'Pods')
[error] [2023-03-28T14:34:54.567Z] - 7.3.2.2.7.4 - ERROR: xcode build failed
[error]   RuntimeError (Build Failure):
[error] /BUILD_PATH/.rvm/gems/ruby-2.7.4/gems/bvr-7.3.2.2.7.4/lib/bvr/build/handlers/platform/xcode_compiler.rb:314:in `block in exec_fastlane': Build Failure (RuntimeError)
[error] Finished: FAILURE
1 Like

We have similar issue, will submit a support ticket.
Xcode 13.x.x builds fine, changing to 14.x.x. will fail the build

[error] [2023-03-30T15:43:45.571Z] - 7.3.3.2.7.4 - INFO: ❌  Undefined symbols for architecture arm64
[2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO: > Symbol: _$s10Foundation22_convertErrorToNSErrorySo0E0Cs0C0_pF
[2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO: > Referenced from: _$s14UnityFramework22FBSDKTournamentUpdaterC6update12tournamentID5score17completionHandlerySS_SiySb_s5Error_pSgtctF048$s10ObjectiveC8ObjCBoolVSo7NSErrorCSgIeyByy_Sbs5K12_pSgIegyg_TR0M1C0oP0VSo0R0CSgIeyByy_Tf1nncn_nTf4nndg_n in FBSDKTournamentUpdater.o
[2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO:
[2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO:
[2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO:
[error] [2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO: ❌  ld: symbol(s) not found for architecture arm64
[2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO:
[2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO:
[2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO:
[error] [2023-03-30T15:43:45.572Z] - 7.3.3.2.7.4 - INFO: ❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Hello! Is there any update/fix for this problem?

Still waiting for one…

1 Like

I was able to do a local build and create IPA successfully.
Is the problem a lib that is not included in the custom pod?
So, my main concern is the following, does this affect the build?

Run script build phase ‘Create Symlinks to Header Folders’ …

MacOS Monterey 12.6.4
XCode 14.1
Unity 2020.3.26f1

Getting the same issue on our project too, following changes made to migrate to Xcode 14.1. Building iOS target locally works fine for me (after a couple of teething issues; needed to set DEVELOPMENT_TEAM in Pod targets and disable bitcode like so ).

To attempt to remove the ‘Based on Dependency Analysis’ warnings, I’ve modified the Podfile in our PostProcessBuild script, following this post Xcode14 run script warnings · Issue #11444 · CocoaPods/CocoaPods · GitHub

However, I hit some errors in the Pod syntax so am stuck right now.

Here are logs from UCB with warnings around point of failure for reference:

[2023-04-04T12:15:33.312Z] - 7.3.3.2.7.4 - INFO: ▸ Clean Succeeded
[warning] [2023-04-04T12:15:39.756Z] - 7.3.3.2.7.4 - INFO: ▸     Run script build phase 'Run Script' 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 'UnityFramework' from project 'Unity-iPhone')
[warning] [2023-04-04T12:15:39.756Z] - 7.3.3.2.7.4 - INFO: ▸     Run script build phase 'Unity Process symbols' 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 'UnityFramework' from project 'Unity-iPhone')
[warning] [2023-04-04T12:15:39.756Z] - 7.3.3.2.7.4 - INFO: ▸     Run script build phase 'Unity Process symbols' 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 'Unity-iPhone' from project 'Unity-iPhone')
[warning] [2023-04-04T12:15:39.757Z] - 7.3.3.2.7.4 - INFO: ▸     Run script build phase 'Create Symlinks to Header Folders' 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 'PromisesObjC' from project 'Pods')
[2023-04-04T12:15:39.763Z] - 7.3.3.2.7.4 - INFO: ▸ ** ARCHIVE FAILED **
[2023-04-04T12:15:39.775Z] - 7.3.3.2.7.4 - INFO: ▸ Clean Succeeded
[warning] [2023-04-04T12:15:39.775Z] - 7.3.3.2.7.4 - INFO:     Run script build phase 'Run Script' 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 'UnityFramework' from project 'Unity-iPhone')
[warning] [2023-04-04T12:15:39.775Z] - 7.3.3.2.7.4 - INFO:     Run script build phase 'Unity Process symbols' 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 'UnityFramework' from project 'Unity-iPhone')
[warning] [2023-04-04T12:15:39.775Z] - 7.3.3.2.7.4 - INFO:     Run script build phase 'Unity Process symbols' 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 'Unity-iPhone' from project 'Unity-iPhone')
[warning] [2023-04-04T12:15:39.775Z] - 7.3.3.2.7.4 - INFO:     Run script build phase 'Create Symlinks to Header Folders' 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 'PromisesObjC' from project 'Pods')
[2023-04-04T12:15:39.775Z] - 7.3.3.2.7.4 - INFO: ** ARCHIVE FAILED **
[2023-04-04T12:15:39.775Z] - 7.3.3.2.7.4 - INFO: Exit status: 65
[2023-04-04T12:15:39.781Z] - 7.3.3.2.7.4 - INFO:
[2023-04-04T12:15:39.781Z] - 7.3.3.2.7.4 - INFO: Maybe the error shown is caused by using the wrong version of Xcode
[2023-04-04T12:15:39.781Z] - 7.3.3.2.7.4 - INFO: Found multiple versions of Xcode in '/APPLICATION_PATH/'
[2023-04-04T12:15:39.781Z] - 7.3.3.2.7.4 - INFO: Make sure you selected the right version for your project
[2023-04-04T12:15:39.781Z] - 7.3.3.2.7.4 - INFO: This build process was executed using '/APPLICATION_PATH/Xcode14_1_0.app'
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO: If you want to update your Xcode path, either
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO:
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO: - Specify the Xcode version in your Fastfile
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO:
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO: - Specify an absolute path to your Xcode installation in your Fastfile
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO: ▸ xcode_select "/APPLICATION_PATH/Xcode8.app"
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO:
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO: - Manually update the path using
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO: ▸ sudo xcode-select -s /APPLICATION_PATH/Xcode.app
[2023-04-04T12:15:39.782Z] - 7.3.3.2.7.4 - INFO:
[2023-04-04T12:15:39.787Z] - 7.3.3.2.7.4 - INFO:
[2023-04-04T12:15:39.788Z] - 7.3.3.2.7.4 - INFO: +-------------+-------------------------------+
[2023-04-04T12:15:39.788Z] - 7.3.3.2.7.4 - INFO: |              Build environment              |
[2023-04-04T12:15:39.788Z] - 7.3.3.2.7.4 - INFO: +-------------+-------------------------------+
[2023-04-04T12:15:39.788Z] - 7.3.3.2.7.4 - INFO: | xcode_path  | /APPLICATION_PATH/Xcode14_1_0.app |
[2023-04-04T12:15:39.788Z] - 7.3.3.2.7.4 - INFO: | gym_version | 2.211.0                       |
[2023-04-04T12:15:39.788Z] - 7.3.3.2.7.4 - INFO: | sdk         | iPhoneOS16.1.sdk              |
[2023-04-04T12:15:39.788Z] - 7.3.3.2.7.4 - INFO: +-------------+-------------------------------+
[2023-04-04T12:15:39.788Z] - 7.3.3.2.7.4 - INFO:
[warning] [2023-04-04T12:15:39.789Z] - 7.3.3.2.7.4 - INFO: ▸ /BUILD_PATH/treesplease-games.merge1.testing-ios-reviezgth3key/temp20230404-6400-14pqd4n/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'GoogleUtilities' from project 'Pods')
[warning] [2023-04-04T12:15:39.789Z] - 7.3.3.2.7.4 - INFO: ▸ /BUILD_PATH/treesplease-games.merge1.testing-ios-reviezgth3key/temp20230404-6400-14pqd4n/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'Firebase' from project 'Pods')
[warning] [2023-04-04T12:15:39.789Z] - 7.3.3.2.7.4 - INFO: ▸ /BUILD_PATH/treesplease-games.merge1.testing-ios-reviezgth3key/temp20230404-6400-14pqd4n/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'FirebaseMessaging' from project 'Pods')
[warning] [2023-04-04T12:15:39.789Z] - 7.3.3.2.7.4 - INFO: ▸ /BUILD_PATH/treesplease-games.merge1.testing-ios-reviezgth3key/temp20230404-6400-14pqd4n/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'VungleSDK-iOS' from project 'Pods')
[warning] [2023-04-04T12:15:39.789Z] - 7.3.3.2.7.4 - INFO: ▸ /BUILD_PATH/treesplease-games.merge1.testing-ios-reviezgth3key/temp20230404-6400-14pqd4n/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'FBSDKGamingServicesKit' from project 'Pods')
[2023-04-04T12:15:39.789Z] - 7.3.3.2.7.4 - INFO:
[2023-04-04T12:15:39.789Z] - 7.3.3.2.7.4 - INFO: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO:   For the complete and more detailed error log, check the full log at:
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO:   /BUILD_PATH/Library/Logs/gym/LongleafValley-Unity-iPhone.log
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO:
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO: Looks like fastlane ran into a build/archive error with your project
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO: It's hard to tell what's causing the error, so we wrote some guides on how
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO: Before submitting an issue on GitHub, please follow the guide above and make
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO: sure your project is set up correctly.
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO: the full commands printed out in yellow in the above log.
[2023-04-04T12:15:39.790Z] - 7.3.3.2.7.4 - INFO: Make sure to inspect the output above, as usually you'll find more error information there

Hello everyone,

Could you check which version of cocoapods you are using locally and install it using the following pre-build script (this example is for version 1.12.0):

gem install cocoapods -v 1.12.0
echo "current cocoapods version: "
gem which cocoapods
1 Like

I succeeded.

on cloud build, set Ruby version to Ruby 2.74
add Pre-build script

  • gem install cocoapods -v 1.12.0
  • echo "current cocoapods version: "
  • gem which cocoapods
3 Likes

I’m just waiting for our UCB builds to complete after making the same change, so will report back soon. Gives me hope that you had success; fingers crossed.

We already had Ruby set to 2.74 in our configs, which seemed to be required when we upgraded to IronSource SDK 7.2.5.1 and Xcode 13.3.1 (in case that’s useful info for anyone else).

For me this is the issue:
https://github.com/firebase/firebase-unity-sdk/issues/644

So, I checked my local Cocoapods version which was 1.11.3. As I mentioned, local builds worked fine so assumed 1.11.3 was safe and so set this version to be installed in a pre-build script using the template code above. However, the build failed with the same warnings appearing, plus this error:

error: FBSDKCoreKit-FacebookSDKStrings has conflicting provisioning settings. FBSDKCoreKit-FacebookSDKStrings is automatically signed, but code signing identity Apple Distribution: <SIGNING ID> has been manually specified. Set the code signing identity value to "Apple Development" in the build settings editor, or switch to manual signing in the Signing & Capabilities editor. (in target 'FBSDKCoreKit-FacebookSDKStrings' from project 'Pods')

I then modified the pre-build script to use 1.12.0 since @MasahikoHagio reported this working and the UCB build succeeded :eyes: I like to keep local environments on par with UCB for consistency so guess I’ll install 1.12.0 but am confused about the differences in build results.

1 Like

You might need to update Facebook SDK