Xcode 6.1 Dyld:库未加载:@ rpath/XCTest.framework/XCTest错误 [英] Xcode 6.1 dyld: Library not loaded: @rpath/XCTest.framework/XCTest error

查看:61
本文介绍了Xcode 6.1 Dyld:库未加载:@ rpath/XCTest.framework/XCTest错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Xcode 6.1 中导入了旧项目,并且在运行时开始出现上述错误,原因是找不到图片,我尝试了以下所有建议的答案链接

如果没有,请点击 + 按钮,然后点击添加其他框架

然后按 CMD + SHIFT + G 并输入

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks

如果您将其用于模拟器,则需要适当地更改路径

ENTER 并选择 XCTest.framework

2)现在它在捆绑包中,只是使其成为可选,如第一张图片所示,您应该一切顺利

I imported my old project in Xcode 6.1 and error mentioned above started coming during runtime, with reason image not found,I have tried all off the answers suggested in following link

Xcode 5.0.2 dyld error

but none of them worked for me so far,so does anybody have any idea how to get rid of this problem.

any help will be appreciated.

解决方案

This was used for betfair/aping-ios-sdk

1) Go to Project settings -> App Main Target -> Build Phases -> Link Binary With Libraries and make sure you have XCTest.frameworks in there

if not, click + button, then Add Other Framework

then press together CMD + SHIFT + G and enter

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks

if you need it for simulator, you need to alter the path appropriately

press ENTER and select the XCTest.framework

2) now it is present in bundle just make it optional as seen in first image and you should be good to go

这篇关于Xcode 6.1 Dyld:库未加载:@ rpath/XCTest.framework/XCTest错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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