ios - 我可以告诉 pod install Xcode 项目和工作区位于不同的目录中吗?
<p><p>所以我可以告诉 <a href="http://cocoapods.org/" rel="noreferrer noopener nofollow">CocoaPod</a>的 <code>pod install</code> 项目目录的位置(使用 <code>--project-directory</code>)。它显然会寻找 <code>Podfile</code>、<code>*xcproject/</code> 并在那里创建或更新 <code>*.xcworkspace/</code>。</p>
<p>是否还有一个选项可以告诉它现有工作空间位于与该项目或当前目录不同的目录中?</p>
<p>我问的原因在 <a href="https://stackoverflow.com/questions/28497959/error-library-not-found-for-lpods-myprojecttests-kif-when-installing-kif-in-e" rel="noreferrer noopener nofollow">this</a> 中有描述相关问题。</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>CocoaPods 文档状态:</p>
<blockquote>
<p><strong>workspace</strong><br/>
Specifies the Xcode workspace that should contain all the
projects.</p>
<p>If no explicit Xcode workspace is specified and only one project exists in the same directory as the Podfile, then the name of that project is used as the workspace’s name.</p>
<p>Example:<br/>
<code>workspace '../MyProject'</code><br/>
<code>workspace 'folder/AnotherProject'</code></p>
</blockquote></p>
<p style="font-size: 20px;">关于ios - 我可以告诉 pod install Xcode 项目和工作区位于不同的目录中吗?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/28499347/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/28499347/
</a>
</p>
页:
[1]