Home > Blockchain >  Why Error MT5210: Linking fails for debug ARM64 Builds
Why Error MT5210: Linking fails for debug ARM64 Builds

Time:10-06

I'm seeing errors in my logs like

MT5209 ignoring file libmono-native-unified.a file is universal (armv7,armv7s,arm64) but does not contain the x86_64 architecture Native linking

However I'm trying to build the project for iOS in debug mode, so it should be using arm64 as the architecture, so I'm not sure why it's trying to use x86_64 at all. This implies it's building for a simulator instead of the selected device.

Fails to run debug on physical iOS device

CodePudding user response:

As you can see my debug iPhone configuration is set to ARM64 (correct)

Debug iPhone

And only the simulator is set to x86

Debug iPhone - simulator

SOLUTION - If I swap the build configuration from 'Debug' to 'Debug|iPhone' it compiles just fine, e.g.

FROM

enter image description here

TO

enter image description here

So why 'Debug' and platform 'iPhone' doesn't work and 'Debug|iPhone' does I'm not sure.

CodePudding user response:

iOS 10 was the last version of iOS to run 32-bit apps. The current requirement for iOS is to build apps as 64-bit. As of iOS 11, all 32-bit apps installed on device will not launch. You could check the iOS version of the simulator. For the later versions of the iPhone Simulator, you should select either x86_64 in the Supported architectures dropdown.

  • Related