IOS application works in Debug / Release / Adhoc, but not when downloading from the App Store

I recently updated an application that was previously published on iOS 7.

The application works great in every case, except when it is downloaded from the App Store. Even when it is published in TestFlight and installed from there.

The block of code where it does not work is at the point where it retrieves the file from the remote HTTP server.

I tried to sniff the network by connecting it to WiFi via my Mac and launching the packet sniffer, but it doesn’t even make an HTTP GET request.

Obviously, it is very difficult to debug, because it must go through the storage process.

Is there a way to take the binary package that I would upload to the repository and put it back on the device for debugging?

+4
source share
1 answer

Start by comparing the build settings for Release and AppStore. There may be a difference.

Another source of errors may be that you have something on your device (for example, c NSUserSettings) that does not exist on devices on which the application storage assembly is deployed.

The third option I can think of is #ifsomewhere in your code, for example

#if RELEASE || DEBUG
SuperImportantCallToMakeItWork();
#endif

You must have the same testing conditions for the release and assembly of the app store. Reinstall the same device, if necessary.

. ( ).

+4

Source: https://habr.com/ru/post/1523438/


All Articles