Can I export a target's source code as a separate project?
Lets say I have a target for the "lite" version of my app. I want to export this as a separate project so that I can distribute the code and assets without including any of the code and assets from the full version of the app.
Is this possible at all? I could probably write a script to do this manually, but I have a feeling that it should be possible from within Xcode.
Many thanks.
I'm not aware of an export facility built-in (doesn't mean it doesn't exist of course!) but an alternate idea is to create a project and add your files to it as a "folder reference". That is, put the "common" files into a folder on disk (either under your main project or in a separate external directory). Then create a second XCode project, and add the folder to that project but choose the "folder reference" option when adding it. This essentially creates a "symbolic link" from your project out to that source folder, rather than copying the files into your project's directory structure.
Not quite what you're looking for, but might be a workable alternative for sharing one set of files across projects.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.