第一次启动flutter项目时,报了两个错:
“idevicesyslog” cannot be opened because the developer cannot be verified.
"iproxy" cannot be opened because the developer cannot be verified.
解决办法:
在终端运行以下命令即可:
# 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"
执行完之后,重新运行项目就可以了。
Note:
如果还不行,请重启电脑。
其他
如果报了这两个之外的错误,可尝试以下命令:
# 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"
如果还解决不了,请参考这个博客How to fix flutter “idevice_id” cannot be opened error in Mac OSX Catalina
Have fun!