Flutter报错总结二

1.Handshake error in client(OS Error: CERTIFICATE_VERIFY_FAILED: ok(handshake.cc:352))

pub get failed(69)-- attempting retry 1 in 1 second...

Handshake error in client(OS Error: 

CERTIFICATE_VERIFY_FAILED: ok(handshake.cc:352))

解决方法:

打开~/.ios/Runner.xcworkspace,选择项目对应的证书

然后pod install 

ps:我这边是通过以上方法解决,但是不确定是通过以上哪一步,预计是选择项目证书解决的

2.Cannot find "xcodebuild". Xcode 11.0 or greater is required to develop for iOS.

Could not build the precompiled application for the device.

Error launching application on iPhone7ll.

解决方案:

sudo xcode-select--switch/Applications/Xcode.app/Contents/Developer

若安装了多个版本xcode,此处按需要其他版本的Xcode名称来写,例如

sudo xcode-select--switch/Applications/Xcode11.3.app/Contents/Developer

你可能感兴趣的:(Flutter报错总结二)