"The application crashes on launch" in the Apple App store, but works fine in Debug / Adhock?

I have an empty application that does not have code. I created the appropriate training profiles and linked them to it. I set the compiler options - generated a universal binary.

I have Mac OS X 10.11.1 (El Capitan), Xcode 7.1, IOS SDK 9.1, Delphi 10 Seattle. I am testing iPad 3 / iOS 9.1 and iPhone 4 / iOS 7.1.2

When I try to debug and adhock the application works like a charm, in any case my builds are rejected in the Apple Application Store for the reason:

"2.1 Details

We were unable to view your application because it crashed on startup.

Next steps

Please review your application and test it on your device so that it does not start without failures.

  • What is the possible cause of this problem?
+4
source share
1 answer

It turns out that the @BinaryGuy hint is a solution to the problem. It seems that UI_USER_INTERFACE_IDIOM is stored and bound to a compiled IPA if the developer uses some classes that contain a link to it.

The classes that cause the problems are indeed related to the previously available hardware identifier in Apple products, now these classes seem obsolete and cause the Store app to crash for no apparent reason.

Please if you use some of the following Delphi elements:

Links FMX.Helpers.iOS.pas ( TUIDevice / UIUserInterfaceIdiomPad ),

iOSapi.UIKit.pas (UIUserInterfaceIdiomPhone),

FMX.Platform.iOS.pas (UIUserInterfaceIdiomPad),

, .

0

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


All Articles