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.
Related
I have created two ios app A & B. I made custom URL for app A and tried to opened it through app B. But the app A crashes when it opened. I want to debug it. How will I do that?
I presume that you know how to debug (if not, that's a different question), and that your problem is how to set a breakpoint when the application is launched from a URL rather than by yourself directly.
What you need to do is to setup breakpoints normally anywhere you need them - e.g. in applicationDidFinishLaunching Then
Click on your application name 'A' in the bar and then Edit Scheme.
Under Info, select "Wait for executable to be launched"
Run app 'A' from Xcode. It will not actually run, but prepare to debug it when it is run.
Now run app 'B' and launch app 'A' from it.
Click on the break point navigator in the xcode
Press the plus icon at the bottom left of the window and add an Exception Break point.
It will give you enough information when the app crashes and you will be able to back track and find the cause
I'm having a really hard time taking screenshots.
My app has a view controller that lets the user enter some information with a few UITextFields. I am now taking screenshots of this view controller so that I can upload them to iTunes Connect.
Obviously, I can't just leave the text fields blank and take a screenshot, because that tells the user little information about how he/she is supposed to do.
Therefore, I need to enter some dummy texts. But they cannot be
njndsfiusbfiksbksug
because it makes no sense and does not show the user what that text field is for.
So I have to enter some really long texts in there in order to show the user a good example of how to use the app.
Now here comes the problem, I have to take screenshots of 5 device sizes and 3 localizations. This means that I will spend a lot of time entering the same old text into the iPhone over and over.
Then I thought that I can type the dummy texts into the Stickies app on my Mac, and copy/paste that text from my Mac to the iPhone simulator. So I pressed ⌘ + C in the Stickies app, and ⌘ + V in the iPhone, but nothing happens at all.
I think this is because the iPhone has its own clipboard.
How can I copy text from my Mac to the iPhone simulator?
Note: when the user is using the app, he/she can choose not to enter long texts. I'm just doing this to show a good example to the user. So don't tell me my app sucks.
You have to use ⌘+V when inside the simulator, then click on a field and tap Paste.
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
After following the steps in here, the custom keyboard section is not shown in the Settings.
One thing that I noticed, is that when setting up the project the "Embed in Application" drop down was set to None and had no other options. Also the directions said to add a Bundle display name row in my plist, but that was already there and had the project/keyboard name there.
I can run the keyboard project and it does ask for me to choose an application (I picked Safari). Then I expected to be able to go to the settings and enable my keyboard, but it is not there.
Make sure the Keyboard Extension Target->General->Deployment Target is not newer than your device's current OS version.
You can try the following option, as it helped in my case:
Select your main app target.
Select "Build Phases"
Expand "Embed App Extensions"
Make sure that checkbox for "Copy only when installing" is unchecked
Run your app and check again Settings
For me, the only thing that worked was restarting the phone.
I could run the main app target and also debug the keyboard extension in another app, however it wouldn't show up in the list at Settings -> General -> Keyboard -> Keyboards -> Add New Keyboard....
As soon as the phone was restarted, the keyboard extension showed up in the list straight away.
My guess is that adding and removing the keyboard many times has the potential to confuse iOS and result in it thinking that the keyboard had already been added (hence why it doesn't show up in the list).
it's just simply solved by adding settings bundle in application
This link may help
http://verisage.us/en/blog/2014/07/17/ios-8-custom-keyboard-swift-tutorial/
In short, you need an dummy app to deploy the keyboard.
Search "To run the custom keyboard and attach the Xcode debugger" in the following link.
You will find how to attach the process to debugger.
https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/Keyboard.html#//apple_ref/doc/uid/TP40014214-CH16-SW7
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)