xcode build failed

21847: /BUILD_PATH/.mason/buildpacks/xcode/bin/compile:253:in `block in build': ! xcode build failed. (RuntimeError)

Hi, I use UBC everyday:)

From today, my project build failed many times and never succeeded.
I got a wired error log.

I found the log : Maybe the error shown is caused by using the wrong version of Xcode.
I builded my project successfully with Xcode9.2 at my PC.

What should I do?

21787: The following build commands failed:
21788: CompileAssetCatalog /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-auolejencraxtdesexnoltmhhhlk/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/APPLICATION_PATH/MY_PROJECT_NAME.app Unity-iPhone/Images.xcassets
21789: (1 failure)
21790: Exit status: 65
21791: Maybe the error shown is caused by using the wrong version of Xcode
21792: Found multiple versions of Xcode in '/APPLICATION_PATH/'
21793: Make sure you selected the right version for your project
21794: This build process was executed using '/APPLICATION_PATH/Xcode9_2_0.app'
21795: If you want to update your Xcode path, either
21796: - Specify the Xcode version in your Fastfile
21797: ? xcversion(version: "8.1") # Selects Xcode 8.1.0
21798: - Specify an absolute path to your Xcode installation in your Fastfile
21799: ? xcode_select "/APPLICATION_PATH/Xcode8.app"
21800: - Manually update the path using
21801: ? sudo xcode-select -s /APPLICATION_PATH/Xcode.app
21802: +-------------+------------------------------+
21803: |             Build environment              |
21804: +-------------+------------------------------+
21805: | xcode_path  | /APPLICATION_PATH/Xcode9_2_0.app |
21806: | gym_version | 2.89.0                       |
21807: | sdk         | iPhoneOS11.2.sdk             |
21808: +-------------+------------------------------+
21809: ? /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-auolejencraxtdesexnoltmhhhlk/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/APPLICATION_PATH/MY_PROJECT_NAME.app/LaunchImage-Landscape~ipad.png
21810: ? /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-auolejencraxtdesexnoltmhhhlk/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/APPLICATION_PATH/MY_PROJECT_NAME.app/LaunchImage-Portrait@2x~ipad.png
21811: ? /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-auolejencraxtdesexnoltmhhhlk/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/APPLICATION_PATH/MY_PROJECT_NAME.app/LaunchImage-Landscape@2x~ipad.png
21812: ? /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-auolejencraxtdesexnoltmhhhlk/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/APPLICATION_PATH/MY_PROJECT_NAME.app/Assets.car
21813: ? /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-auolejencraxtdesexnoltmhhhlk/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_generated_info.plist
21814: ??  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
21815: ??  For the complete and more detailed error log, check the full log at:
21816: ??  /BUILD_PATH/Library/Logs/gym/MY_PROJECT_NAME-Unity-iPhone.log
21817: Looks like fastlane ran into a build/archive error with your project
21818: It's hard to tell what's causing the error, so we wrote some guides on how
21819: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
21820: Before submitting an issue on GitHub, please follow the guide above and make
21821: sure your project is set up correctly.
21822: fastlane uses `xcodebuild` commands to generate your binary, you can see the
21823: the full commands printed out in yellow in the above log.
21824: Make sure to inspect the output above, as usually you'll find more error information there

Were you able to fix this. I’m having the same issue

1 Like

Guys , I’m also facing the same issue , need help to solve this issue . Thanks.

We are also facing this issue. Can someone please help?

Same issue here. Any luck?