ios-simulator

Where can I download the iOS 10 simulator runtime file?

被刻印的时光 ゝ 提交于 2019-11-30 00:37:34
I want to test my apps in the iOS 10 simulator, but I'm not sure where to get the .runtime file for iOS 10. I don't see a download for it under Components in Xcode 8. Where can I download the .runtime file for iOS 10 (if it exists)? Thanks in advance! EDIT: I forgot to mention: As I was trying to fix another problem (before I asked this question), I ended up deleting all of my runtimes and redownloading them (except for iOS 10). I ran into this issue earlier today. After installing Xcode - beta, my simulator was still only displaying iOS simulators 9.3 and below. What eventually ended up

iOS Simulator would like to access microphone every time

╄→гoц情女王★ 提交于 2019-11-30 00:19:45
Since the update to macOS Mojave, I get this alert every time I run on the simulator: "<AppName>" would like to access the microphone. It is stopping the simulator from running! How can I stop it? What worked for me was to change the Hardware Audio Input to Internal Microphone . What I believe happen is that when you give access it changes the audio input to your headphones or macbook. My concern was that I am watching a tutorial and it keeps changing the audio frequency and it kept bothering me. My app does not use microphone, it only plays videos. I was able to fix the alert popup by

Duplicate iPhone Simulators Appeared on My Xcode

人盡茶涼 提交于 2019-11-30 00:05:25
A duplicate iPhone simulator just appeared after I deleted ~/Library/Developer/Xcode/CoreSimulator folder How to solve this problem? I've tried to delete ~/Library/Developer/Xcode folder and ~/Library/Application Support/iPhoneSimulator folder. But all failed. It may happen because of multiple Xcode installed or during Xcode upgrades. The only thing that need to be done is to open Xcode -> Window -> Devices select duplicated device and delete it. I have a same issue after installing Xcode beta version. I found that there are several solution to fix this issue. 1. snapshot https://github.com

Xcode: build and run for both iOS Simulator and Device in one step?

柔情痞子 提交于 2019-11-29 23:34:15
问题 I need to get into the practice of better testing for both iOS 5 and 6. I'd like to press one button (or one keyboard shortcut) and have Xcode build and run my app on both the iOS simulator and my iPhone device at once. Is this possible? 回答1: I don't think you can do it by GUI of Xcode. You probably need to launch the application from the command line. Which means create a script by any language you know (shell, python, ruby, etc...) Here is some information: check the link1, and link2, and

iPhone simulator folder not in Application Support

吃可爱长大的小学妹 提交于 2019-11-29 23:05:31
I am creating an application that write some data to the database. For checking I need to open the database in applications. I think it should be in ~/Library/Application Support/iphone simulator.... I have not found the iphone simulator folder in Application Support.I have installed ios 4.2, and simulator is working properly. Where can I find it? jki Xcode versions 3.x-5.x Simulator usually is installed together with SDK so most probably you should look (e.g., if you installed Xcode 3.1 and SDK 4.3 in their default locations) within: /Developer/Platforms/iPhoneSimulator.platform/Developer

iOS Simulator 7.1 crash running on Yosemite with weak linked new frameworks (Symbol not found: _objc_isAuto)

主宰稳场 提交于 2019-11-29 22:58:42
I have just updated to xCode 6.1 and had to reinstall my iOS 7 simulators. I can run my app on all the simulators apart from the 5s iOS 7.1 sim. I get this crash dyld: Symbol not found: _objc_isAuto Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (lldb) What gives? Any ideas why this sim crashes? Thanks This issue can

Embed youtube video in iOS App

天涯浪子 提交于 2019-11-29 22:42:47
问题 I want to embed a youtube video into a webviewer whenever I press a button. I have this code - (IBAction)testBtn:(id)sender { NSString *code = @"<iframe width=\"560\" height=\"315\" src=\"//www.youtube.com/embed/1iBIcJFRLBA\" frameborder=\"0\" allowfullscreen></iframe>"; [[self youtubeWebPlayer]loadHTMLString:code baseURL:nil]; } My problem is, whenever I press the button nothing happens. The webviewer remains blank. I have put breakpoints in the code to double check that the code is called

Why there is no “Home” button in iPad simulator in iOS 5.1 SDK?

眉间皱痕 提交于 2019-11-29 22:34:29
How to simulator the action of "press the home button"? Noah Witherspoon Use the Hardware > Home menu item, or hit Cmd + Shift + H Works great. COMMAND+SHIFT+ H(double tap) I want to say it's because they want us to remember the new resolution when debugging. edit: My answer is to the title directly Junaid Afzal iPhone Simulator Key Shortcuts Command-Left Arrow Rotate left Command-Right Arrow Rotate right Command-Shift-H go home. leave the application and return to the springboard home screen Command-L simulates locking the phone 来源: https://stackoverflow.com/questions/9613262/why-there-is-no

iOS: How to debug “freshly launching” an app from a URL

浪子不回头ぞ 提交于 2019-11-29 22:03:18
When launching an app from a URL, there is a distinction between whether the URL is freshly launching an app, or if it's resuming an app that has been put into a suspended state. My question is, how do I debug the process of a "fresh launch" from a URL? Hitting "Run" in Xcode automatically opens the app. Then, I have to suspend the app to reach Safari and access my test site. But if I close my suspended app, Xcode is no longer attached to it and I'm unable to debug. Lian van der Vyver These steps can be followed on the device. Founded at this link . Run the app from Xcode to install it on your

iOS Simulator crashes after boot with “available but has no defaultDisplay”

China☆狼群 提交于 2019-11-29 20:55:05
While running a project into the simulator, it crashes after booting: Crash: 'NSInternalInconsistencyException', reason: 'Device <redacted>, Booted) is available but has no defaultDisplay' I already cleaned the project files and changed the iOS image but it crashes anyway. Any clue? ricardopereira Close all simulators and just run sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService to restart the service. All simulators will launch as usual. 来源: https://stackoverflow.com/questions/51708445/ios-simulator-crashes-after-boot-with-available-but-has-no-defaultdisplay