“无法下载应用程序” < APPNAME>在这个时候不能安装“ [英] "Unable to download application. <Appname> could not be installed at this time"

查看:216
本文介绍了“无法下载应用程序” < APPNAME>在这个时候不能安装“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在几乎死了我一直在尝试约2-3周来解决这个问题,但仍然没有结果。希望有人能够帮助我:



我正在使用Titanium Studio编写iOS应用程序。直到Mac OS X 10.6.8与Xcode 4.2一切都很好。我完全能够在Xcode中构建应用程序,并将其部署到我们的企业内部。现在我已经升级到OS X 10.8.2与Xcode 4.5和我们去...
应用程序仍然可以构建和运行在iOS模拟器,但如果我现在尝试在某些设备上获得该应用程序,我收到一条消息无法下载应用程序.-Appname-此时无法安装。这可能是通过OTA分发和通过iTunes与USB电缆发生。



我已经搜索了几乎整个互联网,但我发现所有没有工作。
但是,如果我实际尝试通过Xcode部署应用程序,它可以工作。



它与这些配置文件和证书有关系吗?我已经试图撤销他们等等,但没有任何帮助。我也安装了OS X全新的,所以我有一个干净的钥匙串。相同的结果。



真的非常感谢任何帮助。谢谢!

解决方案

最后我找到一个解决方案,当我尝试手动签名应用程序时,控制台发出一个错误消息,帮助我再次修复它。



当我升级到Mountain Lion,不得不将xCode更新为4.5.2



也许它有助于在几天搜索互联网后找不到解决方案的人。


  1. 解压缩Ipa
    解压缩Application.ipa


  2. 删除_CodeSignature
    rm -rPayload / Application.app / _CodeSignaturePayload / Application.app / CodeResources2> / dev / null |真的


  3. 如果没有正确的配置文件,请将其替换为
    cp ProvisioningProfile.mobileprovision有效载荷/ Application.app / embedded.mobileprovision


  4. 手动注销应用程序:
    对象文件格式无法识别,无效或不适用



    修复它:



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


  5. 卸载应用程序
    / usr / bin / codesign -f -siPhone发行:公司名称资源规则Payload / Application.app / ResourceRules.plistPayload / Application.app


  6. b $ b zip -qrApplication.resigned.ipa有效载荷


感谢


  1. 这个问题如何签名一个手动的应用程序,

  2. 让我错误的控制台

  3. 这篇文章帮助我修正错误







更新
它似乎codeigning的位置已经改变了。新路径将是

  export CODESIGN_ALLOCATE =/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform /开发人员/ usr / bin / codesign_allocate

这个答案


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 Titanium Studio. Until Mac OS X 10.6.8 with Xcode 4.2 everything worked just fine. I was perfectly able to build apps in Xcode und deploy them In-House in our Enterprise. Now I've upgraded to OS X 10.8.2 with Xcode 4.5 and there we go... Apps can still be built and are runnable on the iOS Simulator, but if I try now to get the app on some devices, I get a message "Unable to download application. -Appname- could not be installed at this time". This happens either through OTA distribution and through iTunes with an USB Cable.

I've searched almost the entire internet, but all I've found didn't work at all. But if I actually try to deploy the application through Xcode it works though.

Does it have something to do with those Profiles and certificates? I've already tried to revoke them and so on, but nothing helped. I also installed OS X completely new, so that I have a clean keychain. Same result.

Would really really appreciate any kind of help. Thanks!

解决方案

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

这篇关于“无法下载应用程序” < APPNAME>在这个时候不能安装“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆