I'm trying to install Carthage dependencies in my Xcode project with the
Carthage bootstrap --platform iOS
command line but It's fail and I have this message in my terminal:
Could not find any available simulators for iOS
I've just updated Xcode with the 10 version then the simulators are already installed.
I've also tried to delete each one and reinstall only one with iOS 12.
I have still the same error.
Upgrading to v0.31.1 or v0.31.2 fixes it:
Just upgrade your Carthage.
As indicated in other answers the cause behind this is that a key indicating simulator model availability changed in a recent update to Xcode 10.x. It was
and it is now
Upgrading Carthage to 0.33.0 fixes this.
Using brew, enter the following to update Carthage
Notice the word is upgrade, not update.
Check the version of carthage
carthage 0.33.0
And in the terminal at the root of your project, enter this to rebuild your Carthage dependancies.
They all should build as expected.
You can check the data format of the available simulators through this command.
xcrun simctl list devices --json
In my case it was solved.
rm -rf ~/Library/Developer/CoreSimulator/Devices/
carthage update
When a new xcode version comes out, it tends to happen. You can try to update Carthage with
brew upgrade carthage
if installed with BrewWhat worked for me was uninstalling Carthage and installing it again.
Uninstalling and installing Carthage trick worked for me!