ios 将 mobileprovision 文件添加到 Xcode

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

Add mobileprovision file to Xcode

iosxcode

提问by Phil

I know this is simple, but I've read through all the questions and there doesn't seem to be a simple answer to this.

我知道这很简单,但我已经通读了所有问题,似乎没有一个简单的答案。

I've created an appID. I've created a mobileprovision file, downloaded it and double clicked it and that all seems fine.

我已经创建了一个 appID。我创建了一个 mobileprovision 文件,下载并双击它,一切看起来都很好。

How do I get this profile though to show up in XCode? and where would it show up?

我如何让这个配置文件显示在 XCode 中?它会出现在哪里?

using latest version of iOS and XCode.

使用最新版本的 iOS 和 XCode。



It's appearing, evidently it just takes time to appear.

它出现了,显然只是需要时间才能出现。

采纳答案by cynicaljoy

Open Organizer in Xcode (Window -> Organizer), go to the Devices tab and select Provisioning Profiles in the left drawer. Then use the Refresh button on the bottom right.

在 Xcode 中打开 Organizer(窗口 -> Organizer),转到 Devices 选项卡并在左侧抽屉中选择 Provisioning Profiles。然后使用右下角的刷新按钮。

Update 2018

2018 年更新

From @mikeLspohn comment: Go to Window > Devices then right-click on your device and select Show Provisioning Profiles ... from there you can click on +/- to add or remove profiles -

来自@mikeLspohn 评论:转到“窗口”>“设备”,然后右键单击您的设备并选择“显示配置文件...”,您可以从那里单击 +/- 添加或删除配置文件 -

回答by SwiftArchitect

Two steps:

两个步骤:

  1. First drag it onto iTunes. Dropping a .mobileProvision onto iTunes will install it in ~/Library/MobileDevice/Provisioning Profileswhere it is supposed to go.

  2. Second double-click on .mobileProvision to add it to the Xcode store.

  1. 首先将其拖到 iTunes 上。将 .mobileProvision 放到 iTunes 上会将其安装在~/Library/MobileDevice/Provisioning Profiles它应该去的地方。

  2. 第二次双击 .mobileProvision 将其添加到 Xcode 商店。

It doesn't hurt to relaunch Xcode after that.

之后重新启动 Xcode 并没有什么坏处。

回答by Mike Weller

You can always just drag the file onto the Xcode dock icon. This will add it to Xcode's store. When your target has the correct bundle ID and you have the private key, you should be able to select the appropriate profile and signing identity in the Code Signing build settings.

您始终可以将文件拖到 Xcode 停靠栏图标上。这会将它添加到 Xcode 的商店。当您的目标具有正确的包 ID 并且您拥有私钥时,您应该能够在代码签名构建设置中选择适当的配置文件和签名身份。

回答by JaredH

Go to http://developer.apple.comin Safari on your device and navigate to the SDK/downloads section. From that page, download the .mobileconfigfile and when prompted, Install. This will allow you to install beta builds when you go to Settings -> General -> Software Update.

转到http://developer.apple.com设备上的 Safari 并导航到 SDK/下载部分。从该页面下载.mobileconfig文件,并在出现提示时安装。这将允许您在转到设置 -> 常规 -> 软件更新时安装测试版。