[英]Facebook sdk is compiling on my IOS device, but no my simulator
I've downloaded the Facebook SDK, and gotten it to work on the simulator to post from my app, but it won't even compile on my device. 我已经下载了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 and libPluginProtocol.a are in red in the Link Binary with Libraries, and when I remove them it still won't compile saying libPluginFacebook.a和libPluginProtocol.a在与库的链接二进制文件中为红色,当我删除它们时,它仍然不会编译说
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)
The FacebookSDK you use doesn't have machine code for the architecture armv7s
您使用的FacebookSDK没有用于架构
armv7s
机器代码
That architecture WAS top of the line but now, apps mostly only use armv7 and arm64 该架构是一流的,但是现在,应用程序大多只使用armv7和arm64
Change your app build settings to only use those architectures (just use the default) 更改您的应用程序构建设置以仅使用那些体系结构(仅使用默认体系结构)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.