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

Anyone know what this means or how I see the invocations?

I think it may be related to the facebook sdk

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?

The answer is the facebook sdk does not support bytecode

1 Like

Yep, that fixed it. Many thanks!

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?