我使用xcode 8进行开发,并使用cocoapods 1.0.1进行框架。安装框架后,我无法构建我的项目。我得到“ld:framework not found”错误。我正在使用POD文件下面几行:ld:在xcode 8中找不到框架错误
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
target 'Sample' do
use_frameworks!
pod 'MBProgressHUD', '~> 0.9'
pod 'TPKeyboardAvoiding', '~> 1.2'
pod 'SDWebImage', '~> 3.7'
pod 'UIActivityIndicator-for-SDWebImage'
pod 'UITextView+Placeholder', '~> 1.2'
pod 'Alamofire', '~> 4.0'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
“构建Alamofire 4.0.0+需要CocoaPods 1.1.0+”。根据这里的文档:https://github.com/Alamofire/Alamofire#migration-guides – Stephen