i have flutter code which is used to build ios and android app, when code run in xcode using simulator, it runs fine, but when run in android studio or in visual studio code using
flutter run --flavor stg
get the following error :
Parse Issue (Xcode): Module 'fluttertoast' not found
GeneratedPluginRegistrant.m:131:8 Could not build the application for
the simulator. Error launching application on iPhone 13.
Please help :(
It's lookes likes you are opening incorrect file. you should open
open runner.xcworkspace ,it worked!
also run pod install in IOS directory.
I'm unable to debug a freshly created app on physical iOS devices when pubspec dependencies reach a certain size, because it causes the "waiting for observatory port" step to timeout after 30 seconds.
Devices tested:
iPhone 12,
iPhone 12 Pro
iOS versions tested:
14.7.1,
14.5
The app runs properly on emulator but not on ios real device.
How do I fix this issue?
This Error message occur when your iPhone is busy processing something. For example as below.
If you run Flutter doctor you will see message as below.
Error: iPhone X is busy: Fetching debug symbols for iPhone X. Xcode will continue when iPhone X is finished. (code -10)
To confirm I opened xCode -> windows -> Devices and Simulator and it was showing the progress. Let the progress complete and then confirm by running Flutter doctor to make sure there is no error message.
Had the same problem after updating Xcode and running for the first time. As mentioned on the this github issue (https://github.com/flutter/flutter/issues/72161#issuecomment-994653225) I simply:
Opened ios/Runner.xcworkspace with the iPhone connected
Waited until "Fetching debug symbols" process finished
Closed Xcode
Run again from IDE and it worked!
I have encountered the same issue and following this process has fixed the problem for me on 14.7.1 and 14.8:
Uninstall the app
Restart the phone
Open the app using Xcode
Run 'flutter clean' for the project
Now it should work if you run it again.
If it still doesn't work you could try increasing the observatory timeout (the default appears to be 30 seconds):
localUri = await observatoryDiscovery.uri.timeout(const Duration(seconds: 30));
I'm not 100% sure why this problem appears inconsistently, but there is a lot of related discussion at the following link:
https://github.com/flutter/flutter/issues/72161
For coders who are as lazy as me, you could take these steps:
Open xcode for the project:
Run the project from xcode:
while(prompt_below_finished == false) wait for some time || make a coffee;
Runs successfully. As for me, next time I ran with android studio , it run smoothly
run your project through Xcode, not from Xcode or Android Studio. it will show different error message.
when I run the Flutter project using Xcode, the error message was
"The sandbox is not in sync with the Podfile.lock..."
to solve this, I run pod install on the ios folder. run these 2 commands below on your terminal
cd ios
pod install
I have tried all the solutions here and for me the simplest works:
move you Android Studio in the trash, download it and reinstall. for me the problem was with Android Studio 2021.1.1 Patch but I got there with several updates. a clean install solved the problem.
In My iPad case, It showed a white screen after compiling in the installing step for 5-10 minutes & it worked at the end without doing anything
Try updating your Xcode and MacOS to the latest versions.
Getting this error "An unknown server-side error occurred while processing the command. Original error: '13.3' does not exist in the list of simctl SDKs. No Simulator SDK versions are available on your system. Please install some via Xcode preferences."
I was getting the same exact error and then I updated appium to latest version and now it works.
The error speaks for itself: requested platform should be visible in xcrun simctl list output.
You either use incorrect developer tools dist or Xcode installation is corrupted. Not an Appium issue, but your environment.
Go to XCode and add a new simulator with iOS 13.3, you might need to update XCode as well in oder to do it.
My UITests were running fine till xcode 8.3 (iOS 10). After updating xcode and upgrading to swift 4 Test Fails with following error
crashed in external symbol
iOSSimulator: Unable to connect to
"com.apple.instruments.deviceservice.lockdown" (Error
Domain=DTiPhoneSimulatorErrorDomain Code=-1 "DTServiceHubClient failed
to bless service hub for simulator iPhone 7 Plus
(F8CB0FF4-5A28-4149-841F-70162DFB6228)"
UserInfo={NSLocalizedDescription=DTServiceHubClient failed to bless
service hub for simulator iPhone 7 Plus
(F8CB0FF4-5A28-4149-841F-70162DFB6228),
NSUnderlyingError=0x7f92283856d0 {Error
Domain=DTiPhoneSimulatorErrorDomain Code=-1
"blessSimulatorServiceHub:error: failed but didn't provide an error"
UserInfo={NSLocalizedDescription=blessSimulatorServiceHub:error:
failed but didn't provide an error}}})
Simulator boots, app installs and then simulator crashes right there.
Down grading the swift file to 3.2 and making necessary downgrade changes and running on xcode 8.3 Tests runs like charm.
I tested it on different Mac. Same error occurs.
I can't really guess whats messing up on xcode 9
This seems to be Xcode Bug. After updating to Xcode 9.1 this error vanished.
I'm getting a weird issue trying to load my app using ZXing on my iPhone.
It runs on the simulator, but when I tried to run it on my iPhone it says:
error: failed to launch '/Users/....../MyApp.app/MyApp' -- No such file or directory
And If a look into that path the file already exist!
Why could this be happening?
Am woking on iOS 5.1 (targeting 4.0) with the last version of ZXing.
Restart XCode, perhaps this is the solution.