iOS release version crashes immediately after showing splash screen. Works fine debug mode.

LeoJHarrisLeoJHarris NZMember ✭✭✭
edited June 18 in Xamarin.Forms

Hi all,

Im having a major issue here that Ive been battling now for last few days and this was previously working as well. My release version on the app store is crashing directly after the splash screens show up. Debug version runs fine as does the adhoc version that I installed from hockeyapp - both work fine. Release version downloaded from store is not working fine.

The only thing that has changed since I was able to get release version to work was my provisioning profiles expired and the distribution certificate expired I've since created a new distribution certificate and distribution provisioning profile. I used the same .certSigningRequest that I used for the expired distribution certificate to renew that.

Im running Xcode 10.1 on my mac mini running 10.13.6 with Visual studio is 2019, I have a red squigly line on the solution saying 'xcode version 10.1 not compatable with this version of Visual Studio... Please install version 10.2' however I cant install 10.2 as my mac machine not compatable with xcode 10.2.

Below is the provision I use for building the release version that I submit to the store:

Visual studio setup for release then I do a build and see the IPA on the build server (mac machine)

below is iOS log report at the time of crash:

I'm not sure what left to check as this was definely working fine on previous release version..

I really need to get some help on this!

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    Have you test on real device on release mode ?

  • LeoJHarrisLeoJHarris NZMember ✭✭✭
    edited June 19

    Hi @ColeX I appreciate you reaching out.

    I have again checked and the following 3 configurations (opted for Automatic Provisioning rather then Manual Provisioning):

    In debug configuration the app works fine on a real device - configuration is Debug, Scheme is Automatic Provisioning (automatic signing completed successfully), the signing identity indicates 'iPhone Developer: ...', provisioning profile is Automatic.

    In App Store configuration (start without debugging) the app runs fine on my real device - configuration is App Store, Scheme is Automatic Provisioning (automatic signing completed successfully), the signing identity indicates Distribution (Automatic), provisioning profile is Automatic. Regarding App Store when I build and upload the IPA through Application Loader onto TestFlight and Apple Store then the app crashes immediatly after splash screen.

    In Ad-Hoc configuration (start without debugging) the app crashes on my real device immediately after Splash screen is shown - configuration is Ad-Hoc, Scheme is Automatic Provisioning (automatic signing completed successfully), the signing identity indicates Distribution (Automatic), provisioning profile is Automatic.

    App Store configuration is as below:

  • ColeXColeX Member, Xamarin Team Xamurai
    edited June 19

    Since it works fine in debug configuration , it should not be related with your code issue.

    Try to not select Automatic provisioning , switch to Manual provisioning and specify the exact signing identity and provisioning profile , try again.

  • LeoJHarrisLeoJHarris NZMember ✭✭✭
    edited June 20

    @ColeX thanks for getting back to me, just for clarity are you suggesting to use the iPhone Developer Signing Identity or the iPhone distribution signing identity? Its just that from your screenshot your referring the development.

    In any event below is my current configuration again, can you let me know the provisioning profile I should be using below with release configuration? Im assuming it is the store provisioning profile?

    With the above configuration using 'Store Provision Profile' I get following error while it is deploying using start without debugging, when I generate the IPA file from the build it still crashes from test flight submitted via application loader):

    This was the error report when I tried deploying the release with start without debugging:

    CopyingFile - Path: /Users/developer/Library/Caches/Xamarin/mtbs/builds/XeniaGuestAppii.iOS/5c31dda6f9c8e078cbbc581cfe220a7f/bin/iPhone/Release/XeniaGuestAppii.iOS.app/.monotouch-32/MaterialComponents.aotdata.armv7Deploy failed. The app 'XeniaGuestAppii.iOS' could not be deployed to the device 'Leonard’s iPad'. Error: error MT1006: Could not install the application '/Users/developer/Library/Caches/Xamarin/mtbs/builds/XeniaGuestAppii.iOS/5c31dda6f9c8e078cbbc581cfe220a7f/bin/iPhone/Release/XeniaGuestAppii.iOS.app' on the device 'Leonard’s iPad': Your code signing/provisioning profiles are not correctly configured. Probably you have an entitlement not supported by your current provisioning profile, or your device is not part of the current provisioning profile. Please check the iOS Device Log for details (error: 0xe8008016).. Please check the logs for more details.

    I do get an initial warning: warning HE1901: The application 'com.xeniasuite.XeniaGuestAppii' has been signed with a provisioning profile which does not include any devices. but as the provioning profile I am using is the store provisioning profile there wouldnt be any devices, so this shouldnt be an issue.

    Below is the log of the ipad when it fails:

    I checked Capabilities for the App ID and the only ones enabled are Fonts (this was added after I was having issues), Game Center (greyed out and checked), in app purchases (also greyed out and checked) and thats it. In Visual Studio I am not using a Custom Entitlements (this is empty in the ios Bundle Signing and I'm pretty sure I never had one set anyhow

    Alight this is interesting - i just run the app on my iPhone 6s from the apple store and it works fine (which is why it was passing the review/testing to get on the apple store) while my ipad is crashing right after the splash screen is shown. The iPhone is running software version 12.3.1, while my iPad running version 10.3.3. In my visual studio project the sdk version is set to default but from the drop drown there is only 12.1 so it would be using that, might that be an issue? I might need to lower that perhaps? Just thinking out loud. At least I have isolated the issue to my tablet running 10.3.3

  • LeoJHarrisLeoJHarris NZMember ✭✭✭
    edited June 20

    My deployment target is set to 9.0, but I dont see how that or the sdk version would be an issue if the app builds and deploys in debug configuration, this and the Sdk version im pretty sure have never changed.

    Im am seeing this issue though below, however as mentioned my mac mini version means I cannot update xcode:

  • ColeXColeX Member, Xamarin Team Xamurai

    In any event below is my current configuration again, can you let me know the provisioning profile I should be using below with release configuration? Im assuming it is the store provisioning profile?

    Yes , it should be distribution signing identity while in release configuration , it is because i don't have distribution profile on my mac ,so i have to select the developer..

    Error: error MT1006: Could not install the application

    When you wanna to test application to real device , you should choose ad-hoc not app-store provisioning profile . Ad-Hoc is used to test and app-store is only for publishing.

  • LeoJHarrisLeoJHarris NZMember ✭✭✭
    edited June 20

    When you wanna to test application to real device , you should choose ad-hoc not app-store provisioning profile . Ad-Hoc is used to test and app-store is only for publishing.

    For some reason I thought I had selected ad-hoc in the past to put a build on the apple store, but it was about 6 months ago i did that and with getting these issues above was just giving me confusion with the proper configuration for app store lol (my bad!), but I understand that :smile:

  • LeoJHarrisLeoJHarris NZMember ✭✭✭
    edited June 20

    Any ideas why this wouldnt be working on my iPad running 10.3.3 from the app store though, I wondered if it had to do with the latest version of xcode as Im pretty sure I wasnt having this issue before that, it was about 6 months I made a last app release, that was fine & no issue.

    Would there be some entitlement it might be wanting with latest xcode version specific to my ipad or something?

  • ColeXColeX Member, Xamarin Team Xamurai

    My suggestion : Use another mac (borrow from friend..)with the latest xcode to see if problem persists.

  • LeoJHarrisLeoJHarris NZMember ✭✭✭
    edited June 20

    @ColeX alright Ill try that when I can, but in the meantime I think raising the deployment target to 11.0 is a pretty good bet. I only know that its failing on iOS 10 but working on iOS 12 so it might be okay on iOS 11 as well but dunno.

    It seems that after going through the apple store there are issues on pre iOS 11 so perhaps there are limitations for apps on the store with certain versions (maybe xcode is affecting that as well?) but looking at the data regarding users using pre-iOS 11 its pretty small.

  • ColeXColeX Member, Xamarin Team Xamurai

    Yes, most of people are using iOS 11 and later , just try it .

Sign In or Register to comment.