-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Could not build the application for the simulator #90504
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
Comments
I have the same problem after update Xcode 13, build iOS for simulator fail , but success in real devices flutter doctorDoctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, 2.5.1, on macOS 11.6 20G165 darwin-x64, locale
zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for
more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5)
[✓] Connected device (3 available)
I fix this issue with post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
#add this code
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
end
end add run run then run for simulator success |
Hi @jeffaknine
There was an issue on simulator for packages, can you please upgrade your packages such as |
same problem. |
I tried updating every package but no luck |
Hi @CarGuo If the problem persists |
@TahaTesser thx , add |
That's why the suggested workaround works, it's telling Xcode not to build any Pods and Flutter not to build the app for the arm64 simulator. post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
end
end Since s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' } to https://github.com/Canardoux/tau/blob/master/flutter_sound/ios/flutter_sound.podspec For anyone else seeing this, please file a new issue and include your Closing--this is a third-party plugin issue. |
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 |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am using latest flutter 2.5.1
after upgrading to latest flutter i cannot run application via VSCode or the terminal on iOS simulator (it runs perfectly from XCode).
I've tried to clean and delete podfile pods etc.
It looks like the same issue as #90382
Here are the log files using
flutter run -v > logs.txt
logs.txt
Here are my podfile
podfile
podfile.lock
podfile.lock
pubsec.yaml
pubspec.yaml
The text was updated successfully, but these errors were encountered: