• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa application does not run outside of Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa application does not run outside of Xcode


  • Subject: Cocoa application does not run outside of Xcode
  • From: Daniel Spelmezan <email@hidden>
  • Date: Thu, 23 Sep 2004 13:01:07 +0200

Hi,

I have a strange problem with all my Cocoa applications that use external .dylib libraries, which I add from /usr/local/lib to my Xcode project.

Within Xcode, the app runs as expected without errors, but when I double-click the executable in my build products directory, the app will not run. The icon will appear in the dock and disappear immediately thereafter, without generating any errors at the console.

Yet, if I right-click the executable in Finder and select "Show Package Contents", browse to the Contents/MacOS directory and double-click the unix executable file in there, a terminal pops up that launches the app, which then runs as expected.

If I do not instantiate the class that uses the functions in the external libraries, this problem does not occur. I have also tried other "Library Style" linking options (static, dynamic, bundle) and checked the corresponding paths for the libraries, tragets, etc., without any success.

Did someone experience a similar problem? Why is the app running when I click the "build and go"-button in Xcode or when I double-click the file within the executable's package directory Contents/MacOS, but not when I double-click the executable itself in the build directory?

Best regards,

Daniel Spelmezan


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Cocoa application does not run outside of Xcode
      • From: Rosyna <email@hidden>
  • Prev by Date: [Ann] (Seattle, WA) New Cocoa SIG, General Mac Programming SIG
  • Next by Date: Re: Cocoa application does not run outside of Xcode
  • Previous by thread: [Ann] (Seattle, WA) New Cocoa SIG, General Mac Programming SIG
  • Next by thread: Re: Cocoa application does not run outside of Xcode
  • Index(es):
    • Date
    • Thread