如何在我的应用中为也称为Widget的扩展安装Pod。我已经为我的应用目标安装了该Pod。
我一直在线查看,发现的解决方案在屏幕截图中出现了类似我的错误。
以下是我的pods文件中的代码:
platform :ios, '9.0'
use_frameworks!
target 'myapp' do
pod 'Alamofire', '~> 4.8.0'
end
target 'myapp_extension' do
pod 'Alamofire', '~> 4.8.0'
end
Multiple commands produce '/Users/abc/Library/Developer/Xcode/DerivedData/myapp-hitzznvtnviylfcammkfaxjvlryg/Build/Products/Debug-iphonesimulator/myapp.app/Frameworks/nanopb.framework':
1) That command depends on command in Target 'myapp' (project 'myapp'): script phase “[CP] Embed Pods Frameworks”
2) That command depends on command in Target 'myapp' (project 'myapp'): script phase “[CP] Embed Pods Frameworks”
答案 0 :(得分:0)
您可以使用inherit! :search_paths
将相同的广告连播添加到扩展程序中
platform: ios, '9.0'
target 'myapp' do
use_frameworks!
pod 'Alamofire', '~> 4.8.0'
target 'myapp_extension' do
inherit! :search_paths
end
end