我正在尝试在iPhone 11上部署我的应用程序进行测试,但是我遇到了一个错误,告诉我它无法自动提供项目。
我目前正在使用MAUI,但是当我尝试将Xamarin应用程序部署到iOS时(在稳定的vs 2022中)时,也会发生同样的错误。
我已经购买了99/年的开发人员资格。
我已经在MacOS机器上安装了最新的Xcode
我的Visual Studio 2022预览连接到Mac,我所有的设备和IDE都连接到开发人员Apple帐户。
它将iPhone视为有效目标,但不想提供项目。
我错过了某个地方的一些关键配置吗?
I am trying to deploy my app on an iPhone 11 for testing, but I am getting an error telling me that it cannot automatically provision the project.
I am currently using MAUI but the same error happens when I try and deploy a Xamarin app to iOS (in stable VS 2022).
I have bought a developer membership for 99/year.
I have installed the latest XCode on the MacOS machine
My Visual Studio 2022 Preview is connected to the Mac, all my devices and IDE are connected to the developer Apple account.
It detects the iPhone as a valid target but does not want to provision the project.
Is there some crucial configuration that I missed somewhere?

发布评论
评论(2)
1英寸Visual Studio Press 工具 TAB然后选择 Apple帐户
任何先前的添加帐户
2-示例 添加按钮的 ,选择单个帐户
4-Will要求您填写API密钥字段。
要生成与App Store Connect API一起使用的API键,请登录 app Store Connect 。
选择用户并访问,然后选择“ API密钥”选项卡。
单击生成API键或添加(+)按钮。
输入键的名称。该名称仅供参考,不是密钥本身的一部分。
在访问中,选择键的角色。
点击生成。
然后继续进行热重新启动以自动提供项目。
1-in Visual Studio press tools tab then select Apple Accounts
2-Remove any previous added accounts
3-Press on Add button, select Individual Account
4-Will ask you to fill Api Key fields.
To generate an API key to use with the App Store Connect API, log in to App Store Connect .
Select Users and Access, and then select the API Keys tab.
Click Generate API Key or the Add (+) button.
Enter a name for the key. The name is for your reference only and is not part of the key itself.
Under Access, select the role for the key.
Click Generate.
Then continue with Hot Restart to automatically provision the project.
就像@gerald Versluis所说的那样,苹果方面有一个问题。
在解决此问题之前,您必须将Mac用作显示。
在vs goto/tools/options/xamarin/ios设置中,并禁用“远程模拟器到Windows”。
模拟器将在Mac上启动,但即使Hotreload也可以正常工作。
Like @Gerald Versluis said, there is a problem on the Apple side.
Until they fix this you have to use the mac as the display.
In VS goto /Tools/Options/Xamarin/iOS Settings and disable "remote simulator to Windows".
The simulator will be started on the Mac, but even hotreload is working.