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