xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

Can't use xcrun simctl list after I installed XCode 10.3 #446

Open igorgiumellizup opened 3 years ago

igorgiumellizup commented 3 years ago

Hello

I'm using Big Sur with default XCode version 12.4. Using xcode-install, I installed XCode 10.3 and switched it to default version by means of command sudo xcode-select --switch /Applications/Xcode-10.3.app/Contents/Developer.

After that, I'm no longer able to execute commands xcrun simctl list or xcrun xctrace list devices to list installed and available simulators. I get the error:

sh: line 1:  3806 Bus error: 10           /Applications/Xcode-10.3.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode-10.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -find simctl 2> /dev/null
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH

I followed this guide but that also din't do the trick.

I switching back to version 12.4, the problem doesn't occur anymore.