watchOS 2与CocoaPods一起使用 [英] watchOS 2 working with CocoaPods
本文介绍了watchOS 2与CocoaPods一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人让cocoaPods与watchOS 2兼容吗?我尝试将'use_framework!'与'platform:watchos,'2.0'结合使用,但它显示 [!] Podfile
文件无效:平台不受支持 watchos2
。平台必须为:ios
或:osx
..更新CocoaPods可能会解决此问题。
Has anyone gotten CocoaPods working with watchOS 2? I tried using ‘use_framework!’ with ‘platform :watchos, ‘2.0’ but it says "[!] Invalid Podfile
file: Unsupported platform watchos2
. Platform must be :ios
or :osx
.. Updating CocoaPods might fix the issue."
我正在使用最新版本的CocoaPods。
I am on the latest version of CocoaPods.
推荐答案
CocoaPods当前不支持watchos。此处有一个正在进行中的问题,用于增加支持为此。
CocoaPods currently doesn't support watchos. There is a work in progress issue here for adding support for it.
这篇关于watchOS 2与CocoaPods一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文