You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I build my iOS Flutter app with VS Code, the build breaks with this error message:
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 9BK2J3MZKX
Xcode build done. 34.6s
Failed to build iOS app
Could not build the precompiled application for the device.
Uncategorized (Xcode): Could not resolve package dependencies:
downloaded archive of binary target 'absl' from 'https://dl.google.com/firebase/ios/bin/abseil/1.2024011601.1/rc0/absl.zip' does not contain a binary artifact.
downloaded archive of binary target 'openssl_grpc' from 'https://dl.google.com/firebase/ios/bin/grpc/1.62.2/rc0/openssl_grpc.zip' does not contain a binary artifact.
downloaded archive of binary target 'grpcpp' from 'https://dl.google.com/firebase/ios/bin/grpc/1.62.2/rc0/grpcpp.zip' does not contain a binary artifact.
downloaded archive of binary target 'grpc' from 'https://dl.google.com/firebase/ios/bin/grpc/1.62.2/rc0/grpc.zip' does not contain a binary artifact.
fatalError
3
Error launching application on iPhone SE (2nd generation).
Subsequently, running flutter build ipa from the commandline and also building from Xcode both fail with the same error.
The only way to fix it is to quit Xcode and run rm -rf ~/Library/Caches/com.apple.dt.Xcode (which I understand is heavy-handed, but I have no idea what in this cache is broken).
After that fix, flutter build ipa and building/running in Xcode work again. So it is only the VS Code build that is broken. (I have no idea if Dart-Code is responsible for VS Code builds -- sorry if this is mis-filed the issue...)
/Users/luke/flutter/bin/cache/dart-sdk/bin/dart info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
VS Code is really just calling flutter run so I don't think it's directly to blame - but it could be doing something to trigger this.
My first question would be whether running from the terminal with flutter run can also trigger this error (and subsequent breakage). I assume it can (because that's all VS Code is really doing), but it's worth verifying.
If it does, then it would be better to file this in flutter/flutter (where there is more knowledge about Xcode than the little I have). If it doesn't, then we should try to understand what's different between VS Code and the terminal (usually this is things like env variables set in terminal startup scripts, and one way to debug further is to launch VS Code from the terminal where it works so it inherits all of the env vars, and then test in VS Code again).
If I build my iOS Flutter app with VS Code, the build breaks with this error message:
Subsequently, running
flutter build ipa
from the commandline and also building from Xcode both fail with the same error.The only way to fix it is to quit Xcode and run
rm -rf ~/Library/Caches/com.apple.dt.Xcode
(which I understand is heavy-handed, but I have no idea what in this cache is broken).After that fix,
flutter build ipa
and building/running in Xcode work again. So it is only the VS Code build that is broken. (I have no idea if Dart-Code is responsible for VS Code builds -- sorry if this is mis-filed the issue...)Workspace Environment
Output from 'dart info'
/Users/luke/flutter/bin/cache/dart-sdk/bin/dart info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
General info
Project info
Process info
Output from 'flutter doctor'
/Users/luke/flutter/bin/flutter doctor -v
The text was updated successfully, but these errors were encountered: