Home > Geeky > iPhone Development: Code Signing Errors with the JSON Framework

iPhone Development: Code Signing Errors with the JSON Framework

I must say I really love developing for the iPhone; never seen such a complete and helpful API as the one offered by Apple. Also XCode is just brilliant. However, one thing that can be a complete nightmare is code signing. Especially, when developing on the simulator, one doesn’t encounter the specific errors that can stop you from deploying your app to a real device. One such error I encountered already before, but completely forgot about. When trying to deploy my language learning software on a 3G device I suddenly was confronted by a weird error “object file format invalid or unsuitable”, my first suspicions were the JSON framework I recently added. These suspicions turned out to be correct; after finding this helpful blogpost I was finally able to solve the problem. A short recap of what I did:

  1. Right click the Target you’re building in my case “Language Learning”, and click on “Get Info”
  2. Go to the build tab
  3. Find the Code Signing section
  4. Add the $(SDKROOT)/ResourceRules.plist to the “Code Signing Resource Rules Path” in this section
  5. Clean the build (Build Menu/Clean)
  6. Rebuild your app and you should be good to go again
  1. No comments yet.
  1. No trackbacks yet.
*