还是dyld:库未加载 [英] still dyld: Library not loaded
问题描述
我正在将Facebook集成到我的应用程序中。根据需要,我添加到项目中。
但该应用程序崩溃而未加载第一个屏幕。
I am integrating Facebook in my application. As required frameworks I added to the project. But the app crashes without loading even first screen.
dyld: Library not loaded: /System/Library/Frameworks/AdSupport.framework/AdSupport
Referenced from: /var/mobile/Applications/8E09C9AA-CA81-4C26-AEED-B2C632B60A54/Gridlocked.app/Gridlocked
Reason: image not found
我使用xcode 4.5&我的iPad运行iOS 5.1该应用在模拟器上运行良好(6.0和5.1)
但是当我连接iPad和iPad时将部署目标更改为5.1(因为没有显示此设备未运行)应用程序崩溃
I use xcode 4.5 & my iPad runs iOS 5.1 The app runs fine on simulator (both 6.0 & 5.1) But when I connect iPad & change the deployment target to 5.1(as without this device is not shown to run) app crashes
任何人都可以帮忙摆脱它。我真的花了很多时间和仍然在努力取得成功
Can anyone pls help to get out of it. I really spent good time & still looking struggling to achieve success
推荐答案
找到问题的解决方案。
问题是将添加的框架设置为必需而不是可选
Found out the solution to the problem. The problem was setting the added frameworks as required instead of optional
转到项目 - >目标 - >构建阶段 - >链接二进制与库
GO TO Project-> Targets-> Build Phases-> Link Binary with Libraries
在那里,将添加的框架的状态设置为可选
There, set the status of added frameworks to Optional
这解决了我的问题。
这篇关于还是dyld:库未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!