Min*_*wzy 8 xamarin.ios ios-provisioning
为什么当我尝试在真实设备而不是模拟器中运行应用程序时出现此错误
\n\nApplicationVerificationFailed: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.ttjwEf/extracted/DSP.IOS.app : 0xe8008016 (The executable was signed with invalid entitlements.)\nerror MT1006: Could not install the application \'/Users/macbookpro/Documents/gitProject/DSPMobileGit/DSP.Mobile/DSP.iOS/DSP.IOS/bin/iPhone/Debug/device-builds/iphone6.2-9.3.5/DSP.IOS.app\' on the device \'Mohamed\xe2\x80\x99s iPhone\': Your code signing/provisioning profiles are not correctly configured. Probably you have an entitlement not supported by your current provisioning profile, or your device is not part of the current provisioning profile. Please check the iOS Device Log for details (error: 0xe8008016).\n
Run Code Online (Sandbox Code Playgroud)\n\n这是我运行我的应用程序的步骤
\n\n首先,我在 Xcode 中使用相同的包名称创建项目,并让 Xcode 处理配置
\n\n当我尝试在 Visual Studio 中运行时它不起作用
\n\n其次,我使用 Wild id 创建手动配置,但它不起作用
\n\n每次设置签名身份和配置文件时,我都会记下一些内容,当我返回屏幕时,我发现它又变回无了
\n\n可能就是这个原因
\n\n\nToo*_*eve 10
使用 Visual Studio for Mac 2019
首先判断是否是权益问题。找到“部署到设备”选项卡,然后查看以“ApplicationVerificationFailed:无法验证...的代码签名”开头的完整消息
寻找:
...可执行文件使用无效的权利进行签名。
在这种情况下,请参阅/sf/answers/3013855911/。
以下答案适用于其他可能的情况:
...没有找到该设备的有效配置。
在较新版本的 Visual Studio for Mac + Xamarin iOS(或 Xamarin Forms,部署到 iOS)上:
成功后,您将看到(在“自动配置”单选按钮下方):
重要的:
如果无法让它看到您的手机,请搜索有关打开 XCode 并将您的手机添加为 XCode 已知设备的说明(XCode 菜单 Windows/设备和模拟器/设备选项卡)。也就是说,首先让它在 XCode 下工作可能会更容易,然后返回 VS,断开并重新连接到手机的电缆,再次尝试上面的说明。
使用 Visual Studio (Windows) 2022
就我个人而言,我总是首先使用 XCode 识别手机|平板电脑,然后将其连接到 Mac。请参阅上面的说明。
然后:
如果有效=>“自动配置成功完成。”
选修的:
TBD:不知道为什么当它连接到 PC 时我无法将其列为本地设备。
小智 2
我在 Xamarin.iOS 项目中遇到了同样的问题。我找到了一个解决方法。原因是 Xamarin.Swift4 包从 4.0.0.1 更新到 4.0.0.2。
在我降级回 4.0.0.1 后,该问题不再存在。
我在 github 创建了一个问题报告:https ://github.com/Flash3001/Xamarin.SwiftSupport/issues/25
归档时间: |
|
查看次数: |
18148 次 |
最近记录: |