arcticfox1919 / flutter-scankit

Flutter QR code scanning
MIT License
158 stars 58 forks source link

dyld[483]: Library not loaded: @rpath/ScanKitFrameWork.framework/ScanKitFrameWork #84

Open wangchaohao123 opened 8 months ago

wangchaohao123 commented 8 months ago

我在自己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

有人知道怎么解决吗

wangchaohao123 commented 8 months ago

我从华为开发平台下载了ScanKitFrameWork 放在项目里,好了。 https://developer.huawei.com/consumer/en/doc/HMSCore-Guides/service-introduction-0000001050041994