【发布时间】:2021-09-22 15:05:49
【问题描述】:
当我想在我的设备中部署 Xamarin.Forms iOS 应用程序时出现此错误:
Deploy Error: Could not install the application 'C:\Users\{myuser}\AppData\Local\Temp\Xamarin\HotRestart\Signing\{MyApp}.iOS.app\out\{MyApp}.iOS.ipa' on the device {My iPhone}. Details: ApplicationVerificationFailed({10 digits number}) - Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.OzsrZN/extracted/Payload/{MyApp}.iOS.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)
2>Deploy failed. The app '{MyApp}.iOS.app' could not be deployed to the device '{My iPhone}'. Please check the logs for more details.
我在 Windows 10 Pro 笔记本电脑上使用 Visual Studio Professional 2019 版本 16.11.3。一个月前,我在部署应用程序时没有遇到任何问题。我的公司(开发人员帐户)和我的(个人帐户)证书已过期,因此我创建了一个新证书(开发和分发)并将它们安装在我用来与 Visual Studio 配对的 macbook 中。然后我创建了配置文件(开发和分发)。我认为我在 macbook 中使用 Xcode 安装了配置文件。
在 iOS 项目属性 > iOS Bundle Signing > Bundle Signing > Scheme: Automatic Provisioning 被选中。我选择了我唯一拥有的团队(其中包含我的公司名称)。在自定义权利中,我有 Entitlements.plist 文件。
由于我得到的错误是关于配置文件的,我认为配置文件有问题。如何在 macbook 中检查 Apple 帐户中的所有内容是否正确?
编辑以获取更多信息:
我在 Apple 帐户中有 5 个配置文件 > 证书、标识符和配置文件 > 配置文件:
- 我的名字我的应用开发 2021-2022(类型:开发)
- My Name 通配符开发 2021-2022(类型:开发)
- My Company 我的应用分发 2021-2022(类型:临时)
- VS:com.mycompanyname.myapp 开发(类型:开发)
- VS:通配符开发(类型:开发)
我意识到我有 2 个配置文件不是我创建的,并且以“VS:”开头。这似乎是 Visual Studio 使用的。
在 Visual Studio 中,当我将捆绑签名方案从自动更改为手动,然后再次更改为自动然后选择团队时,Visual Studio 会下载配置文件。 Xamarin 输出窗口:
Resolving certificate...
Fetching valid and locally installed signing identities...
Syncing certificates for "MY COMPANY NAME" team...
Saving Apple Development certificates...
Syncing App IDs for "MY COMPANY NAME" team...
Your application is using entitlements not supported by wildcard App IDs...
* com.apple.developer.networking.wifi-info
Making sure that connected devices are registered in "MY COMPANY NAME" team...
Trying to find App IDs matching iOS platform and com.mycompanyname.myapp...
Syncing devices for "MY COMPANY NAME" team...
Processing ios devices...
Syncing provisioning profiles for "MY COMPANY NAME" team...
Saving iOS profiles...
Fetching additional data about profile's certificates and devices for VS: com.mycompanyname.myapp Development...
Downloading the list of devices and certificates for VS: com.mycompanyname.myapp Development...
Running update request for VS: com.mycompanyname.myapp Development...
Downloading provisioning profile: VS: com.mycompanyname.myapp Development...
Saving provisioning profile: VS: com.mycompanyname.myapp Development...
此个人资料是否有效?
配置文件是使用我的个人帐户创建的,我应该使用开发者计划帐户创建它们吗?
【问题讨论】:
标签: xamarin.forms xamarin.ios provisioning-profile