xcode Xamarin 无法将 iOS 应用程序部署到 iOS 设备

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41471022/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:42:13  来源:igfitidea点击:

Xamarin fails to deploy iOS app to iOS Device

iosxcodexamarindeploymentvisual-studio-2015

提问by Raja Ranganathan

I am trying to deploy my Xamarin iOS app to iPhone. But it fails to deploy into iPhone devices where as it works fine in Simulators. I verified that Bundle Identifier and Provisioning Profiles are matching. Also I deployed another test app into iPhone devices using XCode using the same provisioning profiles. It is getting deployed successfully. Also approved the Developer as trusted in iPhone.

我正在尝试将我的 Xamarin iOS 应用程序部署到 iPhone。但它无法部署到 iPhone 设备中,因为它在模拟器中运行良好。我验证了 Bundle Identifier 和 Provisioning Profiles 是匹配的。我还使用 XCode 使用相同的配置文件将另一个测试应用程序部署到 iPhone 设备中。它正在成功部署。还批准了开发者在 iPhone 中的信任。

The Exception I see Visual Studio as below

我看到 Visual Studio 的异常如下

error MT1006: Could not install the application '/Users/VarunRaja/Library/Caches/Xamarin/mtbs/builds/WK.TAA.Mfa.OTPAuthenticator.iOS/116dd0bfdd565dd44e1837c2280a6d94/bin/iPhoneSimulator/Debug/WK.TAA.Mfa.OTPAuthenticator.iOS.app' on the device 'Raja's iPhone': AMDeviceSecureInstallApplicationBundle returned: 0xe8000067 (kAMDAPIInternalError).

错误 MT1006:无法安装应用程序 '/Users/VarunRaja/Library/Caches/Xamarin/mtbs/builds/WK.TAA.Mfa.OTPAuthenticator.iOS/116dd0bfdd565dd44e1837c2280a6d94/bin/DebugAutKimator.TAA.Mfa.OTPAuthenticator.设备“Raja 的 iPhone”上的 iOS.app':AMDeviceSecureInstallApplicationBundle 返回:0xe8000067 (kAMDAPIInternalError)。

I see this is coming from my Mac Agent. Visual Studio says the App is terminated.

我看到这是来自我的 Mac 代理。Visual Studio 表示应用程序已终止。

回答by Luca Ziegler

Go to the iOS properties => iOS Build and set "Linker Behavior" to "Link Framework SDKs Only" and "Supported Architectures" to "ARMv7 + ARM64"

转到 iOS 属性 => iOS Build 并将“Linker Behavior”设置为“Link Framework SDKs Only”并将“Supported Architectures”设置为“ARMv7 + ARM64”