In this post I want to collect all problems that I meet in programming for iPhone and solved them.

  • Application Exception: [NSCFString JSONValue]: unrecognized selector sent to instance

I added JSON framework to my iPhone project. And did all things that posted on installation page. But when I run my application I received exception when tried to parse JSON string. So I found solution on the site. I put ‘-ObjC -ljson -all_load’ to “Other Linker Flags”. And also, “$HOME/Library/SDKs/JSON/$(PLATFORM_NAME).sdk” to “Additional SDKs”

  • XCode Error: Error launching remote program: failed to get the task for process XXXX

When I tried to debug my application on iPhone, I get such error from XCode. The error was after application installation and starting. I found solution on the site. I just removed code signing entitlements plist file from debug configuration.

  • XCode Error: syntax error before 'AT_NAME' token«, »error: syntax error before '}' token« and »fatal error: method definition not in @implementation context

When I compiled code for version 3.0 of iPhone OS I received such error. I found solution on the site. I just changed the compiler GCC version to something other than 4.2 and back again to 4.2.

Post Navigation