Search Unity

xcode build failed

Discussion in 'Unity Build Automation' started by coly_sugai, Apr 27, 2018.

  1. coly_sugai

    coly_sugai

    Joined:
    May 14, 2016
    Posts:
    15
    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?

    Code (CSharp):
    1. 21787: The following build commands failed:
    2. 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
    3. 21789: (1 failure)
    4. 21790: Exit status: 65
    5. 21791: Maybe the error shown is caused by using the wrong version of Xcode
    6. 21792: Found multiple versions of Xcode in '/APPLICATION_PATH/'
    7. 21793: Make sure you selected the right version for your project
    8. 21794: This build process was executed using '/APPLICATION_PATH/Xcode9_2_0.app'
    9. 21795: If you want to update your Xcode path, either
    10. 21796: - Specify the Xcode version in your Fastfile
    11. 21797: ? xcversion(version: "8.1") # Selects Xcode 8.1.0
    12. 21798: - Specify an absolute path to your Xcode installation in your Fastfile
    13. 21799: ? xcode_select "/APPLICATION_PATH/Xcode8.app"
    14. 21800: - Manually update the path using
    15. 21801: ? sudo xcode-select -s /APPLICATION_PATH/Xcode.app
    16. 21802: +-------------+------------------------------+
    17. 21803: |             Build environment              |
    18. 21804: +-------------+------------------------------+
    19. 21805: | xcode_path  | /APPLICATION_PATH/Xcode9_2_0.app |
    20. 21806: | gym_version | 2.89.0                       |
    21. 21807: | sdk         | iPhoneOS11.2.sdk             |
    22. 21808: +-------------+------------------------------+
    23. 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
    24. 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
    25. 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
    26. 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
    27. 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
    28. 21814: ??  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
    29. 21815: ??  For the complete and more detailed error log, check the full log at:
    30. 21816: ??  /BUILD_PATH/Library/Logs/gym/MY_PROJECT_NAME-Unity-iPhone.log
    31. 21817: Looks like fastlane ran into a build/archive error with your project
    32. 21818: It's hard to tell what's causing the error, so we wrote some guides on how
    33. 21819: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
    34. 21820: Before submitting an issue on GitHub, please follow the guide above and make
    35. 21821: sure your project is set up correctly.
    36. 21822: fastlane uses `xcodebuild` commands to generate your binary, you can see the
    37. 21823: the full commands printed out in yellow in the above log.
    38. 21824: Make sure to inspect the output above, as usually you'll find more error information there
     
  2. Nexus1216

    Nexus1216

    Joined:
    Nov 15, 2015
    Posts:
    6
    Were you able to fix this. I'm having the same issue
     
    VilasKumbhare likes this.
  3. VilasKumbhare

    VilasKumbhare

    Joined:
    Sep 30, 2016
    Posts:
    3
    Guys , I'm also facing the same issue , need help to solve this issue . Thanks.
     
  4. plourdegui

    plourdegui

    Joined:
    Mar 24, 2017
    Posts:
    5
    We are also facing this issue. Can someone please help?
     
  5. TheNenet

    TheNenet

    Joined:
    Nov 4, 2017
    Posts:
    5
    Same issue here. Any luck?