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

China☆狼群 提交于 2019-12-06 16:39:52

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

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

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