Search Unity

UCB fails with XCode 9

Discussion in 'Unity Build Automation' started by timdevil, Dec 14, 2017.

  1. timdevil

    timdevil

    Joined:
    Dec 12, 2013
    Posts:
    16
    Hello! Unity Cloud Build fails on my project when switching to XCode9.
    It works fine on 8 and compiles without errors (Cloud Build).
    I tried to compile on Mac and there were no errors with XCode9.

    Here's the exception from logs:

    Code (CSharp):
    1. 15310: +------+-------------------------------------+-------------+
    2. 15311: |                     fastlane summary                     |
    3. 15312: +------+-------------------------------------+-------------+
    4. 15313: | Step | Action                              | Time (in s) |
    5. 15314: +------+-------------------------------------+-------------+
    6. 15315: | 1    | Verifying required fastlane version | 0           |
    7. 15316: | 2    | default_platform                    | 0           |
    8. 15317: | 3    | set_info_plist_value                | 0           |
    9. 15318: |    | update_project_provisioning         | 0           |
    10. 15319: +------+-------------------------------------+-------------+
    11. 15320: fastlane finished with errors
    12. 15321: /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/xcodeproj-1.5.1/lib/xcodeproj/project/object/helpers/groupable_helper.rb:18:in `parent': [!] [Xcodeproj] Consistency issue: no parent for object `CoreFoundation.framework`: `FrameworksBuildPhase`, `FrameworksBuildPhase` (RuntimeError)
    13. 15322:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/xcodeproj-1.5.1/lib/xcodeproj/project/object/build_file.rb:63:in `ascii_plist_annotation'
    14. 15323:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/xcodeproj-1.5.1/lib/xcodeproj/project.rb:286:in `block in to_ascii_plist'
    15. 15324:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/xcodeproj-1.5.1/lib/xcodeproj/project.rb:285:in `each'
    16. 15325:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/xcodeproj-1.5.1/lib/xcodeproj/project.rb:285:in `to_ascii_plist'
    17. 15326:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/xcodeproj-1.5.1/lib/xcodeproj/project.rb:353:in `block in save'
    18. 15327:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/xcodeproj-1.5.1/lib/xcodeproj/project.rb:353:in `open'
    19. 15328:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/xcodeproj-1.5.1/lib/xcodeproj/project.rb:353:in `save'
    20. 15329:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/actions/update_project_provisioning.rb:71:in `run'
    21. 15330:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
    22. 15331:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
    23. 15332:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:231:in `block in execute_action'
    24. 15333:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:227:in `chdir'
    25. 15334:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
    26. 15335:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:148:in `trigger_action_by_name'
    27. 15336:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
    28. 15337:     from Fastfile:18:in `block in parsing_binding'
    29. 15338:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/lane.rb:33:in `call'
    30. 15339:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/lane.rb:33:in `call'
    31. 15340:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
    32. 15341:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
    33. 15342:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
    34. 15343:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/lane_manager.rb:54:in `cruise_lane'
    35. 15344:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
    36. 15345:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/commands_generator.rb:104:in `block (2 levels) in run'
    37. 15346:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in `call'
    38. 15347:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in `call'
    39. 15348:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/commander-fastlane-4.4.5/lib/commander/command.rb:153:in `run'
    40. 15349:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/commander-fastlane-4.4.5/lib/commander/runner.rb:476:in `run_active_command'
    41. 15350:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:66:in `run!'
    42. 15351:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/commander-fastlane-4.4.5/lib/commander/delegates.rb:15:in `run!'
    43. 15352:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/commands_generator.rb:303:in `run'
    44. 15353:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
    45. 15354:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/fastlane/lib/fastlane/cli_tools_distributor.rb:66:in `take_off'
    46. 15355:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/gems/fastlane-2.62.1/bin/fastlane:20:in `<top (required)>'
    47. 15356:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/bin/fastlane:23:in `load'
    48. 15357:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/bin/fastlane:23:in `<main>'
    49. 15358:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
    50. 15359:     from /BUILD_PATH/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
    51. 15360: /BUILD_PATH/.mason/buildpacks/xcode/bin/compile:253:in `block in build': ! xcode build failed. (RuntimeError)
    52. 15361:     from /BUILD_PATH/.mason/buildpacks/xcode/bin/compile:242:in `chdir'
    53. 15362:     from /BUILD_PATH/.mason/buildpacks/xcode/bin/compile:242:in `build'
    54. 15363:     from /BUILD_PATH/.mason/buildpacks/xcode/bin/compile:266:in `<main>'
    55. 15364: ! build of 'develop-ios' failed. compile failed
    56.  
    UCB is set to 5.6.4 Unity.

    I have absolutely no idea on what I should fix since this error is related to internal iOS frameworks.
    Any suggestions would be highly appreciated! Thank you in advance.
     
    TomCorwine likes this.
  2. altschuler

    altschuler

    Joined:
    Nov 17, 2017
    Posts:
    7
    I'm seeing this currently, did you ever find a solutioin?
     
    Nexus1216 likes this.
  3. Nexus1216

    Nexus1216

    Joined:
    Nov 15, 2015
    Posts:
    6
    same issue here