Adding an Xcode subproject: Shouldn't all the source files get copied?

二次信任 提交于 2019-12-05 08:34:29

Add it to your filesystem-structure first. For example by pressing "Show in Finder" on the "Chimee"-project which will lead you to the folder it's located in. Then copy the SQLite-project structure in there.

Afterwards you can then drag&drop the xcodeproj into your project which will then still link to its original path, but as it's now inside your project-structure isn't a problem anymore.

I guess that this is by design, because when you try it via Add files to "YourProject" you can select the Copy items if needed-option but it will still not get copied (only with .xcodeproj-files, it works with all other filetypes)

After doing more research, I now feel that using a dependency manager (like CocoaPods or Carthage) is a better option than manually adding the framework to the project.

  • This will allow easier updating in the future.
  • Github source code sharing and App Store submission issues have already been considered.

Using Carthage is not too difficult if you follow this excellent guide: Carthage Tutorial: Getting Started

Notes

  • Delete the framework files that you manually copied in before installing the framework with Carthage.
  • I will leave @TMob's answer as accepted for now, but I am no longer pursuing that route.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!