Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Discussion in 'Unity Build Automation' started by marcV2g, May 31, 2016.

  1. marcV2g

    marcV2g

    Joined:
    Jan 11, 2016
    Posts:
    115
    Anyone know what this means or how I see the invocations?

    I think it may be related to the facebook sdk
     
  2. DavidBurke

    DavidBurke

    Joined:
    Feb 1, 2016
    Posts:
    3
    I'm having the same issue, and mine is definitely Facebook SDK related. As soon as I committed the Facebook SDK, my cloud build broke.

    I get this in the logs:

    [xcode] ld: object contains invalid bitcode: /BUILD_PATH/<snip>/temp.Nj5dRV/Frameworks/FacebookSDK/Plugins/iOS/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o) for architecture arm64
    25216: [xcode] clang: error: linker command failed with exit code 1 (use -v to see invocation)
    25217: [xcode] ** BUILD FAILED **

    The project builds correctly on my Mac, so I'm a bit puzzled by this.

    Anyone have any ideas?
     
  3. marcV2g

    marcV2g

    Joined:
    Jan 11, 2016
    Posts:
    115
  4. DavidBurke

    DavidBurke

    Joined:
    Feb 1, 2016
    Posts:
    3
    Yep, that fixed it. Many thanks!
     
  5. yelloowl

    yelloowl

    Joined:
    Nov 18, 2015
    Posts:
    6
    Hi Guys,

    I have add the Facebook SDK, and the build cloud start to have the same problem.
    The project doesn't compile with unity build cloud only the iOS version, but the same project compile with unity3d in local.

    The project on build cloud use:
    - FacebookSDK: 7.6.0
    - Unity3d: 5.3.3f1
    - Xcode: 7.0

    In Local:
    - FacebookSDK: 7.6.0
    - Unity3d: 5.3.3f1
    - Xcode: 7.3

    I have trided to compile on build cloud with Unity 5.3.5f1 and Xcode 7.2 but doesn't change.

    The unity short and long log of unity build cloud doesn't give any specific detail:
    ...
    2266: [xcode] clang: error: linker command failed with exit code 1 (use -v to see invocation)
    2267: [xcode] ** BUILD FAILED **
    2268: ! build of 'default-ios' failed. compile failed
    ...


    Anyone has idea why?
    What can be in wrong?