Timeline for How to include two static libraries that are almost the same for iOS
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 8, 2013 at 22:24 | vote | accept | Boon | ||
| May 8, 2013 at 21:58 | comment | added | David Hoerl | So don't edit all the Targets, copy and paste in the Project build setting - make every config default to the standard library. Its possible if you just paste this in with the disclosure triangle closed it will apply to all configurations. Then change just the ones for debug. But I know of no way to have a library in the Link Phase and then "undo" that one. Get the right string for the regular library, don't worry about he debug one til you get it all working with one library. | |
| May 8, 2013 at 21:55 | comment | added | Boon | Sorry for the confusion. I have quite a few configurations, so I was thinking to do this in an opposite way - have Xcode link by default (in Build Phases) and only in debug configuration I have Xcode unlink the release library and link the debugging library. Probably doesn't work that way. | |
| May 8, 2013 at 21:51 | comment | added | David Hoerl | I'm totally confused. You said you have two libraries, one you want for Release, one for Debugging. If you don't link the library how will your app run??? The whole way this technique I laid out for you works, is that you can specify under the Linker Flags different values for each Build Configuration. | |
| May 8, 2013 at 21:45 | comment | added | Boon | Is it possible to have the linker not linked a specific library? | |
| May 8, 2013 at 21:41 | comment | added | David Hoerl | No - remove it completely - since you can only have one there not two. Its the same thing to the build system - libraries in the Build Phase just get added to the link phase. So doing this yourself works fine (I've done this before), but don't have the exact link syntax handy. Will be something like "-l $(XcodeMacroToProjectDirectory)/somefolder/libA.a" | |
| May 8, 2013 at 21:31 | comment | added | Boon | Should the lib be specified in Build Phases as optional? | |
| May 8, 2013 at 19:42 | history | answered | David Hoerl | CC BY-SA 3.0 |