Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 5.0.2 dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest

Tags:

xcode

dyld

xctest

I have problems running a project in Xcode 5.0.2

I get the following error:

dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest   Referenced from: /Users/chris/Library/Developer/Xcode/DerivedData/relatio-cwlmozvklaldmictbbjthzuoxnxz/Build/Products/Debug/relatio.app/Contents/MacOS/relatio 

Reason: image not found (lldb)

How do I solve this issue?

like image 420
user637338 Avatar asked Dec 01 '13 23:12

user637338


1 Answers

It looks like your main target is linking to XCTest.framework as well as your test target. It should only be linked to the main target.

1) Go to Project settings

2) Go to your apps main target -> other linker flags

3) remove '-framework XCTest'

4) make sure the 'other linker flags' field for your test target still contains '-framework XCTest'

like image 137
Robert Wagstaff Avatar answered Sep 28 '22 08:09

Robert Wagstaff