Vaibhav
Vaibhav

Reputation: 865

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

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.

Upvotes: 1

Views: 6481

Answers (2)

ha100
ha100

Reputation: 1592

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

enter image description here

if not, click + button, then Add Other Framework

enter image description here

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

enter image description here

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

Upvotes: 7

Harikant Jammi
Harikant Jammi

Reputation: 298

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

Upvotes: 2

Related Questions