xcode 6 simulator doesn't show home button [duplicate] - ios

I am creating a game in Xcode-6-GM-Seed and am having an issue that the home button is not showing up in the simulator.
I need to be able to press the home button to be able to quickly delete the app from the phone but am not seeing the home button.
How do I get around this? Is there some sort of command to use or do I need to do it programmatically until they add the home button? Is there another way to delete the app and it's content?

Use Command + Shift + H for pressing Home button.
You can also choose "Reset Content and Settings" to erase the App.

As mentioned above, shift+command+h is how you should trigger the home button to get to SpringBoard.
If you need to uninstall an app, you can also do that from the command line via simctl:
xcrun simctl uninstall booted com.mycompany.myapp

Related

Where do iOS Simulator screen recordings go?

Sorry if this is obvious, but where do iOS Simulator screen recordings go? They are not on my Desktop.
I accidentally started a screen recording and it recorded for like an hour before I stopped it. I'd like to delete that file but I can't find any indication on where that video file is getting stored and Google has been no help.
to record a video in IOS Simulator.
Open File menu > Record Screen or ⌘ - command + R .
Simulator saves screenshot file on (logged-in user's) desktop and it's the default path.
To change the default path (with Xcode 9+), press and hold ⌥ the Option (alt) button from the keyboard, while you take a screenshot.
Or
Using Mac Keyboard: Press keys ⌥ Option + ⌘ + s altogether.
It will show a dialog with file storage options and also allows to set/change the default path.

How to do "command touch" keyboard shortcut Swift

I have added keyboard shortcuts to my project and am trying to figure out how to do a shortcut for holding down the command key and tapping on a tableview cell (or anything in the app). I'm assuming there has to be a touch input of some kind but I can not find anything.
You can think of this like how in safari on iPad if you hold the command key and press a link the link opens in a new tab. Please let me know if you know how to do this!

How can I reset iOS 9 Universal Linking settings?

While testing universal links on my iOS 9 app, I accidentally tapped "mywebsite.com >" (top right corner). This made the app navigate to the website again. Now I can't seem to make universal linking work again. Seems like iOS has remembered my preference that I would like to see links opened in Safari as opposed to my app.
Has anyone run into this? Is there a way to reset this?
You can long-press on a universal link and it will give you an action sheet with an "Open in 'AppName'" option. Once you select that option it will default to opening the links in your app again.
You need pull down in opened page in safari from email, etc to see button "Open" (this button is system in safari). If tap "open" after
I accidentally tapped "mywebsite.com >"
universal link will work again under the old scheme.The result of this action preserves.
example
#dan is right, long-pressing the hyperlink will give you the option to open with your app again through universal link.
If you have an Apple Smart Banner in place, you can also click on its 'Open' hyperlink to active universal links on your app again.
For a Branch.io deep link the long tap (at least in GMail) does not work and also you can't pull down from safari, it brings you to the App Store immediately.
Instead, copy the link to Notes and then do the long press.
More info here: https://blog.branch.io/3-steps-to-troubleshoot-ios-9-and-ios-10-universal-links/

How to launch Appium test with a certain language keyboard on iOS simulator

I am running tests which require having different keyboards open while typing throughout the app. I want to be able to run a test that perhaps launches a script that changes the default language before the test begins. I know you can run scripts which do similar things to change the state of the simulator however I cannot find where the keyboard settings are located.
I spent some time trying to figure this one out.
Here's what I've got for you:
To use different keyboards, you need to tell manually the Simulator which languages you plan on using when you type.
From then on, whenever the keyboard is up, there will be a UIAKey named Next Keyboard that looks like a Globe.
Do a long press on it to get an action sheet open with all the different languages, or click it once to cycle through the keyboards.
Step-by-step:
Go into System Preferences on the simulator
Click on General
Click on Keyboard
Click on Keyboards
Click on Add New Keyboard...
Select (Language)
Close the Simulator
Open your app
Click on a Textfield
See the Globe Button
Click the Globe Button
Keyboard should now be in (Language)

Uninstall (delete) iOS app from source code?

On iOS devices,to uninstall app, user long press app icon until it starts wobbling with (X) symbol on top left. Once (X) is pressed, it displays "Delete app" alertview. If Delete button is pressed, it uninstall app from device.
I'd like to write an utility application which removes other unwanted applications. This will be automated so that I don't need to remove them manually.
Any suggestion or hint?
It's not possible without the device being jailbroken. There is no access to which apps are actually on the device, much less an option to delete them.

Resources