简体   繁体   English

CocoaPods无法达到框架目标

[英]CocoaPods not working on framework target

Im building a IOS app that uses a third-party library. 我正在构建一个使用第三方库的IOS应用。

The library project is inherited from another developer that im unable to ask anything. 该库项目是从另一个无法询问任何内容的开发人员继承的。

It is configured to use CocoaPods to manage dependencies, it has a lot of them. 它配置为使用CocoaPods来管理依赖关系,它有很多依赖关系。

When i run "pod install" it downloads all of them and creates the workspace. 当我运行“ pod install”时,它将全部下载并创建工作区。

In the workspace i have set the app target as dependent from the framework project product 在工作空间中,我已将应用程序目标设置为与框架项目产品相关的目标

Then i try to build it and it says it cannot find one of the dependencies of the framework project (it is on the podfile) 然后我尝试构建它,它说它找不到框架项目的依赖项之一(它在podfile上)

Then i found the framework project is missing "[CP] Embed Pods Frameworks" in build phases (the app project has it) 然后我发现框架项目在构建阶段丢失了“ [CP] Embed Pods Frameworks”(应用程序项目中有)

Also the "Pods_[targetName].framework" is shown in red (even when it indeed is in the build products folder, the path is correct) 另外,“ Pods_ [targetName] .framework”也显示为红色(即使确实在build products文件夹中,路径也是正确的)

I found this issue that seems to be exactly my problem but im unable to see if it has been fixed or not and what could i do to workaround this. 我发现这个问题似乎完全是我的问题,但是我无法查看它是否已解决,我该如何解决。

对我来说同样的效果,我的问题是在重构后podspec中的s.source_files没有引用实际文件所在的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM