My sample dylib is not working in iphone Device but working fine in Simulator

落花浮王杯 提交于 2020-01-07 04:57:09

问题


I have created a sample dylib with add(int,int) method. I kept this dylib in usr/lib and tried to call this method by including this in frameworks of my iphone application. Now this works fine with Simulator but not running in my Device.
Can any one give me clue Where I am going wrong?
Following are the Error/warning messages I got:

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

回答1:


Dylibs are not supported on the iPhone you can only use static libs.



来源:https://stackoverflow.com/questions/3091037/my-sample-dylib-is-not-working-in-iphone-device-but-working-fine-in-simulator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!