Flutter:“idevicesyslog” cannot be opened because the developer cannot be verified.

第一次啟動(dòng)flutter項(xiàng)目時(shí),報(bào)了兩個(gè)錯(cuò):
“idevicesyslog” cannot be opened because the developer cannot be verified.

idevicesyslog_error

"iproxy" cannot be opened because the developer cannot be verified.
iproxy_error

解決辦法:

在終端運(yùn)行以下命令即可:

# idevicesyslog
sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/idevicesyslog"
# iproxy
sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/usbmuxd/iproxy"

執(zhí)行完之后,重新運(yùn)行項(xiàng)目就可以了。

Note:

如果還不行,請(qǐng)重啟電腦。

其他

如果報(bào)了這兩個(gè)之外的錯(cuò)誤,可嘗試以下命令:

# Dart
sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/dart-sdk/bin/dart"
# idevice_id
sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/idevice_id"
# ideviceinfo
sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/ideviceinfo"
# idevicename
sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/idevicename"
# idevicescreenshot
sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/idevicescreenshot"

如果還解決不了,請(qǐng)參考這個(gè)博客How to fix flutter “idevice_id” cannot be opened error in Mac OSX Catalina

Have fun!

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容