【iOS】【Flutter】【Mark】Library not loaded: @rpath/libavcodec.framework/libavcodec

brief description

The flutter project I wrote on the M1 MacBook Pro was opened on the Intel MacBook Pro, and an error was reported. The content of the error report is as follows:

(lldb) dyld[27861]: Library not loaded: @rpath/libavcodec.framework/libavcodec
  Referenced from: /private/var/containers/Bundle/Application/DC76367F-1E7E-42AC-8AAA-1C705BE02EEB/Runner.app/Runner
  Reason: tried: '/usr/lib/swift/libavcodec.framework/libavcodec' (no such file), '/usr/lib/swift/libavcodec.framework/libavcodec' (no such file), 
 ......
* thread #1, stop reason = signal SIGABRT
    frame #0: 0x0000000102b007a0 dyld`__abort_with_payload + 8
dyld`__abort_with_payload:
->  0x102b007a0 <+8>:  b.lo   0x102b007c0               ; <+40>
    0x102b007a4 <+12>: pacibsp 
    0x102b007a8 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x102b007ac <+20>: mov    x29, sp
Target 0: (Runner) stopped.
Error launching application on iPhone.

Solution

The build under the flutter project can be deleted

Guess you like

Origin blog.csdn.net/u014220518/article/details/125463315