Code base for the iOS static library for white-labeled applications

I'm looking for the best approach to customizing our iOS app, so we can easily create white versions of its shortcuts and sync them all.

One approach is to put the entire code base in a static library project. Then create a separate project for our main application and each application with a white label. These projects will contain links to the code library as a subproject and their own assets, such as icons, image uploads and the Info.plist file.

My colleague has successfully used this approach with our child project of Android in Eclipse.

Unfortunately, this approach may not work in xcode. xcode does not seem to allow you to link some resources to the static library, such as Settings.bundle and Localizable.strings, which are needed.

Is it possible to use this approach in xcode, or is it better for me to just refer to the code base folder from each project?

Edit:

Initially, I planned to just reference the codebase folder from each project, but found that this approach would require re-adding the code base directory to each project every time the file was added / deleted / renamed to the code base.

+5
source share
3 answers

. . . . , , .

, , , , , .

. xcassets . . .

:

+4

, . .sh, , .plist .

, , - ; , , - , . , . ( !!! LOL)

, , - CocoaPods. , , - , lib - . - Zxing, .

https://github.com/CocoaPods/CocoaPods

- Source Control, !

+3

It is not possible to link resources to a static library automatically, but this does not stop you from manually including shared resources. You can create a workspace for a custom project, insert a library project into the workspace, and then drag a group of resources from the library project tree to the main project.

+2
source

All Articles