我尝试为我的应用程序构建一个 WatchKit 扩展...
我将 pods 文件更新为如下所示:
platform:ios, '8.0'
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
link_with 'my-team-ios', 'My Team WatchKit Extension'
def shared_pods
pod 'DOSingleton'
pod 'JSONModel'
pod 'MagicalRecord'
end
target :'My App' do
shared_pods
pod 'Facebook-iOS-SDK', '~> 3.23.1'
pod 'Reveal-iOS-SDK', :configurations => ['Debug']
... some more pods here...
end
target :'My Team WatchKit Extension' do
shared_pods
end
我如何安装 pod 并且没有收到错误...
但是,当我构建应用程序时,我收到此错误:
ld: framework not found Pods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我这里有什么问题吗?
我在用着吊舱 1.2.1并面临同样的问题,即没有这样的模块XYZ
对于在这里遇到同样问题的人,我是如何克服它的:
use_frameworks!
def shared_pods
pod 'XYZ'
end
target 'MyApp' do
platform :ios, '8.0'
shared_pods
pod 'Blah'
pod 'blah'
end
target 'Watch Extension' do
platform :watchos, '3.2'
shared_pods
end
我刚刚在每个目标下添加了平台,例如platform :watchos, '3.2'
之前缺少它,它解决了我的问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)