ios-simulator

AVAssetExportSession is nil iPhone 7 - Plus Simulator

社会主义新天地 提交于 2019-12-22 05:43:13
问题 AVAssetExportSession works fine on iPhone 6 and below but not on iPhone 7, iPhone 7 Plus simulator. Xcode 8.0 This code return nil in exportSession, when is executed on iPhone 7 - Plus Simulator, but not in iPhone SE, iPhone 6s ... Simulator. Please find the below code for more information. NSURL *inputURL = [[NSBundle mainBundle] URLForResource: @"example" withExtension:@"m4a"]; AVURLAsset *assetAV = [AVURLAsset URLAssetWithURL:inputURL options:nil]; AVAssetExportSession *exportSession = [

Why doesn't ios system sound play in simulator?

眉间皱痕 提交于 2019-12-22 04:43:07
问题 I am trying to play a system sound. Using Xcode 6 Beta 4. Here is the code: func playKeyClick() { let filePath = NSBundle.mainBundle().pathForResource("Tock", ofType: "aiff") if NSFileManager.defaultManager().fileExistsAtPath(filePath) { println("file exists") } let fileURL = NSURL(fileURLWithPath: filePath) var soundID:SystemSoundID = 0 AudioServicesCreateSystemSoundID(fileURL, &soundID) AudioServicesPlaySystemSound(soundID) } It works fine on devices but does not play in the simulator. I

Default.png shows in simulator but not on real device iphone?

Deadly 提交于 2019-12-22 04:19:19
问题 i have added a splash screen to my application by adding Default.png. the splash screen works fine in the simulator but not showing on real device 回答1: Check the case of the file name. Default.png, default.png, Default.PNG and DEFAULT.png are all different files on the device, but not in the simulator. 回答2: The file name must be Default.png (with a capital D). Also, do a clean/rebuild of the entire project to ensure the most recent version of the file is being included in the project. 回答3:

XCode 4.3.1 iPad simulator

我怕爱的太早我们不能终老 提交于 2019-12-22 03:43:21
问题 Does anybody know why home button is missing for iPad simulator only? 回答1: See http://openradar.appspot.com/11017007 for the real answer: "Engineer who removed the bezel from scaled iOS Sim not thanked enough, probably" 回答2: Its a simple redesign to make more space for the simulator screen. You can trigger the home button from the menu Hardware > Home Or using the shortcut: ⇧ ⌘ H . 回答3: I don't think this is an enhancement at all. This is by far a notorious bug and a bad one. I know that home

Can't run iPhone simulator - file “Logs” couldn't be saved

时光怂恿深爱的人放手 提交于 2019-12-22 02:34:07
问题 iPhone simulator doesn't work. Displays error message: The file “Logs” couldn’t be saved in the folder “Library” because a file with the same name already exists. When /Logs dir is empty, simulator creates subdir CoreSimulator/[AppID] and dispalys the above message. It's fresh OS X Yosemite, installed on new Mac Mini. Any idea how to fix this issue ? 回答1: Try to reset the Ios Simulator settings it worked for me! iOS Simulator -> Reset Content and Settings... 回答2: Just to make it more clear

Can't run iPhone simulator - file “Logs” couldn't be saved

主宰稳场 提交于 2019-12-22 02:32:13
问题 iPhone simulator doesn't work. Displays error message: The file “Logs” couldn’t be saved in the folder “Library” because a file with the same name already exists. When /Logs dir is empty, simulator creates subdir CoreSimulator/[AppID] and dispalys the above message. It's fresh OS X Yosemite, installed on new Mac Mini. Any idea how to fix this issue ? 回答1: Try to reset the Ios Simulator settings it worked for me! iOS Simulator -> Reset Content and Settings... 回答2: Just to make it more clear

Does the iOS-Simulator use multiple cores?

泪湿孤枕 提交于 2019-12-22 02:29:27
问题 Now that the iPad 2 comes with two CPU cores, the debugging of threading issues will be more important than ever. Now I'm wondering: Does the iOS-Simulator actually use the multiple cores available on the Mac? 回答1: To run iOS programs on the simulator, Xcode compiles your program for the Intel processor. The simulator does not emulate an ARM processor, so exact execution of threaded code will differ from an iOS device and the simulator. Regardless of how many cores the iOS simulator uses,

Switch between CarPlay and regular window in iOS simulator

早过忘川 提交于 2019-12-21 23:34:03
问题 I am testing an app that has some CarPlay functionalities. I activated the CarPlay window in the simulator by changing the default options using defaults write com.apple.iphonesimulator CarPlay -bool YES which works perfectly when it comes to starting up the CarPlay windows, either when the simulator starts automatically after the application is compiled in debug or if I manually open up the CarPlay window through Hardware -> External Displays -> CarPlay when the app is already running in the

iPhone camera in simulator

倾然丶 夕夏残阳落幕 提交于 2019-12-21 22:34:40
问题 Is there a way to test code using iPhone camera in the simulator? (Somebody must have written something - you could have a replacement component that simulates the camera) 回答1: In the simulator there are some sample photo library images that you can access. Use: UIImagePickerControllerSourceTypePhotoLibrary 回答2: If you want to test your actual camera API usage, you would have to closely emulate a fairly large non-trivial portion of the AVFoundation framework. If you just want to test the rest

Trouble converting MapKit user coordinates to screen coordinates

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 20:55:55
问题 OK this is actually three distinct questions in one thread: 1) I'm using: - (void)viewDidLoad { [super viewDidLoad]; [mapView setFrame :CGRectMake(-100,-100,520,520)]; [mapView setAutoresizesSubviews:true]; mapView.showsUserLocation = YES; locManager = [[CLLocationManager alloc] init]; locManager.delegate = self; [locManager startUpdatingLocation]; [locManager startUpdatingHeading]; [bt_toolbar setEnabled:YES]; } - (IBAction) CreatePicture { CLLocationCoordinate2D coord =