Sample Xamarin App Crashes on iPhone Simulator

心已入冬 提交于 2019-12-06 03:24:12

Program specified by service does not contain any valid architectures for this system.

In a IPA build, there is no x86_64 option as there are no x86-based iOS devices, only ARM-based.

What you could do is build for simulator/x86_64 and drag/drop the resulting .app to the simulator (or install via xcrun simctl install..., which is what everyone uses (Appium, Xamarin, ...) for controlling the simulator).

The .app is generated in the bin/iPhoneSimulator directory, example below:

├── bin
│   └── iPhoneSimulator
│       └── Debug
│           ├── device-builds
│           │   ├── iphone11.4-12.0
│           │   │   ├── ios_XXXX.app
│           │   └── iphone11.4-12.1
│           │       ├── ios_XXXX.app

Note: Building via Xcode 10.1 / iOS 12.1 / Xamarin.iOS 12.2.?.? will produce an .app that produces an .plist error when installed via drag/drop, but not when installed via simctl. This does not occur on earlier Xamarin.iOS 12.x versions and "assume" it is a Xamarin bug as the plist is slightly malformed when compared to an Xcode build (simctl does not seem to care, but the simulator GUI does...)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!