3
当试图从终端编译的iOS项目和Xcode 7.1.1我得到链接错误:LD:框架没有找到AFNetworking
xcodebuild -project MyProject.xcodeproj -configuration Debug -target MyProject build
至于结果,我收到一个错误:
ld: framework not found AFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这里我的pod文件:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target "MyProject" do
pod "AFNetworking", "~> 2.0"
pod 'GoogleMaps'
pod 'MONActivityIndicatorView'
pod 'NYXImagesKit'
pod 'MagicalRecord'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'Countly'
end
xcodeproj 'MyProject'
我也尝试添加link_with,但得到相同的错误。如何解决上述问题?