Hello All,
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:
I tried cleaning and rebuilding and running, same error. I was able to run the demo by changing the target to release mode and it was fine, but in debug I always get this error.
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.
Any ideas?
Dan
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:
Code:
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[821]: *** 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.)
I tried cleaning and rebuilding and running, same error. I was able to run the demo by changing the target to release mode and it was fine, but in debug I always get this error.
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.
Any ideas?
Dan