-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter "Could not build the application for the simulator." (iOS) #64881
Comments
@andrespd99 can you attach the verbose logs |
YEsterday, i faced same issue. Check your Flutter folder under IOS and check there is Debug.xcconfig and Release.xcconfig generated or not. |
Yes, I have both files under that directory. What did you do to fix it? |
Also, the last lines with the error:
|
Hi @andrespd99 |
Hi @TahaTesser |
Hi @andrespd99 Can you please provide |
Hi @TahaTesser . Thank you for your response. I made a new project with Some things I noticed when trying to reproduce the error:
I think this problem might be linked to a MacOS or XCode bug because it is independent of code. Just to point this out in case it is useful for someone: this did not happen in my older MBP 2012, but in a MBP 13 2020. Same OS versions. Repository: https://github.com/andrespd99/mapp (this is just a base flutter project, nothing was changed). |
Hi @andrespd99
The app runs with no issues when created terminal and running on simulator Creating an app from VSC command palette
Using your core sample, it runs fine
I am running on the latest flutter doctor -v
Can you upgrade to |
Without additional information, we are unfortunately not sure how to resolve this issue. Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of |
-MacBook-Pro ios % flutter run -v
[ 97 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping
⣽[ 12 ms] executing:
[ 15 ms] Xcode workspace settings not found, skipping build system migration
(``)
'firebase_core'
because Specs/8/3/c/FirebaseCoreDiagnostics/8.4.0/FirebaseCoreDiagnostics.podspec.json Specs/8/3/c/FirebaseCoreDiagnostics/8.4.0/FirebaseCoreDiagnostics.podspec.json Specs/2/f/7/FirebaseInstallations/8.4.0/FirebaseInstallations.podspec.json exists! Specs/2/f/7/FirebaseInstallations/8.4.0/FirebaseInstallations.podspec.json exists! Specs/e/3/b/GoogleAppMeasurement/8.4.0/GoogleAppMeasurement.podspec.json exists! Specs/e/3/b/GoogleAppMeasurement/8.3.0/GoogleAppMeasurement.podspec.json exists! Specs/e/3/b/GoogleAppMeasurement/8.3.0/GoogleAppMeasurement.podspec.json exists!
Files/Stripe/Stripe-dummy.m Files/gRPC-C /ResourceBundle-gRPCCertificates-Cpp-gRPC-C -Info.plist
because
and 32 [ 231 ms] Error output from CocoaPods:
your
your
your [ 57 ms] Fingerprint write error: FileSystemException: Cannot open file, path =
[ 25 ms] Running Xcode build... (completed in 3.2s)
[ 190 ms] Failed to build iOS app /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice [ ] Xcode's output: SCRIPT_OUTPUT_STREAM_FILE=/var/folders/f4/k3xry7rn7w55tv89c9hft65m0000gn/T/flutt
/Users/aryunaferreranakamura/StudioProjects/Uniyo/build/ios /var/folders/f4/k3xry7rn7w55tv89c9hft65m0000gn/T/flutter_tools.5qNvdC/flutter_bu
/Users/aryunaferreranakamura/StudioProjects/Uniyo/ios/Flutter/Debug.xcconfig:1:1: /Users/aryunaferreranakamura/StudioProjects/Uniyo/ios/Flutter/Debug.xcconfig:1:1: /Users/aryunaferreranakamura/StudioProjects/Uniyo/ios/Flutter/Debug.xcconfig:1:1: [ 654 ms] Could not build the application for the simulator. [ 180 ms] ensureAnalyticsSent: 91ms |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
UPDATE!!! (09/01/20): The problem only happens when creating project from terminal (or if creating it with VSC command palette, after closing VSC the first time and then trying to run the app again).
flutter clean
fixes the problem.Recently, I've had a persistent bug with Flutter when compiling apps. The first time the app is compiled, there's no error, but once I stop the app and try to compile it again, the next message will always pop up:
The only fix that really worked for me is doing
flutter clean
once and then compile; but if I stop running the app, close the simulator, close VSCode, or anything that stops the app from running, the same error will appear again and I am forced to doflutter clean
once again before compiling.So far, the workaround is not that bad, but it should be fixed soon as I had a really rough time trying to figure out how to compile the app. In other posts I found fixes like locking the keychain and then unlocking it (which didn't work for me). I only have this bug in MacOS Catalina 10.15.5 with XCode 11.6.
flutter doctor -v
The text was updated successfully, but these errors were encountered: