Reset all Xcode iOS simulators
osascript -e 'tell application "iOS Simulator" to quit' osascript -e 'tell application "Simulator" to quit' xcrun simctl erase all
Library of HTML, CSS, PHP, SQL, JavaScript & jQuery Code Snippets
osascript -e 'tell application "iOS Simulator" to quit' osascript -e 'tell application "Simulator" to quit' xcrun simctl erase all
If you're receiving the following error in Xcode:
-canOpenURL: failed for URL: "<scheme>://" - error: "This app is not allowed to query for scheme <scheme>"
Apple changed the canOpenURL
method on iOS 9. Apps which are checking for URL Schemes have to declare these Schemes as it is submitted to Apple. More info here.
Simply open your app's .plist (usually platforms/ios/<appname>/<appname>-Info.plist )
with an editor and add the following code with your needed Schemes.
<key>LSApplicationQueriesSchemes</key> <array> <string>tweetbot</string> <string>twitter</string> <string>googlechromes</string> </array>