ios – Objective-C项目中的Swift pod

ios – Objective-C项目中的Swift pod,第1张

概述我的吊舱看起来像这样 platform :ios, '8.1'pod 'Masonry'pod 'Parse'pod 'SSKeychain'pod 'Reachability' 当我添加’pod Charts’时,我会收到这样的错误 [!] Pods written in Swift can only be integrated as frameworks; this feature 我的吊舱看起来像这样

platform :ios,'8.1'pod 'Masonry'pod 'Parse'pod 'SSKeychain'pod 'Reachability'

当我添加’pod Charts’时,我会收到这样的错误

[!] Pods written in Swift can only be integrated as frameworks; this feature is still in beta. Add `use_frameworks!` to your Podfile or target to opt into using it. The Swift Pod being used is: Charts

如果我将podfile更新为:

platform :ios,'8.1'use_frameworks!pod 'Masonry'pod 'Parse'pod 'SSKeychain'pod 'Reachability'pod 'Charts'

它弄乱了项目,SSKeychain显示了重复的界面和枚举定义等无意义的错误.

我应该做些什么来支持Swift pod框架吗?或者我必须更新项目以删除某些开源文件(SSKeychain等)?

解决方法 也许你应该删除给定pod的缓存,或者完全清除缓存.请按照 pod cache clean进行

pod cache clean [name]

Remove the cache for a given pod,or clear the
cache completely.

If there is multiple cache for varIoUs versions of the requested pod,
you will be asked which one to clean. Use --all to clean them all.

If you dont give a podname,you need to specify the --all flag (this
is to avoID cleaning all the cache by mistake).

Options: –all

Remove all the cached pods without asking.

inherited options: –silent

Show nothing.

–verbose

Show more deBUGging information.

–no-ansi

Show output without ANSI codes.

–help

Show help banner of specifIEd command.

希望它对你有所帮助.

总结

以上是内存溢出为你收集整理的ios – Objective-C项目中的Swift pod全部内容,希望文章能够帮你解决ios – Objective-C项目中的Swift pod所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1003771.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存