![](/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.