Xcode Build Configurations in Workspace With Multiple Projects

让人想犯罪 __ 提交于 2019-12-05 15:40:01
Stefan Arambasich

Ultimately, I decided with a similar approach as seen here:

How to compile a project with app and library in the same workspace with different configuration names?

It adds build settings inside the parent project to direct it on how to find what it needs in the child project. Additionally, I needed to take the embedded .framework file and set it relative to the build path and using the configuration setting. I did leave out the variants and just used $(BUILD_DIR)/$(DEFAULT_CONFIGURATION)-$(PLATFORM_NAME) for all values instead of leaving off the platform name to finally achieve success.

Will update this post as I learn and discover more.


Update: 2016-2-29:

I removed the .xcconfig files; they were not necessary.

But, I've run into difficulty when trying to actually use the third scheme in the embedded framework. I tried toggling DEFAULT_CONFIGURATION but the settings did not hold. Omitting some details, basically even if the right build directory is specified, Xcode ignores this when using a parent's build config setting and builds all products in the same directory, which I also believe is a result of "Build Implicit Dependencies" as well as the "Embed Frameworks" build phase. But if you were to remove these and then install to device, the app crashes at launch because it cannot find the framework file.

To be continued...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!