简体   繁体   中英

“App is crashing on startup” in Apple App store, but it works fine in Debug/Adhock?

I have a blank app, which is having none code. I've generated corresponding provisioning profiles for it and attached them to it. I've set the compiler options - generate 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 on iPad 3 / iOS 9.1 and iPhone 4 / iOS 7.1.2

When I try in debug and adhock - the app runs like charm, anyway my builds is rejected in Apple Application Store by the reason :

"2.1 Details

We were unable to review your app, as it crashed on launch.

Next Steps

Please revise your app and test it on a device to ensure it will launch without crashing."

  • What could be the possible reason of causing this issue ?

It turns out that the hint @BinaryGuy have made is solution of the problem. Seems like UI_USER_INTERFACE_IDIOM is kept and linked into the compiled IPA if the developer use some of the classes containing a link toward it.

The classes which causing the issues is primarely related to the previously accessible hardware ID's on the Apple products, now these classes seems like is deprecated and causing the Application Store rejection without obvious reason.

Please if You are using some of the follow Delphi units :

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

iOSapi.UIKit.pas ( UIUserInterfaceIdiomPhone references),

FMX.Platform.iOS.pas ( UIUserInterfaceIdiomPad references),

double check if they could be avoided.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM