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

dyld, xcode, xctest

Solution

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'

Problem

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?

Original source

Related problems