Expo Error running Xcode iOS Simulator: No iPhone devices available in Simulator - xcode

I'm having an issue running iOS simulator from Expo. I'm seeing these two errors:
Trying to open the project in iOS simulator...
Opening iOS simulator
iOS Simulator device failed to boot. Try opening Simulator first, then running your app.
Error installing or running app. Error: Timed out waiting for iOS Simulator device to boot.
Trying to open the project in iOS simulator...
Booting device in iOS simulator...
There was a problem booting a device in iOS Simulator. Quit Simulator, and try again.
Error installing or running app. Error: No iPhone devices available in Simulator
An iPhone 5s with iOS 11.2 is clearly available and works in Xcode simulator with a simple project ran from Xcode which tells me this is an Expo issue.
I'm using:
Expo version: 3.4.1
Xcode version: 9.2
Mac OS: 10.12.6
Please note - I cannot upgrade my OS. So Xcode version 9.2 is what I must use.
Things I've tried:
set command line tools as correct Xcode version with path /Applications/Xcode.app
delete all simulators and re-add them
start simulator before running app / start simulator after running app
delete all contents under Library/Developer/CoreSimulator/Devices/
I know this question has been asked before, but no solid answer has been given. Maybe someone has figured it out since then.

your phone runs a newer version of software, so you won't be able to use Xcode version 9.2, you have to use 11.2 or newer before running it on your own phone.
if you want it to work with a newer version of iOS, you have to link the device files of newer Xcode version to the version you use.
https://community1.pega.com/community/pega-support/question/building-mobile-apps-newer-ios-versions-older-xcode-versions
this link should help you with your problem, just follow their steps
you have to do this because each iOS has its own files which comes with the new versions of Xcode
I hope this helps you;)

Related

Your Xcode version may be too old for your iOS version

I have updated my phone's OS version to iOS 14 and spent today updating Xcode to version 12, yet when I try to build my Flutter app on my iPhone 11 - iOS 14 through Android Studio, it gives me this error:
Your Xcode version may be too old for your iOS version.
═══════════════════════════════════════════════════════════════════════════════════
2020-09-18 19:14:26.576 ios-deploy[30916:201883] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
Could not run build/ios/iphoneos/Runner.app on 00008030-00012C200C45802E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on Azheen’s.
This problem is somewhat confusing, I got the same error with Xcode 12.0.1 and iOS 14.2 beta.
This solved for me
Download Device support files of iOS 14.0 from this link.
for iOS 14.2 beta there is a pull request that is not yet merged
Unzip and Paste it in this location. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
ReOpen Xcode.
This is what I did:
Updated Xcode
flutter clean on the terminal.
flutter upgrade on the terminal.
Open Xcode and run the application once.
flutter clean again.
flutter run.
It should work now.
This issued was raised a while back in August in the flutter repo. Currently, the issue has been fixed by the recent flutter update.
Run flutter upgrade to v1.20.4 to get the fix
I ran into this problem recently, most likely it can be caused due to the reason, that your iOS Device is running a higher version than you xcode can support.
Example:
Apple release new iOS for iPhone i.e. 14.2 and you upgrade your device right away, than you ran into this issue, because the xcode may not have the latest version of your device support files, meaning xcode can only suuport iOS 14.1 or lower. Apple sometimes release newer iOS without providing update of xcode device support files.
There is 4 solutions for this:
Keep your iOS Device on the current stable version of xcode
Downgrade your current iOS device
Install device support files manually
Install xcode beta from Apple Developer https://developer.apple.com/download/
It is an annoying issue, Apple should not release any iOS without having the supporting tools released at the same time, or they should run a warning.
Ran into this issue today on Visual Studio. It appeared that my Dart SDK version was too out of date and upgrading it appeared to fix the problem.
I did upgrade my Flutter version first, and then ran into a problem with the vsync property of AnimationController not being recognized, which was solved by upgrading the Dart SDK, so I'm not sure who the real culprit was (or if it was a combination of both).
Instructions on upgrading your Dart SDK: https://dart.dev/get-dart

XCode 9.4.1 >> Simulator iPhone 8 Plus OS 11.4 issue

I have recently installed XCode 9.4.1 on my MAC, current MAC OS is 10.13.4. When I run application on simulator (iPhone 8 plus with iOS 11.4) or on any other simulator which is having iOS 11.4. It is giving me below warning and simulator doesn't run application though it is getting open backside,
Kindly suggest me an appropriate solution to come out from this issue.

XS community 6.1.1 auto close apps on iOS simulator 8.1 after deploy

When I debug and deploy Xamarin.iOS native app to iOS simulator 8.1 through XS(in Mac), it installs app to simulator but it closes automatically after installation. Though app deployment on iOS simulator 10 works fine. This problem is occurred after updating XS to latest version and iOS SDK update to latest version. My iOS app deployment target is 8.0. Also I made sure that Entitlements.plist is empty.
NOTE: Xcode 8 does successful installation on iOS simulator 8.1 and works fine.
Anyone knows why this problem occurs and how to resolve it ?
Clean the project, recompile it and run on simulator.
Additionally, open simulator logs using Cmd + / hotkey and see what exactly is being printed to the simulator logs when you launch your app.
I've seen similar problems which were related to the app crash on launch actually.

Xcode 5.1.1 - iOS 6.1 Simulator not responding

I need to test an application on an iOS6 simulator. Since this iOS version is not part of the current Xcode6 environment, I tried to install Xcode 5.1.1 beside my Xcode 6 installation and use it.
I downloaded Xcode 5.1.1 from the Apple developer pages and installed in in my applications folder. After launch I am downloading and installing the iOS 6.1 SDK from within Xcode.
After that I am trying to launch the simulator (NOT with an app, just a clean launch) but when the simulator window is shown it keeps black. The log says:
Could not lookup service com.apple.iphonesimulator.host_support: 1102
repeatingly. Clicking "Reset Content and Settings..." wont work. I also deleted the SDK file from
~/Applications/Xcode 2.app/Contents/Developer/Applications/
and the 6.1 Folder from
~/Users/username/Library/Application Support/iPhone Simulator/
And made a fresh install. Also no effect. I know there are a lot of similar questions here on stack, but they all suggest the "Reset Content and Settings..." which wont work for me. Any idea what might going on?
When launching an iOS7.1 simulator from Xcode 5.1.1 it starts up and works like a charm. The iOS7.1 comes with the Xcode bundle, the iOS6.1 simulator has to be installed manually. Maybe that's the problem?
Thanks!
Ok,
i probably found the answer here: In OS X 10.10 (Yosemite Beta), How do I Test Using iOS 6.1 Simulator?
In short: iOS6 is not supported under OS-X 10.10 and so the simulator won't work.

Xcode cannot run using the selected device on 7.1.1

I got the following error:
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.
xcode 5.0.2 (5A3005)
iphone 4S with iOS 7.1.1
Development Target is 7.0
Code signing Provisioning profile is set to IOS Team Provisioning Profile.
In Xcode -> Window -> Organizer - Devices
The version of iOS on is not supported by this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here.
OS Installed on
7.1.1 (11D201)
Xcode Supported iOS Versions
Not sure why the xcode supported IOS versions is blank here.
Already tried to project clean, remove device and reconnect and set target to lower version. None of these methods work.
Please advise.
thank you
After upgrading to Xcode 5.1.1, it's working fine now.
Thx

Resources