flutter 解决 error: missing required module ‘SwiftShims‘报错

macOS重装系统后出现报错

unknown>:0: error: PCH was compiled with module cache path '/Users/qiang/code/project/flutter_helper/build/macos/ModuleCache.noindex/2LU0UAS0HWLS8', but the path is currently '/Users/qiang/code/project/flutter_helper/flutter_helper_app/build/macos/ModuleCache.noindex/2LU0UAS0HWLS8'
<unknown>:0: error: missing required module 'SwiftShims'                
<unknown>:0: error: PCH was compiled with module cache path '/Users/qiang/code/project/flutter_helper/build/macos/ModuleCache.noindex/2LU0UAS0HWLS8', but the path is currently '/Users/qiang/code/project/flutter_helper/flutter_helper_app/build/macos/ModuleCache.noindex/2LU0UAS0HWLS8'
<unknown>:0: error: missing required module 'SwiftShims'                
<unknown>:0: error: PCH was compiled with module cache path '/Users/qiang/code/project/flutter_helper/build/macos/ModuleCache.noindex/2LU0UAS0HWLS8', but the path is currently '/Users/qiang/code/project/flutter_helper/flutter_
/Applications/DevEco-Studio.app/Contents/tools/ohpm/bin/ohpm install --all --registry https://ohpm.openharmony.cn/ohpm/ --strict_ssl true ohpm INFO: MetaDataFetcher fetching meta info of package '@hzw/ohos-dsbridge' from https://ohpm.openharmony.cn/ohpm/ ohpm INFO: MetaDataFetcher fetching meta info of package '@pie/log4a' from https://ohpm.openharmony.cn/ohpm/ ohpm INFO: MetaDataFetcher fetching meta info of package '@ohos/crypto-js' from https://ohpm.openharmony.cn/ohpm/ ohpm ERROR: missing: audioplayers_ohos@/Users/uniview/Desktop/mines1/harmonyunvlink/unvlink/ohos/har/audioplayers_ohos.har, required by entry@1.0.0 ohpm ERROR: Found exception: Error: Fetch local file package error, /Users/uniview/Desktop/mines1/harmonyunvlink/unvlink/ohos/har/audioplayers_ohos.har does not exist., reached retry limit or non retryable error encountered. ohpm ERROR: missing: flutter_boost@/Users/uniview/Desktop/mines1/harmonyunvlink/unvlink/ohos/har/flutter_boost.har, required by entry@1.0.0 ohpm ERROR: Found exception: Error: Fetch local file package error, /Users/uniview/Desktop/mines1/harmonyunvlink/unvlink/ohos/har/flutter_boost.har does not exist., reached retry limit or non retryable error encountered. ohpm ERROR: missing: flutter_logger_plugin@/Users/uniview/Desktop/mines1/harmonyunvlink/unvlink/ohos/har/flutter_logger_plugin.har, required by entry@1.0.0 ohpm ERROR: Found exception: Error: Fetch local file package error, /Users/uniview/Desktop/mines1/harmonyunvlink/unvlink/ohos/har/flutter_logger_plugin.har does not exist., reached retry limit or non retryable error encountered. ohpm ERROR: missing: player_ui_module@/Users/uniview/Desktop/mines1/harmonyunvlink/unvlink/ohos/har/player_ui_module.har, required by entry@1.0.0 ohpm ERROR: Found exception: Error: Fetch local file package error, /Users/uniview/Desktop/mines1/harmonyunvlink/unvlink/ohos/har/player_ui_module.har does not exist., reached retry limit or non retryable error encountered. ohpm ERROR: missing: sdk_channel_
最新发布
08-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值