如何使用本地podspec项目进行开发

时间:2019-07-14 07:59:26

标签: ios react-native cocoapods podspec

ios noob在这里。 我有一个本机应用程序,并且编写了一个本机模块(私有)。

现在我要使用它。 在应用程序的podfile中,我已经定义了要从node_modules提取的模块,但是在模块的podspec文件中,我需要定义source,所以我写了:s.source = {:path => "./ios"}

很明显,很长时间以来,cocoapods不支持此功能。 这失败,Unsupported download strategy '{:path=>"./ios"}'.

任何有关如何进行此工作的帮助将不胜感激。 谢谢

2 个答案:

答案 0 :(得分:0)

这对我有用: s.source = {:git =>'file:/// Users / MyName / path'} 我的pod版本是1.7.4

答案 1 :(得分:0)

您可以参考this answer under Local Dependencies,我描述了如何找到文件。在早期,我还分享了如何创建podfile。希望对您有帮助

相关问题