我使用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