我已经下载了Facebook SDK,并让它在模拟器上工作,从我的应用程序发布,但它甚至无法在我的设备上编译。
clang: error: no such file or directory: '/Users/justking14/Library/Developer/Xcode/DerivedData/Descover-fqkbngyllggoxkcskmhhzgmkffxe/Build/Products/Debug-iphoneos/libPluginFacebook.a'
clang: error: no such file or directory: '/Users/justking14/Library/Developer/Xcode/DerivedData/Descover-fqkbngyllggoxkcskmhhzgmkffxe/Build/Products/Debug-iphoneos/libPluginProtocol.a'
libPluginFacebook.a和libPluginProtocol.a在Link Binary with Libraries中显示为红色,当我删除它们时仍然无法编译说
ld: file is universal (4 slices) but does not contain a(n) armv7s slice: /Users/justking14/Desktop/IR/cocos2d/plugin/plugins/facebook/proj.ios/sdk/FacebookSDK.framework/FacebookSDK file '/Users/justking14/Desktop/IR/cocos2d/plugin/plugins/facebook/proj.ios/sdk/FacebookSDK.framework/FacebookSDK' for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:1)
您使用的FacebookSDK没有架构的机器代码armv7s
该架构是最重要的,但现在,应用程序大多只使用armv7和arm64
将您的应用内置设置更改为仅使用这些架构(只使用默认设置)