Xcode 6.1 dyld: Library not loaded: @rpath/XCTest.framework/XCTest error

好久不见. 提交于 2019-12-23 01:34:36

问题


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.


回答1:


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




回答2:


If you are using cocoapods you might need to do pod update, that worked for me



来源:https://stackoverflow.com/questions/27691432/xcode-6-1-dyld-library-not-loaded-rpath-xctest-framework-xctest-error

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