ios-simulator

How do I remove app from iOS 8 Simulator from command line?

只愿长相守 提交于 2019-11-28 23:20:53
I have an automation running in the iOS Simulator that I have to remove before another run. How do I remove the app from the iOS Simulator from the command line? For each simulator device directory (located at ~/Library/Developer/CoreSimulator/Devices/* ), I tried to delete ./data/Containers/Bundle/Application/ and ./data/Containers/Data/Application/ . Even when I tried to delete the app by long pressing the app in the Simulator (the app becomes jiggly) and click on the X button, the user defaults were not being cleared. I want the app state to be 100% clean. I found a good solution to solve

Where Does Simulator 8.0 Store Files

别来无恙 提交于 2019-11-28 23:15:23
I cannot find the directory for the new simulator data in Xcode-6 Beta for IOS 8 It is not in ~/Library/Application Support/IPhone Simulator/ Where does the iPhone Simulator store its data? Something like this: /Users/{YOUR NAME}/Library/Developer/CoreSimulator/Devices/{DEVICE ID}/data/Containers/Data/Application/{APPLICATION ID}/ The Device ID can be a bit hard to find (basically, there's one folder with a random-looking name for each simulator you have). To get to the correct folder, I used this terminal command: find ~ -name myFile.txt Where myFile.txt was one of the files in my application

Slow down internet for iOS simulator

a 夏天 提交于 2019-11-28 22:41:33
I have a random crash in my iOS app. This happens when on slow internet connection. My office internet speed is too fast. For testing on simulator, I installed Network Link Conditioner as mentioned here: Installing Apple's Network Link Conditioner Tool Now the problem is that, I selected a slower connection profile but still I'm having the normal (fast) internet speed in simulator. I also created my own profile and set the download bandwidth to 5kbps but still no use. I have: Mackbook retina, OSX 10.7.5, XCode: 4.4.1 Restarting Xcode and Simulator also didn't work. Are there any additional

What is Generic iOS Device in Xcode 7.1 run destinations list?

╄→尐↘猪︶ㄣ 提交于 2019-11-28 22:18:05
I found a strange option in my simulators list in Xcode I've never seen before. Generic iOS Device in Build Only Device Interesting, but when I try to build for this device - I get error: A build only device cannot be used to run this target. Please select an available device or choose a simulated device as the destination. Can anyone explain - for what purposes do I need this option? I have Xcode 7.1 and iOS 9.1 The purpose of that target is to build for iOS devices, even if your phone is not plugged in. You can compile for iOS (armv7, armv8, arm64) architectures and see if there are any

New Xcode 6 Project - How to run in the iOS 7 Simulator

风流意气都作罢 提交于 2019-11-28 21:09:24
I try to create a new project with Xcode 6 that also runs on iOS 7. I've created a new project and then did the following: Set Project's iOS Deployment Target to 7.0 Referenced a Launch Image Source in the Assets Still, when trying to run on an iOS 7 simulator, the following error is shown: "iPhone 5s not available. Please select a different device and try again." (My older projects run fine on iOS 7 simulators.) How I can make a new project run in the iOS 7 simulator? EDIT The output of xcrun simctl list is the following: == Device Types == iPhone 4s (com.apple.CoreSimulator.SimDeviceType

How to set my web view loaded with already login user -iPhone

不想你离开。 提交于 2019-11-28 20:54:58
In my app iam using web view with URL:@"http://www.gmail.com/". This web view was loaded when i clicked a button in the main page / home page (IBAction)webClick:(id)sender { MailViewController *mail = [[MailViewController alloc]initWithNibName:@"MailViewController" bundle:nil]; [self.navigationController pushViewController:mail animated:YES]; } Then the web view was loaded, i used code like thin this in mail view: -(void)viewDidLoad { [super viewDidLoad]; NSString *urlAddress = @"http://www.gmail.com/"; NSURL *url = [NSURL URLWithString:urlAddress]; NSURLRequest *requestObj = [NSURLRequest

iPhone simulator - simulate 3G connection

江枫思渺然 提交于 2019-11-28 20:29:00
I am testing the Reachability api, but my physical device only has WiFi access, as I don't have a phone contract. My code needs to distinguish between being connected to 3G/2G or WiFi. Is it possible to simulate a 3G connection on the iPhone simulator? Clarifications: I am using Snow Leopard. Limiting the bandwidth is not what I need. I need for the actual interface to be identified as the 3G or 2G radio, as opposed to WiFi. If you are using Lion try the Network Link Conditioner Nowdays there is a part in Preferences on the device (when registered as a developer device) where a "Network Link

Xcode - Run Simulator with older iOS Version

馋奶兔 提交于 2019-11-28 20:24:01
Hey I have done a lot of looking around and seen many answers for how to do this in older versions of Xcode, but they don't seem to aplly to Xcode 6. So how can I run an older version of iOS in the simulator with Xcode 6. Thanks for the help In the Downloads pane of Xcode's Preferences, download the iOS 7 or 7.1 simulator. After it is downloaded, go to the Devices window (Window -> Devices) and click the Plus button to make a new simulated device with the system version you want. For example you might decide to make an iPhone 4s that's running iOS 7. Now you'll be able to choose that device

iOS simulator only list the latest iOS version. How can I set earlier versions

旧时模样 提交于 2019-11-28 19:31:24
According to the documentation should be able to choose which iOS version the simulator should run, however only the latest 4.3.2 is listed under "Hardware/Version". The helps says: "To set the iOS release used in the simulation environment, choose Hardware > Version, and choose the version you want to test on." I don't want to support 3.x (although it would be nice) but at least I want to simulate my app on 4.2, 4.1 and 4.0. What's going on? Why aren't they listed? UPDATE: I'm on Lion so I cannot install an earlier version of Xcode. Before my Upgrade I could test different versions easily.

Failed to launch simulated application: Unknown error

谁说胖子不能爱 提交于 2019-11-28 19:12:27
问题 OS X 10.5.7 (genuine Mac) Xcode 3.1.3 iPhone SDK 3.0 When I try to execute my iPhone application in simulator, I get the dreaded error message: Failed to launch simulated application: Unknown error. My application has two targets, but this error occurs on both of them. When error occurs, the simulated OS hangs — it displays black screen and no longer responds on any input. Simulator application itself does not hang — all menus are active. All other applications I've tried running (mostly