我在自己flutter项目里引用了flutter_scankit: ^2.0.3,
执行 flutter build ios-framework,把生成的flutter_scankit.framework引入到iOS项目里,
编译报错:
dyld[483]: Library not loaded: @rpath/ScanKitFrameWork.framework/ScanKitFrameWork
Referenced from: <20407884-2838-3323-B78F-72D7A6D4B36B> /private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/flutter_scankit.framework/flutter_scankit
Reason: tried: '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/flutter_scankit.framework/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/Swap.framework/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file)
我在自己flutter项目里引用了flutter_scankit: ^2.0.3, 执行 flutter build ios-framework,把生成的flutter_scankit.framework引入到iOS项目里, 编译报错: dyld[483]: Library not loaded: @rpath/ScanKitFrameWork.framework/ScanKitFrameWork Referenced from: <20407884-2838-3323-B78F-72D7A6D4B36B> /private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/flutter_scankit.framework/flutter_scankit Reason: tried: '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/flutter_scankit.framework/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/Swap.framework/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file), '/private/var/containers/Bundle/Application/B796EF7B-A8CB-4445-91EA-EDBC8784FD1F/TestApp.app/Frameworks/ScanKitFrameWork.framework/ScanKitFrameWork' (no such file)
我使用的是Xcode版本是Version 15.2 (15C500b)
flutter版本是3.10.5
有人知道怎么解决吗