1

When I'm running my cocoa application inside Xcode it works fine. But I'm going to where the .app file is and run it from there this error shows up:

Process:         QBLoader [4571]
Path:            /Users/USER/Library/Developer/Xcode/DerivedData/QBLoader-egxdvwlbzueazygfdbjqcxtgyvqz/Build/Products/Debug/QBLoader.app/Contents/MacOS/QBLoader
Identifier:      com.fsm.QBLoader
Version:         1.0 (1)
Code Type:       X86-64 (Native)
Parent Process:  launchd [210]

Date/Time:       2012-05-25 09:25:31.121 +0200
OS Version:      Mac OS X 10.7.3 (11D50)
Report Version:  9

Interval Since Last Report:          62057 sec
Crashes Since Last Report:           10
Per-App Interval Since Last Report:  20 sec
Per-App Crashes Since Last Report:   10
Anonymous UUID:                      5DEC6815-69C3-48FA-A3C4-3EEBC31CC1B6

Crashed Thread:  0

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /Library/Frameworks/SBJson.framework/Versions/A/SBJson
  Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/QBLoader-egxdvwlbzueazygfdbjqcxtgyvqz/Build/Products/Debug/QBLoader.app/Contents/MacOS/QBLoader
  Reason: image not found
3
  • It looks like you don't have SBJson.framework installed in an appropriate Frameworks directory. Commented May 25, 2012 at 7:41
  • Ok can you give me some more information? This is my build phases tab: i.imgur.com/fUsUl.png Commented May 25, 2012 at 7:48
  • 1
    You need to read up on deploying third party frameworks with your app. Commented May 25, 2012 at 7:49

1 Answer 1

3

This is what worked for me. I changed "Installation directory" for the SBJson target to: "@executable_path/../Frameworks". Now is it possible to run the application outside Xcode.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.