xcode “无法在设备上上传 *.app” iPhone 中的错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1526505/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:53:17  来源:igfitidea点击:

"Failed to upload *.app on Device " Error in iPhone

iphonexcode

提问by rkb

I am getting an error while uploading my app on device. It does installs it but not able to upload it.

在设备上上传我的应用程序时出现错误。它确实安装了它,但无法上传它。

Also I want to run the instrument tool on device but when I run it shows nothing.

我也想在设备上运行仪器工具,但是当我运行它时什么也没显示。

Anyone facing the same issues.

任何面临同样问题的人。

回答by Archie

I had this problem after changing around provisioning profiles and app ID's.

在更改配置文件和应用程序 ID 后,我遇到了这个问题。

What fixed it for me:

什么为我修好了:

  1. Quit XCode
  2. In Terminal.app, navigate to your project directory and execute rm -rf build/
  3. Restart XCode
  1. 退出 XCode
  2. 在 Terminal.app 中,导航到您的项目目录并执行 rm -rf build/
  3. 重启 XCode

回答by manicaesar

I also confirm, that I had that issue on Xcode 3.2.5 and iOS 4.2 GM Seed and after adding new provisioning profile.

我还确认,我在 Xcode 3.2.5 和 iOS 4.2 GM Seed 以及添加新的配置文件后遇到了这个问题。

You do not have to use terminal, you can select *.app from Products Group in 'Groups & Files' pane in Xcode. Then right-click on it, and select 'Reveal in finder'. Then manually delete the build catalogue. And restart Xcode.

您不必使用终端,您可以从 Xcode 的“组和文件”窗格中的产品组中选择 *.app。然后右键单击它,然后选择“在查找器中显示”。然后手动删除构建目录。并重新启动Xcode。

Worked for me.

对我来说有效。

回答by manicaesar

I was getting this issue on an iPhone running 3.0 software, but it was working fine on phones running 3.1. The app used to work on the 3.0 software until we added users to the provisioning for the app - this is the only thing I can think of that might have caused it.

我在运行 3.0 软件的 iPhone 上遇到了这个问题,但在运行 3.1 的手机上运行良好。该应用程序曾经在 3.0 软件上运行,直到我们将用户添加到该应用程序的配置中 - 这是我能想到的唯一可能导致它的原因。

If you're running 3.0 still, try upgrading to 3.1 and see if that fixes it.

如果您仍在运行 3.0,请尝试升级到 3.1,看看是否能解决问题。

回答by Shervin Emami

I had the same error message in iOS 4.1 but from a different cause: when trying to link to a universal (ARM & X86) static library that was over 10MB. If I link directly to the ARM version of the static library (for iPhones), then it works fine.

我在 iOS 4.1 中有相同的错误消息,但原因不同:尝试链接到超过 10MB 的通用(ARM 和 X86)静态库时。如果我直接链接到静态库的 ARM 版本(适用于 iPhone),则它可以正常工作。

回答by selfReflection

Sometimes manual delete of Build folder of your application fails to solve the problem "Failed to upload the .app on device"

有时手动删除您的应用程序的 Build 文件夹无法解决“无法在设备上上传 .app”的问题

Try WIndows->organizer->Provisioning profile(in left pane)->refresh it once....

尝试 WINdows->organizer->Provisioning profile(in left pane)->refresh it once....

This has solved my problem!

这解决了我的问题!