04-04-2004, 01:42 AM #1dr_springfieldGuestXcode doesn't run application correctly
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.
04-06-2004, 12:57 AM #2dr_springfieldGuest
Forget part 2, I figured that out. Part 1 still stands...
04-06-2004, 01:06 AM #3
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?
04-06-2004, 02:20 AM #4dr_springfieldGuest
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.
04-06-2004, 12:06 PM #5
- Member Since
- Dec 24, 2002
- Los Angeles, California
- 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
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!
04-07-2004, 12:22 AM #6dr_springfieldGuest
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By operageek in forum OS X - Operating SystemReplies: 5Last Post: 06-15-2015, 03:29 PM
By Back Door Daddy in forum iOS DevelopmentReplies: 0Last Post: 03-31-2015, 06:16 PM
By ildsarria in forum iOS DevelopmentReplies: 1Last Post: 11-09-2011, 04:15 PM
By Octopustea in forum OS X - Operating SystemReplies: 2Last Post: 09-02-2010, 05:49 PM
By Kola in forum Switcher HangoutReplies: 11Last Post: 09-17-2009, 05:43 PM