当我添加AFNetworking和构建时,会发生Apple Mach-O链接器错误 我看到了类似的问题,但我没有任何提示。
我添加了从GitHub下载到项目的AFNetworking 错误消息:
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我已经添加了以下框架
·CFNetwork.framework
·Accelerate.framework
·SystemConfiguration.framework
·MobileCoreServices.framework
·Security.framework
·SenTestingKit.framework
如何构建?
顺便说一句,我在AFNetworking的文件中找到了描述#import <CoreServices/CoreServices.h>
,但在Xcode中找不到这样的框架。
这好吗?