My dylib sample doesn't work on iphone device but works fine in Simulator

I created a dylib sample using the add(int,int) method. I saved this dylib to usr/lib and tried to call this method, including it in the scope of my iphone application. Now this works fine with Simulator, but does not work on my device.
Can someone give me a clue Where am I wrong?
Following are the error / warning messages:

 Error: ld: symbol(s) not found collect2: ld returned 1 exit status. Warning : libAddDll.dylib, file is not of required architecture 
0
source share
1 answer

Dylib is not supported on iPhone, you can only use static libraries.

+3
source

Source: https://habr.com/ru/post/923431/


All Articles