XCode 6.3 Beta 显示 iOS 8.3b 设备“不合格”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28751557/
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-15 06:44:05  来源:igfitidea点击:

XCode 6.3 Beta shows iOS 8.3b device as "ineligible"

iosiphonexcodeswift

提问by Connor Hicks

I haven't used XCode since the first 6.x beta last summer. Today I installed the newest iOS beta on my iPhone 6 and the newest XCode beta from the developer portal. I created a new single-page swift application with an 8.3 target, and then tried to launch it on my device, but XCode shows it as ineligible in the build menu.

自去年夏天第一个 6.x 测试版以来,我就没有使用过 XCode。今天,我在 iPhone 6 上安装了最新的 iOS 测试版,并从开发者门户安装了最新的 XCode 测试版。我使用 8.3 目标创建了一个新的单页 swift 应用程序,然后尝试在我的设备上启动它,但 XCode 在构建菜单中将其显示为不合格。

ineligible device

不合格的设备

Any help on fixing this issue would be appreciated.

任何有关解决此问题的帮助将不胜感激。

采纳答案by matt

If you haven't done this since last summer, you probably need a complete new set of credentials. (This is because the entitlements for running a Swift app on a device changed.) Clear out everythingand start from the bottom up with a new developer identity. Then create the development profile. Finally, attach the device and make sure to tap Trust and wait for the symbols to be copied over. You will then probably need to detach the device and attach it again, but at that point if you attempt to build and run on the device it should work.

如果自去年夏天以来您还没有这样做过,您可能需要一套全新的凭据。(这是因为在设备上运行 Swift 应用程序的权利发生了变化。)清除所有内容并从下往上开始使用新的开发人员身份。然后创建开发配置文件。最后,连接设备并确保点击信任并等待符号被复制。然后您可能需要分离设备并再次连接它,但此时如果您尝试在设备上构建和运行它应该可以工作。

回答by Pavel Smejkal

In my case, selecting the device from Product --> Destination worked great.

就我而言,从 Product --> Destination 中选择设备效果很好。

I hope that helps!

我希望这有帮助!

回答by kalpeshdeo

The fix is: Go to Product > Destination, and even though it says your device is ineligible, it will still allow you to select it, then building to it will work.

解决方法是:转到“产品”>“目标”,即使它说您的设备不符合条件,它仍然允许您选择它,然后构建它就可以了。

回答by joat

You may need to login to the Apple Developer center and agree to the new terms of service. After that, do the following to update the provisioning profiles:

您可能需要登录 Apple 开发者中心并同意新的服务条款。之后,执行以下操作以更新配置文件:

  1. Open Xcode
  2. Open Preferences...
  3. Select the Accounts tab
  4. Select your Apple ID
  5. Select View Details...
  6. Hit the refresh button in the bottom left corner
  1. 打开 Xcode
  2. 打开首选项...
  3. 选择帐户选项卡
  4. 选择您的 Apple ID
  5. 选择查看详细信息...
  6. 点击左下角的刷新按钮

If you get an error about agreeing to the terms of service just wait a few minutes and try to refresh the provisioning profiles again.

如果您收到关于同意服务条款的错误,请等待几分钟,然后再次尝试刷新配置文件。

Edit:For those still having trouble with ineligible devices, here's something else to try:

编辑:对于那些仍然无法使用不合格设备的人,可以尝试以下其他方法:

  1. Open Xcode
  2. Open Window
  3. Select Devices
  4. Control-click your device on the left side of the window and select Show Provisioning Profiles...
  5. Use - to remove all profiles (Xcode will install the necessary profile on the device when you launch the app). I had a bunch of old/extra profiles on my device.
  6. Double-check all settings in the Code Signing section in the build settings for your project and targets. Unfortunately I can't be more specific here but use your best judgement.
  1. 打开 Xcode
  2. 打开窗户
  3. 选择设备
  4. 按住 Control 键单击窗口左侧的设备,然后选择显示配置文件...
  5. 使用 - 删除所有配置文件(当您启动应用程序时,Xcode 将在设备上安装必要的配置文件)。我的设备上有一堆旧的/额外的配置文件。
  6. 仔细检查项目和目标的构建设置中代码签名部分中的所有设置。不幸的是,我不能在这里更具体,但请使用您的最佳判断。

回答by Vaiden

According to the changelog, Apple has fixed this in XCode 6.3.1 If this issue still bugs you, you might wanna upgrade your environment.

根据更新日志,Apple 已经在 XCode 6.3.1 中修复了这个问题 如果这个问题仍然困扰着你,你可能想要升级你的环境。

回答by SHS

Edited:: 2015/Apr/27 Updated xcode version to 6.3.1 The problem was solved.

已编辑:: 2015/Apr/27 将xcode 版本更新为6.3.1 问题已解决。

May be the update is required.

可能需要更新。

回答by Wookie

Had this problem upon upgrading to the production version of Xcode 6.3. I tried all of the other solutions that were mentioned, and wasted hours trying various other things, but none of it worked. What didwork was the nuclear option:

升级到 Xcode 6.3 的生产版本时遇到了这个问题。我尝试了提到的所有其他解决方案,并浪费了时间尝试其他各种事情,但都没有奏效。什么的工作是核选择:

  • Uninstall Xcode

  • rm -rf "~/Library/MobileDevice/Provisioning Profiles/"

  • rm -rf "~/Library/Caches/com.apple.dt.Xcode/"

  • rm -rf "~/Library/Application Support/Xcode/"

  • rm -rf "~/Library/Developer/

  • Go revoke and delete your certificates and provisioning profiles in the iOS Developer Portal, then do the same in your Mac's key chain.

  • Install Xcode

  • Open Xcode, go to Preferences, add or select your iOS dev account, then refresh it to get new certificates and such (answer yes when prompted). Seems like you might also want to refresh it once again in some cases.

  • Update your project to point to those new credentials, where applicable

  • 卸载 Xcode

  • rm -rf "~/Library/MobileDevice/Provisioning Profiles/"

  • rm -rf "~/Library/Caches/com.apple.dt.Xcode/"

  • rm -rf "~/Library/Application Support/Xcode/"

  • rm -rf "~/库/开发者/

  • 在 iOS Developer Portal 中撤销和删除您的证书和配置文件,然后在 Mac 的钥匙串中执行相同操作。

  • 安装 Xcode

  • 打开 Xcode,转到首选项,添加或选择您的 iOS 开发帐户,然后刷新它以获取新证书等(在提示时回答是)。在某些情况下,您似乎还想再次刷新它。

  • 更新您的项目以指向这些新凭据(如果适用)