ios-simulator

iOS Simulator does not play sound

天大地大妈咪最大 提交于 2019-12-01 20:48:42
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.player.delegate = self self.player.volume = 1 self.player.play() There is the log : ERROR: 98: Error '

Xcode 11 - Simulator won't respond

余生颓废 提交于 2019-12-01 20:10:59
Ever since I updated to Xcode 11, the simulator freezes intermittently. Specially when the keyboard is brought to focus. I don't think it has anything to do with memory or any hardware specs of my Mac since it does not crashes, just doesn't respond to any events. The only solution so far is to rebuild again and again the app until the touch on the textfield magically responds again. Has anyone faced the same problem? Any ideias on what might be causing it? Thank you! According to this post in Apple's developer forum it's a bug in the simulator. A workaround is to disable to Pasteboard sync in

iOS 10.1 Simulator shows “Application May Slow Down Your iPhone”

自古美人都是妖i 提交于 2019-12-01 18:06:48
When running an app for the first time from Xamarin Studio on an iOS 10.1 Simulator, I got the following message: app name May Slow Down Your iPhone The developer of this app needs to update it to improve its compatibility. The app runs normally, and the message does not appear when I run it for the second time. How can I get rid of this message? It turned out that the app was only built for the i386 architecture and not for the newer x86_64 one. After changing this in the build settings (to "i386 & x86_64", though I suppose "x86_64" would help as well) it didn't occur anymore. Ref: https:/

iOS 10.1 Simulator shows “Application May Slow Down Your iPhone”

微笑、不失礼 提交于 2019-12-01 17:30:48
问题 When running an app for the first time from Xamarin Studio on an iOS 10.1 Simulator, I got the following message: app name May Slow Down Your iPhone The developer of this app needs to update it to improve its compatibility. The app runs normally, and the message does not appear when I run it for the second time. How can I get rid of this message? 回答1: It turned out that the app was only built for the i386 architecture and not for the newer x86_64 one. After changing this in the build settings

Enable one handed mode in iPhone 6 simulator?

一曲冷凌霜 提交于 2019-12-01 16:52:53
The iPhone 6 Plus has a "one handed mode" that Apple describes as "Keep everything within reach" on their iPhone design page. The mode is enabled by double touching (but not pressing) the home button. When enabled the screen shrinks to roughly half its normal height. Is there a way to enable this mode in simulator for testing how it looks and transitions? I'm running Xcode 6 GM and have not been able to uncover anything. Worst case, can someone post the exact dimensions on device so it can be emulated via the resizable iPhone simulator? Update: According to John Gruber's review , the feature

In Xcode 6, how do I use the hardware keyboard but display the software keyboard in the iOS simulator

女生的网名这么多〃 提交于 2019-12-01 15:37:46
In Xcode 6, the iOS simulator seems to either show no keyboard, meaning you can type but can't see the positioning and effect of the software keyboard, or it shows the software keyboard, meaning you can see it on the screen, but can't type on it - and typing on the soft keyboard with the mouse is really slow! How do I get the old behaviour back, where you can see the software keyboard, but type on the hardware one? Go to the simulator's Hardware menu. Make sure Connect Hardware Keyboard is checked. Choose Toggle software keyboard By default the hardware keyboard is connected, but the software

Detox: iOS Simulator how to confirm alert message

无人久伴 提交于 2019-12-01 15:34:21
I am using Alert from react-native. How do I get detox to press the "Log out" button on the alert message? I tried using await element(by.text('Log out')).tap(); But I get "Multiple elements were matched" error. Presumably it finds 3 elements with same label. The original button with label "Log out" used to trigger the alert message, the alert message title, and the alert message button I want detox to press. Error Trace: [ { "Description" : "Multiple elements were matched: ( "<UILabel:0x7fe7964db910; AX=Y; AX.label='Log out'; AX.frame={{41, 234}, {238, 20.5}}; AX.activationPoint={160, 244.25}

Reload app in iOS simulator using Command-R not working

萝らか妹 提交于 2019-12-01 15:07:25
问题 I am using TabBarIOS component in React native. If I press Command-R, the reload of the app is not happening. I use the "Shake Gesture" to show the menu and then click Reload on the context menu to reload the app. Is there a way to get Command-R to work with TabBarIOS component in React native? 回答1: When I had this problem, I had it from the beginning so it probably wasn't due to a specific component. However, it might work for you, too: With the iOS Simulator in focus, select the menu item

Unable to boot the iOS Simulator (ios 7.1)

萝らか妹 提交于 2019-12-01 14:51:09
I am facing a problem. When I try to run the simulator iPhone 5s (iOS 7.1) a message pops up saying " Unable to boot the iOS Simulator ". Though if I run the iPhone 5 or iPhone 4s simulators ( iOS 7.1 ) or iPhone 5s ( iOS 8.3/8.4 ) all work fine. I am running OS X Yosemite (10.10.5), Xcode 6.4 and iOS simulator iPhone 5s ( iOS 7.1 ). Update : CoreSimulator.log: Error Domain=NSPOSIXErrorDomain Code=60 "Unable to boot the iOS Simulator." UserInfo=0x7ffe8d94f990 {NSLocalizedDescription=Unable to boot the iOS Simulator., NSLocalizedFailureReason=launchd failed to respond.} DiagnosticReports:

UITextField Crash in Simulator not in iPhone 4 (4.2)

别来无恙 提交于 2019-12-01 14:44:52
I'm facing a strange issue and have no idea how to solve it. I have in my app a simple viewcontroller with 3 textfield. I have define them as IBOutlet in my .h and linked them with the file's owner. Two of them are define with default Keyboard, the other use phone pad keyboard. When i Try to edit the phone field (phone pad keyboard) it's ok. Keyboard appear, field can be modify. When i try to edit one of the 2 others, then the app crash for the reason :"Terminating in response to SpringBoard's termination." I did not receive memory warning. This works fine if i try it on the iPhone 4 iOS 4.2