|Dec 2, 2010, 03:29 PM||#1|
Weird GDB Error
so I got the strangest error the other day. I had a program that I made for a class, it uses the MCPKit.framework to access and interact with a MySQL database. Everything was great and I was ready to demo it for the prof and TA, but had to wait for 40 minutes until it was my turn. In that time I didn't do anything to the project (it worked before, I went through the demo with a friend). When they came to me, I built it and it succeeded, but when I clicked Run, it wouldn't load and had this error:
WHERE THE APP IS STORED/Contents/MacOS/../Frameworks/MCPKit.framework/Versions/A/MCPKit' was not compiled with -fobjc-gc or -fobjc-gc-only, but the application requires GC objc: *** GC capability of application and some libraries did not match Program received signal: “EXC_BAD_INSTRUCTION”. sharedlibrary apply-load-rules all Data Formatters temporarily unavailable, will re-try after a 'continue'. (Not safe to call dlopen at this time.)
It seems from the error that something went wrong with the MCPKit? I know the instructions for adding it had me add a New Copy Files Build Phase, set to frameworks and copied the MCPKit.framework into it. Something is clearly going wrong with that, but I don't understand why everything was fine, nothing was changed, and then crashed?
I should also mention that I searched Google, but all I could find was a guy was was having a similar problem with an iPhone app, but nobody knew how to fix it.
|Dec 2, 2010, 04:35 PM||#2|
Perhaps you built the executable for a different CPU than you have in your computer..? Or you switched Garbage Collection on for your app but not for the library? Scrutinize your build settings for differences between your Debug and your Release versions...
Computer Programming: An Introduction for the Scientifically Inclined
So how much does an iPhone developer make?
My iPhone games: Sjoelen, Mazer (free)
Last edited by Sander; Dec 2, 2010 at 04:42 PM.
|Dec 2, 2010, 04:47 PM||#3|
But what I was trying to say is that for my Debug version, nothing changed. I was using it throughout development of the application. Then it sat for 40 minutes, nothing was changed in it and then when I went to demo I got the error. Switching to Release allowed me to demo the app.
What I don't get is why changing nothing all of a sudden breaks it?
|Dec 2, 2010, 05:54 PM||#4|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|DivX gdb Error||sclaxplayer||iPhone/iPad Programming||1||Apr 6, 2009 10:45 PM|
|Weird 'blessing' error during Carbon Copy Cloner mirroring||lamina||Mac Basics and Help||0||Jul 3, 2007 09:52 PM|
|Weird DL Error||xodus||Mac Basics and Help||1||May 15, 2007 09:12 PM|
|Weird iPod Error.||iShane||iPod||12||Aug 13, 2006 03:41 AM|
|Weird Startup Error||CubaTBird||Macintosh Computers||5||Sep 28, 2004 03:53 PM|
All times are GMT -5. The time now is 01:18 PM.