我可以告诉 pod install Xcode 项目和工作区驻留在不同的目录中吗?
Can I tell pod install that Xcode project and workspace reside in different directories?
所以我可以告诉 CocoaPod 的 pod install
项目目录的位置(使用 --project-directory
)。它显然会寻找 Podfile
、*xcproject/
并在那里创建或更新 *.xcworkspace/
。
是否还有一个选项可以告诉它现有工作区位于与该项目或当前目录不同的目录中?
我问的原因在 相关问题中有描述。
CocoaPods 文档指出:
workspace
Specifies the Xcode workspace that should contain all the
projects.
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.
Example:
workspace '../MyProject'
workspace 'folder/AnotherProject'
所以我可以告诉 CocoaPod 的 pod install
项目目录的位置(使用 --project-directory
)。它显然会寻找 Podfile
、*xcproject/
并在那里创建或更新 *.xcworkspace/
。
是否还有一个选项可以告诉它现有工作区位于与该项目或当前目录不同的目录中?
我问的原因在
CocoaPods 文档指出:
workspace
Specifies the Xcode workspace that should contain all the projects.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.
Example:
workspace '../MyProject'
workspace 'folder/AnotherProject'