Create provisioning profile on XCode

2019-09-17 16:22发布

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?

2条回答
乱世女痞
2楼-- · 2019-09-17 16:31

Open your project in Xcode and Go to Project Setting -> 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

查看更多
我想做一个坏孩纸
3楼-- · 2019-09-17 16:41

From XCode v.8.x, provisionning 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 provisionning profile should appear in both VS Mac & Windows (if your Windows VS is connected to your MAC).

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

查看更多
登录 后发表回答