Possible Duplicate:
ASIHTTPRequest begins but never ends
I’ve just had my first iOS app approved in the app store which I was very pleased about, only to be very disappointed to find it’s not working as expected when installed from the app store. The app uses ASIHTTPRequest to call a REST web service over HTTP/HTTPS and return data via JSON. I’ve never had any issues with this while testing the app on the simulator/iPhone/iPod Touch/iPad – data is returned fine and if there is a network issue then the request times out gracefully. However in the version downloaded from the app store, the user is able to login and perform a few basic requests but once they request anything further, or attempt to download a file, it just sits waiting and never times out. It’s as if the request is not even sent because my server shows no record of the HTTP request (using WireShark).
Has anybody experienced similar differences/problems with their app in the app store vs running the app from a locally installed version?
I realised I hadn’t tested my app in ‘Release’ mode, only ‘Debug’ mode. Once run in ‘Release’ mode I reproduced the problems in the app store version. I then found the problem was an issue with ASIHTTPRequest in Release builds – see following links :
ASIHTTPRequest fails in production builds
ASIHTTPRequest begins but never ends
Once I set the compiler flags on the 2 files everything worked fine.
Jonathan