Flutter 常见报错调试

231 阅读1分钟

Typo: In word ''

image.png

编译器对驼峰检查

image.png

image.png

AndroidStudio Avoid using private types in public APIs.

image.png

image.png

Unable to find a target named RunnerTests in project

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin22/rbconfig.rb:21: warning: Insecure world writable dir /opt/homebrew/sbin in PATH, mode 040777

Update all pods

Updating local specs repositories

Analyzing dependencies

[!] Unable to find a target named `RunnerTests` in project `Runner.xcodeproj`, did find `Runner`.

  


[!] Automatically assigning platform `iOS` with version `11.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

因为 iOS工程里面没 test 可以执行 手动删除iOS 工程 然后 重新配置即可

 flutter create --platform ios .