gpt4 book ai didi

ios - Objective-C 项目中的 Swift pod

转载 作者:可可西里 更新时间:2023-11-01 06:14:06 24 4
gpt4 key购买 nike

我的 pod 看起来像这样

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 显示无意义的错误,例如重复接口(interface)和枚举定义。

我是否应该做更多的事情来支持 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,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32950770/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com