xamarin 添加Entitlement.plist后无法启动MAUI应用程序

nzkunb0c  于 2023-08-01  发布在  其他
关注(0)|答案(1)|浏览(135)

我们正在将我们的Xamarin表单项目迁移到带有Entitlements.plist的MAUI,这在我们的表单项目中使用。切换到MAUI后,Out应用程序未以Entitlements.plist启动。但是,如果从项目和文件夹位置中删除了Entitlements.plist,则应用程序将在设备中启动。当我们尝试使用plist启动应用程序时,会返回以下错误。
xcrun simctl launch --stdout=/dev/ttys 001--stderr=/dev/ttys 002--terminate-running-process E89153 ED-B3 A1 - 46 A1-BEA 8-C59213 F35 BB 2 com.sample.application -monodevelop-port 10000处理命令时遇到错误(domain=NSPOSIXErrorDomain,code=3):“com.sample.application”的应用程序启动未返回有效的pid或启动错误。无此类过程错误HE 0042:无法在设备“Device Model”上启动应用程序“com.sample.application”:simctl返回退出代码3
我们在程序中使用的plist如下所示。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>aps-environment</key>
    <string>development</string>
    <key>keychain-access-groups</key>
    <array>
        <string>$(AppIdentifierPrefix)com.microsoft.adalcache</string>
    </array>
</dict>
</plist>

字符串

0x6upsns

0x6upsns1#

向应用添加新功能导致Apple Developer门户上的发布配置文件无效。
转到您的Apple开发者帐户,转到“证书,标识符和配置文件”,并检查您正在使用的配置文件是否仍然有效。
如果没有,点击配置文件,查看信息,保存,它应该再次激活。

相关问题