Search code examples
iosios5ios6provisioning

iOS application deletes itself once downloaded


I'm developing an application for a company for iOS > 5.0 using Xcode 4.6.1. To test application, i archived application using Save for Enterprise or Ad-hoc deployment. I've checked also Save for Enterprise Distribution and filled appropriate fields. So far, i'm able to create an myApp.ipa file and myApp.plist file. I've created an url to myApp.plist. Once, i clicked url, myApp starts to download correctly. My problem is that once download's finished, myApp deletes itself and i got no crash log,simply nothing. I googled it and got nothing either. The problem is that one of my client is able to download myApp and to use it. I thought the problem is related to provisioning profile,but both devices is registered the same provisioning profile. So, i'm clueless. What could be the problem ? How is it possible that myApp deletes itself ?

Thank you all.

EDIT : here is the console log.

May 10 12:02:15 IK installd[3728] : profile not valid: 0xe8008012

May 10 12:02:15 IK installd[3728] : 00403000 install_embedded_profile: Could not install embedded profile: -402620398

May 10 12:02:15 IK installd[3728] : entitlement 'keychain-access-groups' has value not permitted by a provisioning profile

May 10 12:02:15 IK installd[3728] : entitlement 'application-identifier' has value not permitted by a provisioning profile

May 10 12:02:15 IK SpringBoard[15] : Killing net.caretta.iAnahtar for termination assertion


Solution

  • This seems very similar to:

    Xcode 4.5 - can't install developer .ipa files via iTunes

    The main symptom I observed in the case I had like that problem was that the IPA would try to install, then eventually it would get downloaded - then straight away it would disappear.

    If the following line:

    installd[31] : profile not valid: 0xe8008012

    appears in the console log, then you may want to try re-issuing the profile from the iOS Provisioning portal (simply make a simple change, undo it, then submit - that should regenerate the profile), update the Xcode code signing identity to use the new profile, reboot the device, and then try again. Not guaranteed to fix the problem, but it might be worth trying.