1.pods文件podfile一定要添加每個(gè)所需target,然后執(zhí)行
$ pod install --verbose --no-repo-update
target '' do
end
platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
pod 'AFNetworking', '~> 3.2.1'
pod 'Masonry', '~> 1.1.0'
pod 'UMCShare/Social/ReducedWeChat'
pod 'UMCShare/Social/ReducedQQ'
pod 'UMCShare/Social/ReducedSina'
pod 'IQKeyboardManager', '~> 6.5.3'
pod 'JSONModel', '~> 1.8.0'
pod 'ReactiveObjC', '~> 3.1.1'
target 'VideoCourseDemo' do
end
target 'VideoCourseDemo-QA' do
end
2.工程中新建每個(gè)文件時(shí)一定要加入每個(gè)所需要的Targets
工程中自動(dòng)生成的相應(yīng)target的plist文件:
如果不確定在相應(yīng)target中,也要從工程先移除,再拖進(jìn)去,拖入時(shí)命满,選擇上所有所需Targets蛹稍。