Go Back  Mac-Forums.com  > Software > OS X - Darwin and Development > Xcode doesn't run application correctly

Reply
 
LinkBack Thread Tools
Old 04-04-2004, 01:42 AM   #1 (permalink)
dr_springfield
Guest
 
Posts: n/a
Xcode doesn't run application correctly

Hey,
Two questions:
1) Xcode started to not run my app correctly. It builds fine, and it run fine if I run the application directly from the finder, out of the build directory. But for some reason, when I try to run the app or debug the app through xcode, strange things happen. First, the application's icon doesn't appear in the dock, like it normally does. It starts up in the background, and I can't switch to it. If I try to click on it, it doesn't become active. The only click that works on it is to press the close button on the window. Xcode works properly for other applications I'm working on. It used to work fine for this one, but one day it stopped working -- this might be a configuration problem.

2) When I changed the name of my project directory, I got an error: path/libstdc++_ZeroLink.dylib (No such file or directory, errno = 2)
The problem was that the path to this library had changed when I changed the directory name. I had to change it back to get it to work. How do I make the path to this library dynamic, or just change it at all?

Thanks a lot for any help.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 04-06-2004, 12:57 AM   #2 (permalink)
dr_springfield
Guest
 
Posts: n/a
Forget part 2, I figured that out. Part 1 still stands...
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 04-06-2004, 01:06 AM   #3 (permalink)
witeshark
Banned
 
witeshark's Avatar
 
Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
witeshark will become famous soon enough
Mac Specs: G4 1Ghz OS X 10.4.7
Some apps will run rightly only from the Finder > Applications directory. :rolleyes: I guess it's about having only some directories as application paths Does that help?
witeshark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 04-06-2004, 02:20 AM   #4 (permalink)
dr_springfield
Guest
 
Posts: n/a
I finally solved this problem and the solution was almost too ridiculous to post. The problem was, believe it or not, the difference in the case of only two characters of the CFBundleName of the application in the Info.plist file. If you change it, your app won't run correctly thru Xcode (at least for me), so I wouldn't recommend touching it. I think it's because there was a case-sensitive difference between the name of the project which Xcode had stored somewhere else, and the CFBundleName.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 04-06-2004, 12:06 PM   #5 (permalink)
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,190
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.5.7
Cool

You learned a very valuable lesson. Unix is case sensitive, when you are working in the command line (terminal).
__________________
Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
rman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 04-07-2004, 12:22 AM   #6 (permalink)
dr_springfield
Guest
 
Posts: n/a
A correction: the problem with case sensitivity was in CFBundleExecutable, not CFBundleName (the former is defined in Info.plist, the latter in InfoPlist.strings). I thought this is a bug in Xcode, because the app will run fine from the finder, however the same thing happened when trying to run the app thru gdb from the terminal.

Last edited by dr_springfield; 04-07-2004 at 12:54 AM.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about exceptions in C++ via Xcode cipher OS X - Darwin and Development 2 06-25-2004 11:02 AM
XCode build hangs? robin OS X - Darwin and Development 3 01-12-2004 02:42 AM
New Xcode plug-in helps developers reuse code Murlyn OS X - Darwin and Development 0 11-10-2003 01:16 PM
Xcode developer tools updated Murlyn OS X - Darwin and Development 0 11-04-2003 06:09 PM

 
 
 
     
Home Calendar Get New
     

Copyright ©2001-2009 Mac-Forums.com. All Rights Reserved. A division of iNET Interactive.

Other iNET Interactive Sites: Web Hosting Talk | Swish Talk | Hosting Catalog.com| Dev Papers| Deleted Domains| Hot Scripts

Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.