ios-simulator

xcode ios project taking long time to compile and run?

[亡魂溺海] 提交于 2019-12-04 06:49:20
My application is taking very long time around 10 minutes to compile and run on simulator. The application was running fine initially however after adding SUP static library it is taking very long time to build. xcode version:4.6 I have tried resetting the simulator and restarting the machine Please help. fons As I answered to a similar question , I wrote an extensive blog post about how I improved iOS development cycle at Spotify: Shaving off 50% waiting time from the iOS Edit-Build-Test cycle It boiled down to: 1) Stop generating dSYM bundles. 2) Avoid compiling with -O4 if using Clang. 来源:

Use the UIImagePickerController on a iphone simulator

隐身守侯 提交于 2019-12-04 06:29:09
I have the method, that take photos from gallery or from the camera -(IBAction) getPhoto:(id) sender { UIImagePickerController * picker = [[UIImagePickerController alloc] init]; picker.delegate = self; if((UIButton *) sender == choosePhotoBtn) { picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; } else { picker.sourceType = UIImagePickerControllerSourceTypeCamera; } [self presentModalViewController:picker animated:YES]; } But when i run it on the simulator, code doesnt work. And it doesnt work in picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum and

Unable to boot device in current state : Creating

谁说我不能喝 提交于 2019-12-04 06:18:38
I'm getting an error while running an application in Xcode 6 for iOS 8 simulator. The error states that 'Unable to boot device in current state: Creating' . I have tried to reset the content of simulator. Also, I have rebooted mac after installing Xcode 6. What might be fix? This is mentioned in the Xcode 6.1 Release Notes Simulated devices can get stuck in a “Creating” state in some circumstances. This problem can occur either when creating new devices or when resetting existing devices after having renamed Xcode.app. If this this problem occurs, reboot your system and reset the device from

iOS - Xcode stopped displaying iOS version for the simulator [duplicate]

大城市里の小女人 提交于 2019-12-04 05:51:07
问题 This question already has an answer here : Seeing a guid as part of the simulator choices (1 answer) Closed 4 years ago . Very confused why my Xcode 6.4 suddenly stopped showing the iOS version for the simulators. Now, it just displays some identifier for each simulator and it is very annoying and hard for me to navigate between simulators. I also have the Xcode 7 - Beta 4 installed. But i do not think that is the reason though. Because, earlier i've had Xcode 7 Betas along with Xcode 6.x and

Why won't my Collection View Cells display in the iPhone Simulator?

☆樱花仙子☆ 提交于 2019-12-04 05:37:50
问题 I am trying to programmatically create a Collection View with six cells. The iPhone Simulator in Xcode 8 told me that my build was successful. There is still an error though. Any help spotting the bug or bugs that are causing my cells not to display in the Simulator is greatly appreciated. (I put the Collection View directly into the IB from the Object Library. Also, I want each cell to occupy the entire size of the Collection View, hence displayedCellDimensions , because the user will segue

iOS Simulator video recording with 'xcrun simct' give error

吃可爱长大的小学妹 提交于 2019-12-04 05:15:10
问题 While checking Xcode 8.2 changes I found that now we can record simulator using Terminal. So I am trying to record video from iOS simulator as describe in this Apple Document. Taking a Screenshot or Recording a Video Using the Command Line Command: xcrun simctl io booted recordVideo demoVideo.mp4 Error: 2016-12-20 15:44:27.206 simctl[6434:984477] *** Assertion failure in +[SimDisplayVideoWriter videoWriter], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-338.16

Audio file not working on device but it is working on simulator

非 Y 不嫁゛ 提交于 2019-12-04 04:59:10
问题 I am playing audio in iphone app but problem is that it works fine on simulator but it is not working on device here is my code it just closes the app when this code runs. NSString*thePath=[[NSBundle mainBundle] pathForResource:fileName ofType:@"MP3"]; NSURL*url=[NSURL fileURLWithPath:thePath]; //NSURL *url = [NSURL URLWithString:@"http://celeritas-solutions.com/pah_brd_v1/productivo/1.mp3"]; mp = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [[mp moviePlayer] prepareToPlay];

iOS Simulator does not play sound

谁说我不能喝 提交于 2019-12-04 04:18:06
问题 On XCode 6, everything works well on device, but on simulator, sound is not played. There is my swift code : var url = NSURL(string: "http://my.url.com/sound.mp3") var data = NSData(contentsOfURL: url!) // Removed deprecated use of AVAudioSessionDelegate protocol AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback, error: nil) AVAudioSession.sharedInstance().setActive(true, error: nil) self.player = AVAudioPlayer(data: data, error: nil) self.player.prepareToPlay() self

Submitting iPhone app to app store without testing on a device

☆樱花仙子☆ 提交于 2019-12-04 04:01:02
问题 I've tested my app thoroughly on the simulator, but I don't have an iphone/ipad/ipod touch on which to test the app. Are there likely to be bugs that dont expose themselves until I test it on the device? if i had a macbook, id take my code along with me and meet up with a friend or a stranger to test the app, but im working with a mac mini :( Thanks for the input. 回答1: You will really want to pick up a device, an iPod Touch isn't that expensive, and you can even get iPhone 3GSs for less than

SKStoreReviewController requestReview doesn't prompt for review

為{幸葍}努か 提交于 2019-12-04 03:52:59
I want to use the new feature added in 10.3 to ask users for reviews. In the docs , apple states that when this method is called "a rating/review request view is displayed". I am getting the rating view( where you can select how many stars to rate), but I am not able to write a review. I have to mention that I only tested in simulator. Is this the correct behaviour? In development mode the “Submit” button is disabled. Once your app is in the App Store, this button becomes active and the user is given the option to write a review after they hit “Submit”. On development mode it always displays