How to add dylib to iOS App?? ( added ScreenShots )
-
The following XCode project was created with QT and loaded from XCode.
first, I would like to port a C++ shared library to ios rather than an object-c shared library (dylib).
The screenshot below shows the traces I tried.
=> Mach-O Type was set to Dynamic Library and built with C + 11.
=> And I added to testApp Project (by Link Binary With Libraries) libmyLib.dylib
Right here I have a question !!
=> first, I always need to manually change the Type from "Default-Mach-O Dynamic Library" to "C ++ Source" before I can install the app. Otherwise, a testApp build error occurs. I want to preset the type in myLib build phase.
=> second, I can't figure out where to find the dylib I added. I can't be sure that I have succeeded in adding dylib to the app ....