我的示例dylib无法在iphone设备中运行,但在模拟器中可以正常运行 [英] My sample dylib is not working in iphone Device but working fine in Simulator

查看:57
本文介绍了我的示例dylib无法在iphone设备中运行,但在模拟器中可以正常运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 add(int,int)方法创建了一个示例 dylib .我将此dylib保留在 usr/lib 中,并尝试通过将其包含在我的iPhone应用程序框架中来调用此方法.现在,它可以在Simulator上正常工作,但不能在我的设备上运行.
有人可以给我提示我要去哪里了吗?
以下是我收到的错误/警告 消息:

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

推荐答案

iPhone上不支持Dylib,您只能使用静态库.

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

这篇关于我的示例dylib无法在iphone设备中运行,但在模拟器中可以正常运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆