Xamarin:无法安装应用程序AmdevicesecureinstallapplicationBundle返回:0xE8008015
我正在尝试将我的应用部署在设备上进行测试。
在调试模式下,我可以成功部署它,并且可以很好地工作。
但是,当我试图在发布模式下部署时,它给了我这个错误。
error MT1006: Could not install the application
'/Users/development/Library/Caches/Xamarin/mtbs/builds/AppName.iOS/longstring/bin/iPhone/Release/AppName.iOS.app'
on the device 'My iPhone': AMDeviceSecureInstallApplicationBundle returned: 0xe8008015.
有人面对这个问题吗?如何在发布模式下将应用程序部署在测试设备上?
我已经尝试重新创建证书和配置资料。
我正在使用Visual Studio 2019。
I am trying to deploy my app on the device to test.
In Debug mode I can deploy it successfully and it is working perfectly.
But when I am trying to deploy in Release mode it is giving me this error.
error MT1006: Could not install the application
'/Users/development/Library/Caches/Xamarin/mtbs/builds/AppName.iOS/longstring/bin/iPhone/Release/AppName.iOS.app'
on the device 'My iPhone': AMDeviceSecureInstallApplicationBundle returned: 0xe8008015.
Have anyone faced this issue? how I can deploy the App on my testing device in release mode?
I have already tried recreating the certificate and provisioning profile.
I am using visual studio 2019.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
对我来说,这是什么修复的是删除我在权利中的部分。不确定是否重要,但是我们的项目是.net6(net6-ios),以前是Xamarin。
之前:
之后:
What fixed it for me is to remove the section I had in my Entitlements.plist. Not sure if it matters but our project is .NET6(net6-ios), formerly Xamarin.
Before:
After:
检查您的权利PLIST并启用 /禁用推送通知。
然后尝试调试
Check Your Entitlement plist and Enable / Disable push notification.
Then try to debug
我认为我应该发布这个问题的答案。
我发现
签名身份和配置资料
遇到的错误。我正在使用发行证书
在发布模式下部署,但应使用Ad-Hoc
。I thought I should post the answer to this question.
I found the mistake I was doing with
Signing Identity and Provisioning Profile
. I was using aDistribution Certificate
to deploy in release mode but should be usingAd-Hoc
.我通过观看在线教程在应用程序中实现了推送通知。在该教程中,该家伙在“ Visual Studio 2022”中查看了“权威”中的推送通知的复选框。此文件也可以在其他版本的Visual Studio中获得。但是设计和UI可能会有所不同。
因此,我以及其他配置也对其进行了检查。
因此,我无法创建Adhoc IPA。当我试图调试它时,我一直在获得与Apple帐户中的个人资料配置相关的解决方案。我尝试再次创建个人资料配置,但没有解决我的问题。我花了几天的时间来解决此问题,但最后,我通过禁用Attrements.plist中的推送通知的复选框来做到这一点。
这样,我能够创建一个Adhoc IPA,但是当您要在AppStore上提交构建时,可能会导致一些问题。
因此,为了解决此问题,如果您正在处理开发(调试),则打开授权。Plist文件代码,并检查您的APS-Envrientment是否应将“开发”设置为“开发”,并将APS-Envirnment设置为“生产”,如果您试图尝试使用发布模式创建Adhoc。
调试模式
发布模式
I had implemented push notifications in my app by watching online tutorial. In that tutorial, the guy checked the checkbox of Push Notifications in the Entitlements.plist in Visual Studio 2022. This file is also available in other versions of Visual Studio as well. But Design and UI might differ.
So i checked it as well along with other configurations.
Due to this, i wasn't able to create an Adhoc IPA. While i was trying to debug it, i was keep getting the solutions related to profile provisioning in the apple account. I tried creating the profile provisioning again but it didn't fix my problem. It took me couple of days to fix this but finally i did it by disabling the checkbox of Push Notifications in the Entitlements.plist.
With this, i was able to create an Adhoc IPA but it might cause some issues when you are going to submit your build on AppStore.
So to resolve this issue, if you are working with development(debugging), open Entitlements.plist file code and check that your aps-environment should be set to "development" and set aps-environment to "production" if you are trying to create Adhoc with release mode.
Debug mode
Release mode
我遇到了同样的问题,因为我们使用的是Apple推送通知,并且在文件 wittlements.plist 您可能会发现变量 aps环境将设置为 production 或在文件中 info.plist 您可能会在我的情况下发现
正在使用开发
我
证书使用 iOS/苹果开发证书使用开发供应配置文件您需要将变量设置为 - > 开发
使用 iOS/Apple分销证书签名应用使用分发配置配置文件您需要将变量设置为 - > Production
顺便说一句,如果您使用EG文本编辑器打开信息,则可以使用该信息。
它在下面:
I had same problem because we are using Apple Push Notifications and in file Entitlements.plist you might find variable APS Environment set to production or in file Info.plist you might find
In my case I was using Development certificate so I needed to change value from production into development
So when:
Signing app with iOS/Apple Development Certificate using Development Provisioning Profile you need to set variable to -> development
Signing app with iOS/Apple Distribution Certificate using Distribution Provisioning Profile you need to set variable to -> production
Btw in Provisioning profiles you have that information if you open them with e.g. text editor.
It is there under:
对我来说,它正在设定info.plist中的部署目标
For me it was setting the deployment target in the info.plist