Urk*_*man 8 ios cocoapods xcode6 watchkit
我尝试为我的应用程序构建一个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
Run Code Online (Sandbox Code Playgroud)
我如何安装pod并且没有出错...
但是,当我构建应用程序时,我收到此错误:
ld: framework not found Pods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我的问题在这里是什么?
我正在使用Pod 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
Run Code Online (Sandbox Code Playgroud)
我只是在每个目标下添加了平台,例如platform :watchos, '3.2'之前缺少的平台,它解决了我的问题。
| 归档时间: |
|
| 查看次数: |
7376 次 |
| 最近记录: |