下午好,
更新到最新版本的Cocoapods(1.0)后,我的iOS应用程序显示了很多错误。我不确定为什么会发生这种情况,因为在更新过程中一切都是正确的,但是当我“运行”我的应用程序时,它会显示以下错误:
那是我的Podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'myApp' do
pod 'HanekeSwift', '~> 0.10'
pod 'Alamofire', '~> 3.3'
pod 'SwiftyJSON', '~> 2.3'
pod 'Batch', '~> 1.5'
end
target 'myAppTests' do
end
target 'myAppUITests' do
end
我可以做些什么来解决这些问题?
非常感谢,
问候。
答案 0 :(得分:1)
如果您运行了pod install
,它仍然无效。
尝试pod deintegrate
,然后pod install
。它应该解决这个问题。
答案 1 :(得分:0)
如果有人遇到同样的问题,我删除了旧的Podfile并创建了一个新的Podfile。现在看来它是这样的:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
target 'myApp' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for myApp
pod 'Alamofire', '~> 3.4'
pod 'SwiftyJSON', '~> 2.3'
pod 'HanekeSwift', '~> 0.10'
pod 'Batch', '~> 1.5'
target 'myAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'myAppUITests' do
inherit! :search_paths
# Pods for testing
end
end