我在 stackoverflow 中看到了类似的问题,并--use-libraries
在pod spec lint
. 它只是说
[!] 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.
这很奇怪。
我的问题是如何创建一个用objective-c 和swift 编写的框架,并创建一个私有的cocoapods 存储库。我无法创建正确的 .podspec,因为我在框架中使用了 Objective-c 桥接头,并且pod spec lint
总是告诉我error: include of non-modular header inside framework module
。这让我要疯了...
我也在github中详细发布了这个问题:
https://github.com/CocoaPods/CocoaPods/issues/3666
如果有人知道如何解决它,我将非常感谢你。非常感谢!