source 'https://github.com/CocoaPods/Specs.git'
target ‘123’ do
pod 'AFNetworking', '~> 3.1.0'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
puts target.name
end
end
打開(kāi)舊版本的cocoa pods項(xiàng)目,報(bào)錯(cuò)解決的方案
iOS "The sandbox is not in sync with the Podfile.lock"解決方案
關(guān)閉現(xiàn)在的工作空間匿乃,刪掉以前的xcworkspace逻恐,然后重新pod install,install完后硕蛹,重新打開(kāi)項(xiàng)目,clean+build項(xiàng)目韩脏,運(yùn)行
先進(jìn)入你的項(xiàng)目文件夾
rm -rf MyProject.xcworkspace
pod install
參考文檔:
http://stackoverflow.com/a/19131855/3458781
http://blog.csdn.net/willyang519/article/details/40744081