[英]How do I install Frank when my project is using Cocoapods?
I have a sample, new project that and I used Cocoapods
to install TestFlight
and RestKit
. 我有一个示例,新项目,我使用Cocoapods
安装TestFlight
和RestKit
。 Now I am trying to add Frank but "frank build" does not work. 现在我想添加弗兰克,但“坦诚的构建”不起作用。
I've tried following steps listed here ; 我试过按照这里列出的步骤;
I've tried to modify the franked ../Frank/frankify.xcconfig
and I've modified the .xcconfig
for the default target. 我试图修改../Frank/frankify.xcconfig
,我已经修改了.xcconfig
作为默认目标。
When I run "frank build", the build fails and leaves me a message, "ld: library not found for -lPods"
. 当我运行“frank build”时,构建失败并给我留言, "ld: library not found for -lPods"
。
Any ideas on how to get this to work? 有关如何使其工作的任何想法?
从您链接到的文章,在修改frankify.xcconfig
文件后,您仍然必须使用--workspace
和--scheme
标记调用frank。
只需键入
frank build --workspace YourWorkspace.xcworkspace/ --scheme YourProject
You are going to have this problem because the scheme is missing for the Pods project that provides this library. 您将遇到此问题,因为提供此库的Pods项目缺少该方案。 You need to tweak the build script/Frank to use the new xcworkspace instead of the original xcodeproj file. 您需要调整构建脚本/ Frank以使用新的xcworkspace而不是原始的xcodeproj文件。 Changing that should get you your normal project and the Pods static library it depends on. 改变它应该让你正常的项目和它依赖的Pods静态库。
This also happens with Jenkins and Hudson builds too. 这也发生在Jenkins和Hudson的构建中。 The problem isn't isolated to just Frank. 问题不仅仅与弗兰克孤立。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.