简体   繁体   中英

Create provisioning profile on Xcode

I'm trying to debug an app (Xamarin.Forms) on my iPhone. I already have Visual Studio on my Windows PC, on which I'm writing the app, and Visual Studio and Xcode on my Mac. I registered the iPhone on my developer account too.

However, it seems like I also need a provisioning profile. But the walkthroughs I've seen have screen unlike the current Xcode. When I click on Preferences - accounts, I see my account, but there's nowhere to add a provisioning profile.

(Does the iPhone need to be signed in with the same Apple ID as the one on the Mac, the one for which I have a developer account?)

How am I supposed to add that?

From Xcode 8.x, provisioning profiles are managed automatically by Xcode… So you don't see the full list. I presume you can only see a "Download All Profiles" button (under Preferences/Accounts menu). Click on it, then In Visual Studio iOS project's properties, your provisioning profile should appear in both VS Mac & Windows (if your Windows VS is connected to your MAC).

Connect to your Mac from Windows as mentioned here: Connecting to your Mac -> doc screenshots may be old...

Open your project in Xcode and Go to Select Project file -> Select Target -> Select Generate tap

Under Sigin category -> Check the Automatic manage signing

  • It will list down the list of configured developer account.

  • Choose your account

  • Everything else done by Xcode on behalf of you.

  • Xcode will create a provisioning profile in your developer account
    with the Bundle identifier, which you mentioned in Identity tap Bundle identifier

Update

In Xcode 11.*

Automatic signing option is available in Project -> Select Target -> Signing & Capabilities section.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM