Question

I'm trying to create the Facebook DLL with following bindings: https://github.com/mono/monotouch-bindings/tree/master/facebook

When I use "make", I'm getting following errors:

error: invalid deployment target '5.0.0' for architecture 'arm64' (requires '7.0.0' or later)

And

** BUILD FAILED **

The following build commands failed: ProcessPCH /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0-5A1413/Xcode/SharedPrecompiledHeaders/facebook_ios_sdk_Prefix-eeghlwplbbpvmudycetfsuytcqmf/facebook_ios_sdk_Prefix.pch.pch facebook_ios_sdk_Prefix.pch normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) make[1]: * [libFacebook-arm64.a] Error 65 make: * [build-binding] Error 2

Any ideas?

Was it helpful?

Solution

Ok, finally found the answer myself and posting it here in case others have the same problem.

  1. The make file downloads the Facebook Obj C project automatically
    • The "BASE SDK" of this project is set to iOS7, the 64bit deployment targets are also set to iOS7, the 32bit deployment targets are set to iOS5
  2. It then builds the Monotouch DLL with the binding project
    • This targets 64bit, which is not supported on iOS5

So basically, the "make" will not work. You first need to change all deployments targets in the project to iOS7. See screenshot below.

Probably there is a better solution that also supports earlier versions then iOS7, because the Obj C project is using different targets for 32bit (iOS5) and 64bit (iOS7) and my solution now only targets iOS7.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top