简体   繁体   English

无法在iOS 6.0.1设备上安装应用

[英]Can't install app on iOS 6.0.1 devices

I developing iphone app with xcode 4.5. 我用xcode 4.5开发iPhone应用程序。 I used TestFlight for ad hoc testing. 我使用TestFlight进行临时测试。 When upload build (.ipa) to TestFlight and get the installation link. 将内部版本(.ipa)上传到TestFlight并获取安装链接时。 i am able to install app on my iPad 5.0.1 using TestFlight installation link. 我可以使用TestFlight安装链接在iPad 5.0.1上安装应用程序。 But i tried to install app on iPhone 6.0.1 it gives me error message. 但是我尝试在iPhone 6.0.1上安装应用程序,这给了我错误消息。 "Won't install this app". “不会安装此应用”。

The problem is that XCode 4.5 doesn't support iOS 6.0.1. 问题是XCode 4.5不支持iOS 6.0.1。 And hence your .ipa file isn't install in device with iOS 6.0.1. 因此,您的.ipa文件未安装在装有iOS 6.0.1的设备中。 Solution to this is update your XCode to latest version which is 4.6. 解决方案是将XCode更新为最新版本4.6。 It'll solve the problem. 它将解决问题。

There is another solution. 还有另一种解决方案。

The problem 问题

The problem is the new OS does not contain proper info for old Xcode to load debug info, while this info can only be obtained by the latest Xcode. 问题是新操作系统不包含用于旧Xcode的正确信息以加载调试信息,而该信息只能由最新Xcode获取。

Solution

  1. Install the latest Xcode(currently is Xcode 4.6, you can get it from Mac AppStore). 安装最新的Xcode(当前为Xcode 4.6,可以从Mac AppStore中获取)。
  2. Connect your device while the new Xcode is open.(No matter what the order of open Xcode first or connect your device first) 在打开新的Xcode时连接设备(无论先打开Xcode的顺序如何,还是先连接设备)
  3. Press ⌘ + Shift + 2 to open Xcode organizer, click the device icon if the organizer appears not in device tab ⌘+ Shift + 2打开Xcode组织者,如果组织者不在设备选项卡中,则单击设备图标
  4. Wait under see your device with iOS 6.0.1(or even iOS 6.0, iOS 6.1.1) to become green 等待下看到带有iOS 6.0.1(甚至iOS 6.0,iOS 6.1.1)的设备变为绿色
  5. Now your new OS has enough debug information for old Xcode 现在您的新操作系统具有足够的调试信息以用于旧Xcode
  6. Connect this device to your old Xcode 4.5. 将此设备连接到旧的Xcode 4.5。 You should not be able to send app to device. 您应该无法将应用发送到设备。

Some disadvantages 一些缺点

  1. You system will have 2 Xcode, if your old Xcode is also installed from Mac AppStore, you need to download the new Xcode from Developer center. 您的系统将有2个Xcode,如果还从Mac AppStore安装了旧的Xcode,则需要从Developer Center下载新的Xcode。
  2. After you installed the new Xcode, you command line tools usually use the new Xcode as the default develop tools. 安装新的Xcode之后,命令行工具通常将新的Xcode用作默认开发工具。 Use xcode-select to switch to old Xcode's path. 使用xcode-select切换到旧Xcode的路径。

Please do check the udid id for that Device, or include the udid again and download the new profile and then archive with that profile. 请检查该设备的被审核用户ID,或再次包括被审核用户并下载新配置文件,然后使用该配置文件进行存档。 It just because of udid 只是因为被挖

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM