刷新 Xcode 7 管理的团队配置文件中的设备?
Refresh devices in team provisioning profile managed by Xcode 7?
过去,点击首选项中的刷新 arrow/loop 按钮 -> 帐户会为您的所有新设备拉下新的配置文件。
现在它只下载您已经拥有的那些。但是如果你需要更新的那个是由Xcode管理的,那我就没办法给它添加设备了!
在会员中心添加UDID后,我遇到了同样的问题。
我不得不说我有一个 XCode managed iOS team development profile.
最终起作用的是从会员中心删除配置文件。
在 xcode 首选项中,删除相关应用程序的团队配置文件
转到您的目标,您会看到一个 "Fix Issue" 按钮。单击它,它将使用相关设备生成一个新的配置文件。
希望对您有所帮助。
我也找不到删除或刷新 Xcode 中的配置文件的方法。
我设法通过退出 Xcode、删除 Development provisioning profiles(标记为 "Active (Managed by Xcode)" 的那些 - 在 Apple Developer 站点上,然后重新打开 Xcode 并在应用程序目标的常规设置中选择团队。 Xcode 重新创建了配置文件(如在开发者网站上确认的那样)并且包含了设备。
花了很多时间试图解决 Xcode 7 上的相同问题,即刷新 Xcode 托管配置文件。
在会员中心添加 UDID 后,对我有用的是从 preferences -> account 中删除帐户并重新添加。它更新了所有配置文件。
我也遇到了这个问题。我正在使用 Xcode 7.2
。然后它按照以下步骤工作:
- 在会员中心添加您新的设备UDID
- 接受 Xcode -> 偏好...
- Select 帐户并按 'View Details...'
- 按 bottom-left 角的 'Download All' 按钮。将下载一组新的团队配置文件。
- 现在您可以从列表中删除旧的团队配置文件。 (右击 -> 移至废纸篓)
- 在 'Build Settings' 选项卡中更新配置文件
- 按 'General' 选项卡中的 'Fix Issue' 按钮
现在您可以 运行 您的新设备中的应用程序。
- 从站点中删除旧的团队配置文件。
- 删除所有本地配置文件(
Xcode -> Preferences -> Accounts -> Select account -> Select team -> View details -> Right click any profile -> Show in finder -> Cmd+A -> Cmd+Backspace
)。
- 尝试为设备构建。
您将看到修复按钮。
更新 Xcode 8
有了Xcode8,您就不需要在“会员中心”添加设备了,您可以跳过一些烦人的步骤。
您还需要做以下步骤:
- 打开“Xcode → 首选项...”(
,
)。
- Selectwindow左侧“Apple ID”列表中对应的“Apple ID”。然后 select window.
右下方列表中的相应“团队”
- 单击“查看详细信息...”,然后单击“下载所有配置文件”。
- 关闭“首选项”window,select 方案和受影响的设备并构建您的项目。 最终让Xcode自动注册设备
就我而言,上面列出的任何内容都对 Xcode 8 没有帮助。
以下是我尝试过的步骤,最终通过再次向我显示 注册设备 按钮来让 Xcode 解决问题:
- 已从 首选项 > 帐户
中删除 apple id
- 重新添加apple id。
- 重新启动Xcode
旁注:
就我而言,我认为问题是我的登录已过期(Xcode 在 首选项 > 帐户 中告诉我这个)。但即使点击 再次登录 也没有任何效果。我想也许我需要做的就是重新登录并重新启动 Xcode 以显示 Register Device(s) 按钮。
以下是 Xcode 8 和 9 对我有用的内容。
- 将您的设备添加到 developer.apple.com。
- 转到目标的“常规”选项卡并点击 "Xcode Managed Profile" 旁边的 (i),然后将弹出窗口中的配置文件图标拖动到桌面以获取配置文件的文件名。
- 转到 ~/Library/MobileDevice/Provisioning 配置文件并删除与您在 #2 中获得的文件名相同的配置文件。
- Xcode 应使用在 #1 中添加的设备为您的应用重新生成配置文件。
我在 developer.apple.com 上的帐户未显示任何 Xcode 托管配置文件,因此这是使其正常工作的唯一方法。
在 Apple 的控制台中添加您的新设备 ID
只需转到您的目标设置,然后select“常规”选项卡
取消选中自动管理签名
让Xcode抱怨然后重新启用自动管理签名
制作新存档时,配置文件中应该包含所有新设备
花了最后一个小时寻找解决方案
我拔掉了 iPhone 的插头,现在可以使用了。
问题:有时会更新开发者帐户中的设备,导致有时无法反映我们的自动管理签名甚至更新 xcode 帐户中的配置文件。
解决方案:找到配置文件文件夹并删除所有配置。 ~/Library/MobileDevice/Provisioning 个人资料
自动管理签名会创建新的。您的设备将在配置中更新。
我遇到了类似的问题并发现了以下内容 - 在您的根目录中添加一个名为 build.json 的文件(与 config.xml 相同级别),内容如下 - 将 developmentTeam 值替换为您的团队 ID如此处所示 https://developer.apple.com/account/#/membership/
{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "DP7KW42777",
"packageType": "development"
},
"release": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "DP7KW42777",
"packageType": "app-store"
}
}
}
我还发现通过在
下的 config.xml 中添加以下内容
<platform name="ios">
不再需要设置各种信息设置,例如隐藏状态栏
<config-file parent="NSBluetoothPeripheralUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires bluetooth access to function properly</string>
</config-file>
<config-file parent="NSCalendarsUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires calendar access to function properly</string>
</config-file>
<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires camera access to function properly</string>
</config-file>
<config-file parent="NSContactsUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires contacts access to function properly</string>
</config-file>
<config-file parent="NSLocationAlwaysAndWhenInUseUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} would like to check your location when app is active or in background</string>
</config-file>
<config-file parent="NSLocationAlwaysUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} would like to check your location when app is active or in background</string>
</config-file>
<config-file parent="NSLocationWhenInUseUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} would like to check your location when app is active or in background</string>
</config-file>
<config-file parent="NSMicrophoneUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires microphone access to function properly</string>
</config-file>
<config-file parent="NSMotionUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires motion detection access to function properly</string>
</config-file>
<config-file parent="NSPhotoLibraryUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires photo library access to function properly</string>
</config-file>
<config-file parent="NSRemindersUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} equires reminders access to function properly</string>
</config-file>
<config-file parent="UIStatusBarHidden" platform="ios" target="*-Info.plist">
<true/>
</config-file>
<config-file parent="UIViewControllerBasedStatusBarAppearance" platform="ios" target="*-Info.plist">
<false/>
</config-file>
最后,通过添加
<icon height="1024" src="resources/ios/icon/AppIcon.png" width="1024" />
到图标列表,我不再需要手动添加 1024 图标。
所以现在我所做的就是构建、存档和上传,而无需更改任何设置。
希望这有帮助。
最简单的方法:
使用终端删除 mobileprovision 文件
rm + 从xcode
拖拽文件路径
我刚刚从会员中心下载了配置文件,并在 XCode 中解决了问题。
我正在使用 OSX 10.15 和 XCode 11.3 测试版。
过去,点击首选项中的刷新 arrow/loop 按钮 -> 帐户会为您的所有新设备拉下新的配置文件。
现在它只下载您已经拥有的那些。但是如果你需要更新的那个是由Xcode管理的,那我就没办法给它添加设备了!
在会员中心添加UDID后,我遇到了同样的问题。 我不得不说我有一个 XCode managed iOS team development profile.
最终起作用的是从会员中心删除配置文件。
在 xcode 首选项中,删除相关应用程序的团队配置文件
转到您的目标,您会看到一个 "Fix Issue" 按钮。单击它,它将使用相关设备生成一个新的配置文件。
希望对您有所帮助。
我也找不到删除或刷新 Xcode 中的配置文件的方法。
我设法通过退出 Xcode、删除 Development provisioning profiles(标记为 "Active (Managed by Xcode)" 的那些 - 在 Apple Developer 站点上,然后重新打开 Xcode 并在应用程序目标的常规设置中选择团队。 Xcode 重新创建了配置文件(如在开发者网站上确认的那样)并且包含了设备。
花了很多时间试图解决 Xcode 7 上的相同问题,即刷新 Xcode 托管配置文件。
在会员中心添加 UDID 后,对我有用的是从 preferences -> account 中删除帐户并重新添加。它更新了所有配置文件。
我也遇到了这个问题。我正在使用 Xcode 7.2
。然后它按照以下步骤工作:
- 在会员中心添加您新的设备UDID
- 接受 Xcode -> 偏好...
- Select 帐户并按 'View Details...'
- 按 bottom-left 角的 'Download All' 按钮。将下载一组新的团队配置文件。
- 现在您可以从列表中删除旧的团队配置文件。 (右击 -> 移至废纸篓)
- 在 'Build Settings' 选项卡中更新配置文件
- 按 'General' 选项卡中的 'Fix Issue' 按钮
现在您可以 运行 您的新设备中的应用程序。
- 从站点中删除旧的团队配置文件。
- 删除所有本地配置文件(
Xcode -> Preferences -> Accounts -> Select account -> Select team -> View details -> Right click any profile -> Show in finder -> Cmd+A -> Cmd+Backspace
)。 - 尝试为设备构建。
您将看到修复按钮。
更新 Xcode 8
有了Xcode8,您就不需要在“会员中心”添加设备了,您可以跳过一些烦人的步骤。
您还需要做以下步骤:
- 打开“Xcode → 首选项...”(
,
)。 - Selectwindow左侧“Apple ID”列表中对应的“Apple ID”。然后 select window. 右下方列表中的相应“团队”
- 单击“查看详细信息...”,然后单击“下载所有配置文件”。
- 关闭“首选项”window,select 方案和受影响的设备并构建您的项目。 最终让Xcode自动注册设备
就我而言,上面列出的任何内容都对 Xcode 8 没有帮助。
以下是我尝试过的步骤,最终通过再次向我显示 注册设备 按钮来让 Xcode 解决问题:
- 已从 首选项 > 帐户 中删除 apple id
- 重新添加apple id。
- 重新启动Xcode
旁注: 就我而言,我认为问题是我的登录已过期(Xcode 在 首选项 > 帐户 中告诉我这个)。但即使点击 再次登录 也没有任何效果。我想也许我需要做的就是重新登录并重新启动 Xcode 以显示 Register Device(s) 按钮。
以下是 Xcode 8 和 9 对我有用的内容。
- 将您的设备添加到 developer.apple.com。
- 转到目标的“常规”选项卡并点击 "Xcode Managed Profile" 旁边的 (i),然后将弹出窗口中的配置文件图标拖动到桌面以获取配置文件的文件名。
- 转到 ~/Library/MobileDevice/Provisioning 配置文件并删除与您在 #2 中获得的文件名相同的配置文件。
- Xcode 应使用在 #1 中添加的设备为您的应用重新生成配置文件。
我在 developer.apple.com 上的帐户未显示任何 Xcode 托管配置文件,因此这是使其正常工作的唯一方法。
在 Apple 的控制台中添加您的新设备 ID
只需转到您的目标设置,然后select“常规”选项卡
取消选中自动管理签名
让Xcode抱怨然后重新启用自动管理签名
制作新存档时,配置文件中应该包含所有新设备
花了最后一个小时寻找解决方案
我拔掉了 iPhone 的插头,现在可以使用了。
问题:有时会更新开发者帐户中的设备,导致有时无法反映我们的自动管理签名甚至更新 xcode 帐户中的配置文件。
解决方案:找到配置文件文件夹并删除所有配置。 ~/Library/MobileDevice/Provisioning 个人资料
自动管理签名会创建新的。您的设备将在配置中更新。
我遇到了类似的问题并发现了以下内容 - 在您的根目录中添加一个名为 build.json 的文件(与 config.xml 相同级别),内容如下 - 将 developmentTeam 值替换为您的团队 ID如此处所示 https://developer.apple.com/account/#/membership/
{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "DP7KW42777",
"packageType": "development"
},
"release": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "DP7KW42777",
"packageType": "app-store"
}
}
}
我还发现通过在
下的 config.xml 中添加以下内容<platform name="ios">
不再需要设置各种信息设置,例如隐藏状态栏
<config-file parent="NSBluetoothPeripheralUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires bluetooth access to function properly</string>
</config-file>
<config-file parent="NSCalendarsUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires calendar access to function properly</string>
</config-file>
<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires camera access to function properly</string>
</config-file>
<config-file parent="NSContactsUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires contacts access to function properly</string>
</config-file>
<config-file parent="NSLocationAlwaysAndWhenInUseUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} would like to check your location when app is active or in background</string>
</config-file>
<config-file parent="NSLocationAlwaysUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} would like to check your location when app is active or in background</string>
</config-file>
<config-file parent="NSLocationWhenInUseUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} would like to check your location when app is active or in background</string>
</config-file>
<config-file parent="NSMicrophoneUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires microphone access to function properly</string>
</config-file>
<config-file parent="NSMotionUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires motion detection access to function properly</string>
</config-file>
<config-file parent="NSPhotoLibraryUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires photo library access to function properly</string>
</config-file>
<config-file parent="NSRemindersUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} equires reminders access to function properly</string>
</config-file>
<config-file parent="UIStatusBarHidden" platform="ios" target="*-Info.plist">
<true/>
</config-file>
<config-file parent="UIViewControllerBasedStatusBarAppearance" platform="ios" target="*-Info.plist">
<false/>
</config-file>
最后,通过添加
<icon height="1024" src="resources/ios/icon/AppIcon.png" width="1024" />
到图标列表,我不再需要手动添加 1024 图标。 所以现在我所做的就是构建、存档和上传,而无需更改任何设置。 希望这有帮助。
最简单的方法:
使用终端删除 mobileprovision 文件
rm + 从xcode
拖拽文件路径我刚刚从会员中心下载了配置文件,并在 XCode 中解决了问题。
我正在使用 OSX 10.15 和 XCode 11.3 测试版。