json-framework doesn't work with iPhone SDK 3.0


json-framework doesn't work with iPhone SDK 3.0



I can't seem to get my app to compile when using JSON-framework http://code.google.com/p/json-framework/ with iPhone SDK 3.0.

My app compiles fine for the simulator, but when I go to compile for my device I get a 'codesign error' code 1. I've followed all of the installation instructions correctly, and when I remove the 'Additional SDK' reference and 'Other Linker Flags: -Obj-C -ljson' it compiles just fine...but obviously I then can't use JSON in my app.

Any ideas?


Truly modal UIAlertView in iPhone?

1:

MVC and the communication between them. What did i miss?
You may want to just switch to the code version and not link in the static lib.. Accessing GPS on Blackberry using Javascript and sending lat/long values to a server via url It should compile and job fine on 3.0.. What is something you wish you had known sooner about the iPhone SDK?
How do I center a UIImageView within a full-screen UIScrollView?SSLHandshakeException unknown_ca apns java

2:

NSMutableArray containsObject method not detecting object
On my own project, I too ran into this problem. Adding unique objects to Core Data I was not able to build my app for iPhone OS 2.x using the iPhone 3.0 SDK. . The fix was to set the following at the project level (Get Info):.
  • BaseSDK to iPhone Device 3.0
  • iPhone Deployment Tarreceive to iPhone OS 2.x
  • Code Signing Resource Rules Path to the same 2.x plist (e.g. /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/ResourceRules.plist)
The last bit allows a distrialthough ion (app store) build to code sign correctly... Otherwise you'll encounter an error "object file format invalid or unsuitable" since the code signer by default will use the same resource rules as the BaseSDK (i.e. 3.0), which is unsuitable for a 2.x app.. Also, be sure to clear any of the above settings at the tarreceive level (again, via Get Info).. Phew..

3:

Codesign error means you did not have a valid provisioning profile for the device you are endeavor to compile to, using the current built settings.. Can you build and deploy sample apps to your phone?.

4:

I started using the lovely json-framejob for the iPhone although then suddenly found this if I compiled for anything greater than 2.1 for a device, this it would pop up with: Codesign error: “object file format invalid or unsuitable” It took me a long time to figure out what was going on, although thanks to a blog post, the fix is this: On the project settings, on the build tab, search for “Code Signing Resource Rules Path” and set “$(SDKROOT)/ResourceRules.plist” as its value. I’m not sure how it works as it looks like this is the path it already has, although hey, it seems to work!. this solves the codesign error i was receive ting, although now I cant compile on 3.0 for any another reason. i'm going to try to link to the code rather than the library..

5:

Sounds like an issue you would want to discuss with the developers, see the support group..

6:

It seems like the code signing isn't extending to the framework. Have you tried linking the framejob differently?.

7:

And for French persons, here is a tutorial too here too (en Français). But for your problem I think it's not around JSON although more with your key developer..


94 out of 100 based on 59 user ratings 654 reviews

*