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

旧城冷巷雨未停 提交于 2019-11-29 02:04:28
Moritz Roessler

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

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…

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!