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:
- Right click the Target you’re building in my case “Language Learning”, and click on “Get Info”
- Go to the build tab
- Find the Code Signing section
- Add the $(SDKROOT)/ResourceRules.plist to the “Code Signing Resource Rules Path” in this section
- Clean the build (Build Menu/Clean)
- Rebuild your app and you should be good to go again


