0

I have two libraries i.e. DEBUG and RELEASE. I want to know which static library is getting called when app is build i.e. DEBUG or RELEASE. The link determines which mode app is getting executed (DEBUG or RELEASE) but not for library.

How can this be determined in Xcode 6.4?

Community
  • 1
  • 1
Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177
  • @Vizllx : I want to know which static library is getting called when app is build. The above link determines which mode app is getting executed (DEBUG or RELEASE) but not for library. – Jayprakash Dubey Jul 28 '15 at 06:15
  • Now the question look promising! You must have mentioned it in first spot. – Vizllx Jul 28 '15 at 06:22
  • 1
    @JayprakashDubey We, normally use universal library, not specific.. You should be looking for how to create static Universal library from release and debug static libraries. Here is [link](https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=create%20universal%20static%20library%20using%20release%20and%20debug%20library) that will help. – iphonic Jul 28 '15 at 06:27
  • @JayprakashDubey- Yes, that is possible to do . You must have to search well to find it. http://stackoverflow.com/a/13585189/2714702 – Vizllx Jul 28 '15 at 06:35
  • @iphonic and Vizllx : Thanks for that link but that doesn't answer my question in any manner. I want to know code that can determine whether DEBUG or RELEASE library is executed. – Jayprakash Dubey Jul 28 '15 at 06:51
  • @JayprakashDubey There is no programmatic way to do this for sure. But we have XCode settings where you can add specific static libraries for Device and Simulator separately.. See [this](http://iphoneincubator.com/blog/xcode/how-to-add-multiple-static-library-files-with-different-architectures-to-xcode) and [this](http://www.raizlabs.com/dev/2014/03/specifying-the-build-configuration-for-xcode-project-dependencies/). – iphonic Jul 28 '15 at 07:01
  • Is this library pre-built or built as a sub-project of the Xcode project? – trojanfoe Jul 28 '15 at 07:59

1 Answers1

1

While creating Libraries it self we will get two different .a files for both debug and release there we have to name it properly.

Please read through this link, there you have clear description.

Mnementh
  • 50,487
  • 48
  • 148
  • 202
Ganesh Manoj
  • 111
  • 8
  • Your blog states how to create universal static library. I have already library in place (developed by third party). I have a scenario where I want to know whether app is build for debug or release mode programmatically. – Jayprakash Dubey Jul 28 '15 at 06:59