ios 刷新由 Xcode 7 管理的团队配置文件中的设备?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32729193/
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
Refresh devices in team provisioning profile managed by Xcode 7?
提问by Will Larche
It used to be that hitting the refresh arrow/loop button in preferences -> account would pull down a new provisioning profile with all ur new devices.
过去,点击首选项中的刷新箭头/循环按钮 -> 帐户会下拉一个包含所有新设备的新配置文件。
Now it just downloads the ones you already have. But if the one you need updated is managed by Xcode, theres's no way I can find to add a device to it!
现在它只下载你已经拥有的那些。但是,如果您需要更新的那个是由 Xcode 管理的,那么我就找不到向它添加设备的方法了!
采纳答案by Youval Vaknin
After adding the UDID in the member center I had the same issue. I have to say that I have a XCode managediOS team development profile.
在会员中心添加 UDID 后,我遇到了同样的问题。我不得不说我有一个XCode 管理的iOS 团队开发配置文件。
eventually what's worked is deleting the provisioning profile from the member center.
最终有效的是从会员中心删除配置文件。
in xcode preferences, delete the team provisioning profile for the relevant app
在 xcode 首选项中,删除相关应用的团队配置文件
go to your target, you'll see a "Fix Issue" button. click it, it will generate a new provisioning profile with the relevant devices.
转到您的目标,您会看到“修复问题”按钮。单击它,它将为相关设备生成一个新的配置文件。
Hope it helps.
希望能帮助到你。
回答by yood
Here's what worked for me on Xcode 8 & 9.
这是在 Xcode 8 和 9 上对我有用的方法。
- Add your device to developer.apple.com.
- Go to your target's General tab and tap the (i) next to "Xcode Managed Profile", then drag the profile file icon in that popover to your desktop to get the filename of the provisioning profile.
- Go to ~/Library/MobileDevice/Provisioning Profiles and delete the provisioning profile with the same filename that you got in #2.
- Xcode should regenerate the profile for your app with the device added in #1.
- 将您的设备添加到 developer.apple.com。
- 转到目标的“常规”选项卡,然后点击“Xcode Managed Profile”旁边的 (i),然后将该弹出窗口中的配置文件图标拖动到桌面以获取配置文件的文件名。
- 转到 ~/Library/MobileDevice/Provisioning Profiles 并删除与您在 #2 中获得的文件名相同的配置文件。
- Xcode 应该使用在 #1 中添加的设备为您的应用程序重新生成配置文件。
My account on developer.apple.com was not showing any Xcode managed profiles so this was the only way to make it work.
我在 developer.apple.com 上的帐户没有显示任何 Xcode 管理的配置文件,所以这是让它工作的唯一方法。
回答by Musa almatri
回答by Anusha Kottiyal
I also had this problem. I am using Xcode 7.2
. Then its worked with following steps:
我也有这个问题。我正在使用Xcode 7.2
. 然后它按照以下步骤工作:
- Add you new device UDID in the Member Center
- Take Xcode -> Preference...
- Select account and press 'View Details...'
- Press 'Download All' button in bottom-left corner. New set of Team Provisioning Profiles will be downloaded.
- Now you can delete the old Team Provisioning Profiles from the list. (Right click -> Move to Trash)
- Update Provisioning Profile in 'Build Settings' Tab
- Press 'Fix Issue' button in 'General' Tab
- 在会员中心添加您的新设备 UDID
- 以 Xcode -> 首选项...
- 选择帐户并按“查看详细信息...”
- 按左下角的“全部下载”按钮。将下载一组新的团队供应配置文件。
- 现在您可以从列表中删除旧的团队供应配置文件。(右键单击 -> 移至废纸篓)
- 在“构建设置”选项卡中更新配置文件
- 按“常规”选项卡中的“修复问题”按钮
Now you can run the app in your new device.
现在您可以在新设备上运行该应用程序。
回答by Aaqib Ansari
Spent a lot of time trying to fix the same issue on Xcode 7 i.e. refreshing the Xcode managed provisioning profiles.
花了很多时间尝试修复 Xcode 7 上的相同问题,即刷新 Xcode 管理的配置文件。
After adding the UDID in the member center, what worked for me was just removing the account from preferences -> accountand adding it back again. It updated all the provisioning profiles.
在会员中心添加 UDID 后,对我有用的只是从首选项中删除帐户-> 帐户并重新添加它。它更新了所有配置文件。
回答by Ravi Kumar
Problem: Some time update devices in developer account, causes sometime not able reflect on our automatic management signing even update provisioning profile in xcode account.
问题:有时在开发者帐户中更新设备,导致有时无法反映我们的自动管理签名甚至在 xcode 帐户中更新配置文件。
Solution: find provisioning profile folder and delete all provisioning. ~/Library/MobileDevice/Provisioning Profiles
解决方案:找到provisioning profile文件夹并删除所有provisioning。~/Library/MobileDevice/Provisioning Profiles
Automatic management signing will create new one. your devices will update in provisioning.
自动管理签名将创建新的签名。您的设备将在配置中更新。
回答by Rafael Bugajewski
Update for Xcode 8
Xcode 8 更新
With Xcode 8 you don't need to add the device in the “Member Center” anymore and you can skip some annoying steps.
使用 Xcode 8,您不再需要在“会员中心”中添加设备,您可以跳过一些烦人的步骤。
What you still have to do are the following steps:
您仍然需要做的是以下步骤:
- Open “Xcode → Preferences…” (
?,
). - Select the corresponding “Apple ID” from the “Apple IDs” list in the left side of the window. Then select the corresponding “Team” from the list in the bottom right side of the window.
- Click on “View Details…”, then click on “Download All Profiles”.
- Close the “Preferences” window, select the scheme & affected devices and build your project. Eventually let Xcode automatically register the device.
- 打开“Xcode → Preferences...” (
?,
)。 - 从窗口左侧的“Apple ID”列表中选择相应的“Apple ID”。然后从窗口右下方的列表中选择相应的“团队”。
- 单击“查看详细信息...”,然后单击“下载所有配置文件”。
- 关闭“首选项”窗口,选择方案和受影响的设备并构建您的项目。最终让Xcode自动注册设备。
回答by Chris Pointon
I also couldn't find a way to delete or refresh the provisioning profile in Xcode.
我也找不到删除或刷新 Xcode 中的配置文件的方法。
I managed to pull the provisioning profile with the new devices by quitting Xcode, deleting the Development provisioning profiles- the ones marked "Active (Managed by Xcode)" - on the Apple Developer site, then reopening Xcode and choosing the team in General settings for the app target. Xcode recreated the profiles (as confirmed on the developer site) and the device was included.
我设法通过退出 Xcode,删除开发配置文件(标记为“活动(由 Xcode 管理)”的开发配置文件)在 Apple 开发人员站点上使用新设备拉取配置文件,然后重新打开 Xcode 并在常规设置中选择团队应用程序目标。Xcode 重新创建了配置文件(已在开发人员网站上确认)并包含该设备。
回答by dovk
I had a similiar problem and found the following - add a file called build.json in your root (same level as config.xml) with the following contents - replace the developmentTeam value with your Team Id as seen here https://developer.apple.com/account/#/membership/
我有一个类似的问题,发现以下问题 - 在您的根目录中添加一个名为 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"
}
}
}
I also found that by adding the following in config.xml under
我还发现通过在config.xml下添加以下内容
<platform name="ios">
there was no need anymore to set various Info settings, for example hiding the status bar
不再需要设置各种信息设置,例如隐藏状态栏
<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>
and finally, by adding
最后,通过添加
<icon height="1024" src="resources/ios/icon/AppIcon.png" width="1024" />
to the icons list, I no longer needed to manually add the 1024 icon. So now all I do is build, archive and upload without having to change any settings. Hope this helps.
到图标列表,我不再需要手动添加 1024 图标。所以现在我所做的就是构建、存档和上传,而无需更改任何设置。希望这可以帮助。
回答by AGDM
I just downloaded the profile from Member Center and hit fix issue in XCode.
我刚刚从会员中心下载了配置文件,并在 XCode 中解决了问题。
I'm on OSX 10.15 and XCode 11.3 beta.
我使用的是 OSX 10.15 和 XCode 11.3 测试版。