我遇到了使用 Swift 在 Xcode 6.1 中导入第三方框架的问题。
我按照以下步骤添加框架:
1. cd into the project directory.
2. git submodule add git://repo.com/example3rdPartyFramework.git
3. add the example3rdPartyFramework.xcodeproj file to my Xcode project through Xcode.
4. Modify my project Build Phase accordingly
我能够成功构建并运行该项目。在将更改(包括第三方框架)推送到远程存储库之后,我在另一台计算机上执行以下操作:
git clone --recursive git://repo.com/myProject.git
它添加了包括第三方框架子模块在内的所有内容。但是,我去构建我的项目并得到错误:'没有这样的模块xxxxxx'。
所以我想知道我做错了什么,如果有的话?