FlutterでiOS実機ビルドでエラーがでてしまったのを直した
FlutterでiPhoneに実機ビルドしようとしたとき、 アプリはインストールされるのだが、エラーになってしまいsyncできない状態になってしまった。
Unable to locate DeviceSupport directory with suffix 'Symbols'. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown!
Could not install build/ios/iphoneos/Runner.app on (deviceId). Try launching Xcode and selecting "Product > Run" to fix the problem: open ios/Runner.xcworkspace Error launching application on iPhone8.
こちらの記事を参考にFLUTTER_ROOTをセットしてみたが、 自分の場合それだけでは改善しなかった。
以下を.bash_profileに追加
export FLUTTER_ROOT=[flutterSDKの場所]
さらに以下の記事を参考に、flutter clean等を実行したら無事ビルドできるようになった。
cd [プロジェクトのルート]/ios pod setup cd [プロジェクトのルート] flutter clean