ios-simulator

How can I find my app files under iPhone Simulator folder?

*爱你&永不变心* 提交于 2019-12-04 03:28:37
How can I easily access to the folder of an app I am working on. There are too many application folders under iPhone Simulator directory, how can I access to any specific folder? You can do this programatically: NSLog(@"%@",[[NSBundle mainBundle] bundlePath]); I know of 2 great mac apps that solve your problem: SimPholders http://simpholders.com/ Simulator Folders http://nimbleworks.co.uk/blog/simulator-folders/ You can use OpenSim as an alternate tool of above mentioned. Here you can see you app name and then you can find it easily..So try to implement this. NSString *path =

How do I run an iPad Simulator in Xcode?

岁酱吖の 提交于 2019-12-04 03:21:48
I am trying to run an iPad simulator on Xcode, but currently I only have one option when I go to Xcode > Open Developer Tool > Simulator, which launches the iPhone simulator. How do I launch the iPad simulator? You should select an iPad device by navigating to Hardware/Device/[OS version if you have multiple OS versions installed]/[device] in the simulator's menu. If there are no iPad devices in the list, follow these instructions: Click on Hardware/Device/Manage Devices... Select the Simulators option on the top. Press the plus ( + ) sign in the lower-left corner. Define the name, the device

Xcode 11 - Simulator won't respond

一笑奈何 提交于 2019-12-04 03:21:42
问题 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! 回答1: According to this

Will installing XCode 4.5 remove iOS Simulator 5.1?

六眼飞鱼酱① 提交于 2019-12-04 03:03:32
I have 2 machines. On one of them I updated to xcode 4.5, but doing so uninstalled my iOS simulator for 5.1. I'm hesitant to update my other machine as I have a project that requires the 5.1 simulator. Are my assumptions correct or did I do something to remove the older simulator without knowing? You can redownload the simulator in the Xcode preferences. joe Download Xcode 4.3.3 for lion and open the dmg, and click and show package contents,and copy the Contents\Developer\platforms\iPhoneOS.platform\sdks\iPhoneOs5.1sdk folders into your xcode4.5 Contents\Developer\platorms\iPhoneOS.platform

Localization: application crashes when language is changed in simulator

淺唱寂寞╮ 提交于 2019-12-04 02:58:00
问题 In order to localize my application, I created Localizable.strings for three languages. I didn't need to localize any nib files since I'm not using any in my project. No images were localized, only the strings. In the code, I read the strings using NSLocalizedStrings(@"key", @"comment"). The Localized.strings files use UTF-16 format. The strings look like this: "Projects" = "Projekte";. When I run the app in the simulator and change the language, my application that's running in the back

Unable to boot the iOS Simulator (ios 7.1)

拈花ヽ惹草 提交于 2019-12-04 02:40:48
问题 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

Xcode 6: Keyboard does not show up in simulator

依然范特西╮ 提交于 2019-12-04 02:21:42
问题 The keyboard does not show up when I run the simulator and click in the UITextView. How do I re-enable the keyboard? It used to work but now it doesn't - I don't know what I might have clicked by accident... any tips would be appreciated! 回答1: I had the same issue. My solution was as follows: iOS Simulator -> Hardware -> Keyboard Uncheck "Connect Hardware Keyboard" Mine was checked because I was using my mac keyboard, but if you make sure it is unchecked the iPhone keyboard will always come

Xcode 6 / iOS 8 Simulator Data and Bundle folder script

青春壹個敷衍的年華 提交于 2019-12-04 01:59:09
With the latest changes to xcode 6, it looks like the .app file and document folder no longer resides in the same folder in the iPhone simulator directory. Previously, we can access the directory and .app file at /Users/me/Library/Application Support/iPhone Simulator/7.1/Applications/SomeCrpyticNumber but in Xcode 6, the simulator directory is completely different: ~/Library/Developer/CoreSimulator/Devices/CrypticNumber1/data/Containers/Bundle/CrypticNumber2/MyApp.app and ~/Library/Developer/CoreSimulator/Devices/CrypticNumber1/data/Containers/Data/CrypticNumber3/Documents where CryptNumber 1

How to use dark mode in simulator iOS 13?

余生颓废 提交于 2019-12-04 01:47:07
While I am developing the iOS app I need to test it in simulator with dark mode option so I can get more clarity about the app UI. But when I go to the Setting I am not getting option for dark mode as real device showing. In Settings , scroll down to Developer and then Dark Appearance … You can toggle the interface mode (i.e. Light / Dark) as well as adjust dynamic type setting on the fly (when the simulator is running) like this: Alternatively, you can also switch the appearance programmatically ( docs ): override func viewDidLoad() { super.viewDidLoad() #if DEBUG // change the appearance

What does com.apple.CoreSimulator.CoreSimulatorService do?

夙愿已清 提交于 2019-12-04 01:43:15
Our iOS automation tests on simulator have gone through disaster since upgrading to Xcode6. We can observe view switching slowing down, UIAutomation felt it too and often returned an empty or not fully updated app main window, you can imagine the stability. Part of the reason is that we have slow VMs, but still we need to find ways to workaround it. Then I notice there's the CoreSimulatorService process staying alive between the launches and shutdowns of simulator. So I killed it to see what change would it make: killall -9 com.apple.CoreSimulator.CoreSimulatorService After it was killed and