![](/img/trans.png)
[英]Automatically refresh IOS devices in a team provisioning profile by Xcode
[英]Refresh devices in team provisioning profile managed by Xcode 7?
过去,点击首选项中的刷新箭头/循环按钮 -> 帐户会下拉一个包含所有新设备的新配置文件。
现在它只下载你已经拥有的那些。 但是,如果您需要更新的设备是由 Xcode 管理的,我就找不到向其中添加设备的方法!
这是在 Xcode 8 和 9 上对我有用的方法。
我在 developer.apple.com 上的帐户没有显示任何 Xcode 管理的配置文件,所以这是让它工作的唯一方法。
在会员中心添加 UDID 后,我遇到了同样的问题。 我不得不说我有一个XCode 管理的iOS 团队开发配置文件。
最终有效的是从会员中心删除配置文件。
在 xcode 首选项中,删除相关应用的团队配置文件
转到您的目标,您会看到“修复问题”按钮。 单击它,它将使用相关设备生成新的配置文件。
希望能帮助到你。
我也有这个问题。 我正在使用Xcode 7.2
。 然后它按照以下步骤工作:
现在您可以在新设备上运行该应用程序。
花了很多时间尝试修复 Xcode 7 上的相同问题,即刷新 Xcode 管理的配置文件。
在会员中心添加 UDID 后,对我有用的只是从首选项中删除帐户-> 帐户并重新添加它。 它更新了所有配置文件。
问题:有时在开发者帐户中更新设备,导致有时无法反映我们的自动管理签名甚至在 xcode 帐户中更新配置文件。
解决方案:找到provisioning profile文件夹并删除所有provisioning。 ~/Library/MobileDevice/Provisioning Profiles
自动管理签名将创建新的签名。 您的设备将在配置中更新。
使用 Xcode 8,您不再需要在“会员中心”中添加设备,您可以跳过一些烦人的步骤。
您仍然需要做的是以下步骤:
,
)。我有一个类似的问题,发现以下问题 - 在您的根目录中添加一个名为 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 图标。 所以现在我所做的就是构建、存档和上传,而无需更改任何设置。 希望这可以帮助。
Xcode -> Preferences -> Accounts -> Select account -> Select team -> View details -> Right click any profile -> Show in finder -> Cmd+A -> Cmd+Backspace
)。您将看到修复按钮。
就我而言,上面列出的任何内容都对 Xcode 8 没有帮助。
以下是我尝试过的步骤,最终通过再次向我显示“注册设备”按钮来让 Xcode 解决问题:
旁注:就我而言,我认为问题在于我的登录已过期(Xcode 在Preferences > Accounts 中告诉我这一点)。 但即使在再次点击登录后也没有任何效果。 我想也许我所要做的就是重新登录并重新启动 Xcode 以显示“注册设备”按钮。
在苹果的控制台中添加您的新设备 ID
只需转到您的目标设置并选择常规选项卡
取消选中自动管理签名
让 Xcode 抱怨然后重新启用自动管理签名
创建新存档时,它应该在配置文件中包含所有新设备
花了最后一个小时寻找解决方案
我拔掉了我的 iPhone,现在它可以工作了。
我刚刚从会员中心下载了配置文件,并在 XCode 中解决了问题。
我使用的是 OSX 10.15 和 XCode 11.3 测试版。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.