ios-simulator

Is it possible to test iOS4 multitasking/background music playing on the simulator?

大兔子大兔子 提交于 2019-11-27 14:09:00
I have added the UIBackgroundModes property in Info.plist to have an array entry of " audio " and have added the call to setup the audio session: [session setCategory: AVAudioSessionCategoryPlayback error: &error]; . However, the only test device I have is the iPod Touch 2G which doesn't support multitasking. I've tried the simulator but the music stops playing when I switch to Safari. But when I switch back to my app, the song continues playing to a farther location than when I left the app. It seems to have continued playing in the background but I didn't hear the audio of my app while using

Couldn't register […] with the bootstrap server

╄→гoц情女王★ 提交于 2019-11-27 13:53:46
I keep getting this error when launching my app on the iOS Simulator: Couldn't register com.mycompany.MyApp with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger. I've read other reports of this error and it seems there is no obvious fix for it (restarting the iOS Simulator, restarting Xcode etc..) At this point here's a list of things I've tried: Restarting the Simulator Restarting Xcode Rebooting my machine Deleting my app's Derived Data, and Cleaning Deleting the iOS Simulator App

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

给你一囗甜甜゛ 提交于 2019-11-27 13:44:54
问题 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

Slow down internet for iOS simulator

﹥>﹥吖頭↗ 提交于 2019-11-27 13:33:25
问题 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,

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

一曲冷凌霜 提交于 2019-11-27 13:18:03
问题 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

How to reset iPhone simulator

北战南征 提交于 2019-11-27 13:00:15
My app uses the location service. To test what is happening when the user presses 'Don't allow' when the simulator asks for the permission to access the location service (when the app is started for the first time) I need to reset the simulator. This because the question was answered at the beginning of the development process with allow. So no more questions are asked. Resetting the Simulator with "Resetting Content and Settings.." don't bring back the question at the start. What I am doing wrong? neoneye Within the iPhone/iPad simulator, go to the top-menu and select " Simulator " -> " Reset

wrong frame size in viewDidLoad [duplicate]

感情迁移 提交于 2019-11-27 12:37:59
Possible Duplicate: Why am I having to manually set my view’s frame in viewDidLoad? I have universal app for iphone and ipad, two storyboards, if I run my app on the iphone simulator in viewDidLoad every frame of each element in nib is correct. But if I do it for ipad (simulator) in frame is nil, but the screen looks correct. Could you please advise me smth? Thanks. foundry It's a very similar question to ios setContentOffset not working on iPad ... And my answer is the same as there: "You should not initialise UI geometry-related things in viewDidLoad , because the geometry of your view is

How do I add images to the iOS Simulator

笑着哭i 提交于 2019-11-27 12:19:31
I have xcode 4.5.1 and want to add photos to the iphone 6.0 simulator but cant find it. I have a folder named iphone simulator but it just contains 4.3.1. It may be because some months ago I drag almost everything in the application support to my extern hard drive to save some memory. Now when I drag it back it contains the 4.3.1 which I used before. Do I have to download something on new or what should I do? Thanks in advance! Run the simulator Run Safari on the Simulator Drag a picture onto Safari running on the Simulator, this opens the image. Click and hold on the image, or tap on the

How to install iOS 7.0 and iOS 8.0 Simulators in Xcode 6.1?

限于喜欢 提交于 2019-11-27 12:19:23
I want to test my app on both iOS 7.0 and iOS 8.0. I upgraded my iPhone5 to iOS 8.1. Now the only way to test my app in these OS' are using Simulator. But after upgrading my Xcode to 6.1. I'm unable to see iOS 7.0 and 8.0 Simulators. I need to install these simulators in Xcode 6.1. Is there any way to install these Simulators in Xcode 6.1? NOTE: 1) I copy pasted these simulator SDKs from old Xcode to the Xcode 6.1's contents but it didn't work. 2) I tried installing these from Xcode > Preferences > Downloads but these doesn't show up in the list. 3) I removed all the Devices from Xcode's

How to install apps on Xcode 6 iOS Simulator

三世轮回 提交于 2019-11-27 12:01:48
问题 I'm looking for a way to install the mail application on the Xcode 6 iOS Simulator. Additionally, how do I install apps that are already public on the Appstore so that I can run them on the iOS Simulator? Is there a simple way? 回答1: The most common way to install an app in the iOS Simulator is to use Xcode to build and install it. If you have a simulator app bundle which was built by someone else (or archived), you can install it using simctl: xcrun simctl install booted /path/to/your.app