1

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.

Community
  • 1
  • 1
Vaibhav
  • 865
  • 2
  • 10
  • 19
  • 3
    I resolved the issue,but i don't know whether it is the right answer in XCode 6 what i did is just set the flag optional for XCTest.framework in build phases under link binary with libraries – Vaibhav Dec 30 '14 at 05:55

2 Answers2

7

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

ha100
  • 1,563
  • 1
  • 21
  • 28
  • 1
    This worked for me. The important set is the to mark the framework optional. I did all the steps but keep the framework as required and keep getting the above error. After i changed to optional the build started working. – Arun Gupta Sep 12 '16 at 07:36
2

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

Harikant Jammi
  • 298
  • 2
  • 11
  • This isn't work for me. Please update your answer. I'm adding OCMock via cocoapod. Does it include itself with XCTest? Actually, I've zero idea about XCTest and OCMock. I'm running a client code which was created in 2012. – Hemang Jun 12 '15 at 13:41