Error in iOS: MetalPerformanceShaders?

RicardoSRicardoS ESMember ✭✭✭

Ok, this one's new.

So we were having calls about an iOS app made in Forms, told us that the app crash on execution.
So we deployed debug mode (on emulator) and nothing happened.
Then, after switching to release, get this error message on the application output window:

dyld: Library not loaded: /System/Library/Frameworks/MetalPerformanceShaders.framework/MetalPerformanceShaders
Referenced from: /Users/macbookpro/Library/Developer/CoreSimulator/Devices/C2A4014F-494C-4BD6-83D8-C2CE082341DF/data/Containers/Bundle/Application/7D3339E7-71C9-4E5D-9831-20B884E24211/Conductores.iOS.app/Conductores.iOS
Reason: no suitable image found. Did find:
/System/Library/Frameworks/MetalPerformanceShaders.framework/MetalPerformanceShaders: mach-o, but not built for iOS simulator

But google-searching gave us nothing, so now we're asking here: what is going on? Is this our fault?

We need your help, please.

Thank you kindly and regards.

Best Answer

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    Try to add --mono:static in Additional mtouch arguments in iOS build.

  • RicardoSRicardoS ESMember ✭✭✭

    @ColeX said:
    Try to add --mono:static in Additional mtouch arguments in iOS build.

    where exactly?

  • ColeXColeX Member, Xamarin Team Xamurai

    @RicardoS said:

    @ColeX said:
    Try to add --mono:static in Additional mtouch arguments in iOS build.

    where exactly?

  • RicardoSRicardoS ESMember ✭✭✭

    @ColeX said:

    @RicardoS said:

    @ColeX said:
    Try to add --mono:static in Additional mtouch arguments in iOS build.

    where exactly?

    Roger that

  • RicardoSRicardoS ESMember ✭✭✭

    @ColeX said:
    Try to add --mono:static in Additional mtouch arguments in iOS build.

    Nope, same issue.

  • ColeXColeX Member, Xamarin Team Xamurai

    Which is the Linker Behavior you choose in release mode?

  • RicardoSRicardoS ESMember ✭✭✭

    @ColeX said:
    Which is the Linker Behavior you choose in release mode?

    Don't link. Is that OK?

  • RicardoSRicardoS ESMember ✭✭✭

    @ColeX said:
    Try to switch it to Link Framework SDKs Only.

    Trying it right now!

  • RicardoSRicardoS ESMember ✭✭✭
    edited July 12

    Thank you, @ColeX . Your solution worked.

    I know it's a bit off topic, but your picture is adorable :smile:

  • ColeXColeX Member, Xamarin Team Xamurai

    @RicardoS said:
    Thank you, @ColeX . Your solution worked.

    I know it's a bit of topic, but your picture is adorable :smile:

    B)

Sign In or Register to comment.