创建一个椰子
Creating a cocoapod
我开发了一个小型库,我想为它创建一个 Cocoapod。问题是每当我 运行 script pod spec lint xxx.podspec --verbose --no-clean --use-libraries
我得到
- ERROR | [iOS] unknown: Encountered an unknown error (Pods written in Swift can only be integrated as frameworks; add
use_frameworks!
to your Podfile or target to opt into using it. The Swift Pod being used is: Socialite) during validation.
我正在使用 pod lib create xxx
制作库
您不能将 --use-libraries
与 Swift pod 一起使用,因为它们必须是框架。如果你删除它 - 它会 运行 短绒。
我开发了一个小型库,我想为它创建一个 Cocoapod。问题是每当我 运行 script pod spec lint xxx.podspec --verbose --no-clean --use-libraries
我得到
- ERROR | [iOS] unknown: Encountered an unknown error (Pods written in Swift can only be integrated as frameworks; add
use_frameworks!
to your Podfile or target to opt into using it. The Swift Pod being used is: Socialite) during validation.
我正在使用 pod lib create xxx
您不能将 --use-libraries
与 Swift pod 一起使用,因为它们必须是框架。如果你删除它 - 它会 运行 短绒。