Home Ask Login Register

Developers Planet

Your answer is one click away!

Nathan H February 2016

iOS library not loaded when using IPA

My code uses an external library using dlsym (for reasons out of my control).

In order Xcode to find my library, I had to do 2 things:

  • -force_load "$(SRCROOT)/pathTo/myLibrary.a"
  • Dead-Code Stripping: NO

This works fine when running wit the debug profile. Both on the simulator and on a physical device, the library is loaded and works.

However if I create an AdHoc IPA file and install it on my device, this same library is no longer found.

What could be the difference?


Nathan H February 2016

This is what solved the issue:

In Build Settings → Deployment → Strip Linked Product, select NO.

Post Status

Asked in February 2016
Viewed 2,005 times
Voted 8
Answered 1 times


Leave an answer

Quote of the day: live life