Odd JSON error with iPhone 4
I'm having a strange issue that only seems to affect iPhone 4. My app has been in the store and working fine for a while now. When Apple released iOS 4, I started getting errors so I fixed those and pushed the updated. What happened after that was very strange.
I'm using the p json framework to access some web services in my app. This worked fine on my old iphone (3G) and in the simulator for every version of the OS. But when the update was approved and I downloaded it on my iPhone 4, the service calls seemed to return null values, although there weren't really. This only happened on my iPhone 4. Even the iPad worked fine.
To fix it, all I did was recompile the app and use my iPhone 4 as a dev device. Note that before I recompiled the app, I ran the app on my iPhone 4 as a dev device and that's how I saw the error. I actually had to recompile the app by making a minor change, like adding white space, then re-installing it on the iPhone 4. Then it magically worked. This is great for me, but not for anyone else with an iPhone 4.
It may be a case of just downloading the newest p json framework from google code, but mine isn't that old. Anyone else have anything like this?
|