App immediately crashes in Testflight but works in simulator

So, I have recently updated everything to work with the newest SDKs. I’m using latest Corona daily build (3559) and have the latest XCode (11.2.1) and build for IOS 13.2 with no problems and upload with Transporter with no issues.  My app works and tests just fine in the simulator, but when I attempt to test it via Testflight, it immediately crashes on the first black screen.  Any ideas??  Below is my build.settings info in case it helps, but I’m stuck!

-- build.settings for project: CollegeBBALLCoach2 settings = { orientation = { default = "portrait", }, plugins = { ["plugin.pasteboard"] = { publisherId = "com.coronalabs", }, ["plugin.animation"] = { publisherId = "com.coronalabs" }, ["plugin.zip"] = { publisherId = "com.coronalabs" }, -- Base ['plugin.appodeal.base'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.AmazonAds'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.GoogleAdMob'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.TwitterMoPub'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' }, -- Banner --['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.MillenialMedia'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Yandex'] = { publisherId = 'com.coronalabs' }, -- Interstitial ['plugin.appodeal.AdColony'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Chartboost'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.IronSource'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Mobvista'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.MillenialMedia'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Ogury'] = { publisherId = 'com.coronalabs' }, -- Rewarded Video -- ['plugin.appodeal.AdColony'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Chartboost'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.IronSource'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Mobvista'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Unity'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Vungle'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Tapjoy'] = { publisherId = 'com.coronalabs' }, -- includes IAP Badger as a plug in ["plugin.iap\_badger"] = { -- required publisherId = "uk.co.happymongoose", }, --Google in app billing v3 ["plugin.google.iap.v3"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, --Amazon IAP ["plugin.amazon.iap"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android-kindle"]=true } }, }, iphone = { xcassets = "Images.xcassets", plist= { UILaunchStoryboardName = "LaunchScreen", MinimumOSVersion = "8.0", NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, UIStatusBarHidden=true, ITSAppUsesNonExemptEncryption = false, NSBluetoothAlwaysUsageDescription = "This app would like to access bluetooth.", NSLocationAlwaysUsageDescription = "Ads code requires location data to show more relevant ads.", }, }, android = { versionCode = "1221", applicationChildElements = { [[\<meta-data android:name="com.google.android.gms.ads.APPLICATION\_ID" android:value="XXXXHIDDENXXXXXXXXXXXXXX"/\> -- replace with your app id. See: https://goo.gl/fQ2neu]], }, plugins = { --["plugin.admob"] = --{ -- publisherId = "com.coronalabs" --}, }, usesPermissions = { "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_COARSE\_LOCATION", "com.android.vending.BILLING", "android.permission.GET\_ACCOUNTS", "android.permission.ACCESS\_FINE\_LOCATION", }, }, }

I’ve been reading about numerous issues with 3559 and the latest XCode that targets iOS SDK 13.2.  What are people doing to address this?  I feel completely stuck here!

So, I tried building it again and running it in the XCode simulator.  The app crashes immediately here when I attempt to run it.  Here is what is showing up in the XCode log:

I don’t know what these mean!

Dec 10 09:30:27 dzolnier-mbpro College BBALL Coach 2 Basketball Sim[13434]: assertion failed: 19B88 17B102: libxpc.dylib + 83135 [2C8335BC-019B-37C6-B8C6-92A04E475054]: 0x7d

Dec 10 09:30:29 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:29 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:29 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.CallKit.CallDirectory): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:29 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.CallKit.CallDirectory): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:29 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.CallKit.CallDirectoryMaintenance): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:29 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.CallKit.CallDirectoryMaintenance): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:29 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.DocumentManagerCore.Downloads): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.DocumentManagerCore.Downloads): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.FileProvider.ArchiveService): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.FileProvider.ArchiveService): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.FontServices.FontProviderLoader): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.FontServices.FontProviderLoader): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.FontServices.GSFontServices): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.FontServices.GSFontServices): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.FontServices.UserFontManager): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.FontServices.UserFontManager): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.MTLCompilerService): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.MTLCompilerService): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.MediaPlayer.RemotePlayerService): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.MediaPlayer.RemotePlayerService): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.Safari.History): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.Safari.History): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.SafariFoundation.AutoFillHelper): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.SafariFoundation.AutoFillHelper): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.SafariFoundation.CredentialProviderExtensionHelper): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.SafariFoundation.CredentialProviderExtensionHelper): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.SafariServices.ContentBlockerLoader): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.WebKit.Networking): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.WebKit.Networking): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.avkit.SharedPreferences): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.avkit.SharedPreferences): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.backboard.display.archive): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.backboard.display.archive): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.ctcategories.service): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.ctcategories.service): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.intents.intents-helper): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.intents.intents-helper): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.xpc.launchd.domain.pid.College BBALL Coach 2 Basketball Sim.13434): com.apple.photos.ImageConversionService (lint): XPC Service Info.plist is missing XPCService dictionary

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.xpc.launchd.domain.pid.College BBALL Coach 2 Basketball Sim.13434): com.apple.photos.VideoConversionService (lint): XPC Service Info.plist is missing XPCService dictionary

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.textkit.nsattributedstringagent): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.textkit.nsattributedstringagent): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnableTransactions

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnablePressuredExit

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.xpc.launchd.domain.pid.College BBALL Coach 2 Basketball Sim.13434): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaConversionService.framework/XPCServices/com.apple.photos.VideoConversionService.xpc, error = 107: Malformed bundle

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (com.apple.xpc.launchd.domain.pid.College BBALL Coach 2 Basketball Sim.13434): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaConversionService.framework/XPCServices/com.apple.photos.ImageConversionService.xpc, error = 107: Malformed bundle

Dec 10 09:30:30 dzolnier-mbpro com.apple.CoreSimulator.SimDevice.80D93F1F-25CC-4198-9707-26777AA7833D[12900] (UIKitApplication:com.hotmail.zolnier.CollegeBBALLCoach2[f2ff][rb-legacy][13434]): Service exited due to SIGABRT

So, everything works fine if you build using an older version of Corona, i.e. there’s absolutely no chance you have any errors in your own code?

It compiles and runs just fine on android.  Just tested it on two android devices and it’s fine.

not sure this will be any help, but while you are waiting for a corona staff-expert to maybe chime in, you could remark out each of the plugins (one at a time) … compile and maybe narrow down which one might be the culprit.  It seems from the post I have seen (not really read completely) Appodeal seems to be a common culprit.  Maybe remark that code out first, recompile and run it thru test flight. If no problem at least you/corona staff will know where problem most likely is.

Well, since I updated to the newest XCode 11.2.1, which targets iOS SDK 13.2, the older versions of Corona aren’t compatible any more I believe…

Yes, but Android isn’t a case sensitive system whereas iOS is. If you have a file somewhere that is called “image.PNG” and you’ve used the name “image.png” or “Image.png”, then it’ll crash on iOS, but not on Android or simulator (at least not on Windows simulator).

I don’t recall changing any image or sprite names.  This was just a minor update.  Wouldn’t this show up in the XCode simulator log if it was an issue?

So, you may be on to something. When I comment out all but the base Appodeal plugin, it runs in the simulator.  When I re-add the other plugins, it crashes.  Now, what’s going on with Appodeal???

There was an issue with Yandex (and some other ad providers) at some point. Maybe that’s still the case.

In any case, I don’t think it benefits you all that much to have so many ad providers there. You could try commenting out the less common ad providers and see if that fixes it.

Hmm… That’s not a bad idea, but I’m not sure which to use and which to not use.  I’ve been just using the recommended default list from the limited documentation that we have available to us…  Any recommendations on which ad providers are better to use?

You are using admob but missing the entry for the app key. Although those errors in the simulator are not related this will not run on an actual device until you add in the plist under iOS:

 GADApplicationIdentifier = "ca-app-pub-xxx~xxxx",

Looks like that might have done it!  So, how in the world did my previous versions work without that entry?  Is that new?

Just as an FYI, Android is a case sensitive OS like iOS is. Windows and macOS is not (unless you’ve setup a case sensitive file system on your Mac. )

Ad plugins don’t run in the simulator, so they are always a good place to look.