“Unable to download application. could not be installed at this time”

后端 未结 2 1232
名媛妹妹
名媛妹妹 2020-12-16 02:59

I\'m almost dead now. I\'ve been trying for about 2-3 weeks to fix that problem, but still no result. Hope anyone is able to help me:

I\'m writing iOS Apps with Tita

相关标签:
2条回答
  • 2020-12-16 03:42

    I had the same “Unable to download application. 'Appname' could not be installed at this time” message, and spent several weeks checking and renewing the certificates, rebuilding, re-doing the OTA distribution, etcetera. It turned out that I simply hadn't added the .mobileprovision files to the project. Just in case this helps anyone…

    0 讨论(0)
  • 2020-12-16 03:43

    Finally i found a solution, when i tried to sign the App manually, the console threw an Error message that helped me to fix it again.

    The Problem started when i upgraded to Mountain Lion and had to update xCode to 4.5.2

    Maybe it helps others who still couldn't find a solution after several days of searching the internet

    1. Unzip the Ipa unzip Application.ipa

    2. delete _CodeSignature rm -r "Payload/Application.app/_CodeSignature" "Payload/Application.app/CodeResources" 2> /dev/null | true

    3. if there isn't the right provisioning profile, replace it cp "ProvisioningProfile.mobileprovision" "Payload/Application.app/embedded.mobileprovision"

    4. The problem for me was this error when i tried to resign the app manually: "object file format unrecognized, invalid, or unsuitable"

      fix it :

      export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/usr/bin/codesign_allocate"

    5. resign the app /usr/bin/codesign -f -s "iPhone Distribution: Company Name" --resource-rules "Payload/Application.app/ResourceRules.plist" "Payload/Application.app"

    6. Zip it zip -qr "Application.resigned.ipa" Payload

    Thanks to

    1. This Question on how to sign an app manually,
    2. the console which got me the error
    3. This Post which helped me to fix the error
    4. Apple which makes our lives too hard

    Update It seems the location for codesigning has changed. The new path would be

    export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate"  
    

    As taken from this answer

    0 讨论(0)
提交回复
热议问题