ios-simulator

iOS 8.1 Simulator Localization broken (NSLocalizedString)

萝らか妹 提交于 2019-11-28 03:17:16
TL;DR: It seems localization does not work with xCode 6.1 and 8.1 simulator. Workaround: Go to "edit schemes" >> "Run" (side bar) >> "Options" tab >> "Application Language" Select the language you wish to run the app on the simulator. Long Story: I've updated xCode to 6.1. The update deleted the iOS 7.x simulators and left me only with 8.x simulator. I've done the following steps: I've installed the 7.x simulator Cleaned the project Deleted the app from the simulators Deleted the derived folder for my project The project supports English and Japanese. on 7.1 simulator (5s) the localization

How to monitor network calls made from iOS Simulator

微笑、不失礼 提交于 2019-11-28 02:56:34
I am trying to monitor calls from an app to my server just like Firebug does. I could not find a way to see that in iOS Simulator or in xCode. Is there a way to do that without sniffing all the traffic? If no, what tool would you suggest? Personally, I use Charles for that kind of stuff. When enabled, it will monitor every network request, displaying extended request details, including support for SSL and various request/reponse format, like JSON, etc... You can also configure it to sniff only requests to specific servers, not the whole traffic. It's commercial software, but there is a trial,

Cannot open iPhone Control Center on simulator

笑着哭i 提交于 2019-11-28 02:56:17
问题 I'm new to iOS coming from Android. I try to run simulator and open the Control Center on it. When I swipe from the bottom to up I see that it's empty. Any ideas what's going on with my simulator? I tried at iPhoneX simulator and have the same. 回答1: Unfortunately the Simulator does not show a true Control Center. Yes, a blank screen appears, but no controls are available in there. Welcome to iOS ;] 回答2: The problem not in Xcode but in iOS 11 simulator Solved I download iOS 10 simulator and

How to use Charles Proxy on the Xcode 6 (iOS 8) Simulator?

百般思念 提交于 2019-11-28 02:46:53
It seems that the directory for the iOS Simulator has changed. It used to be in ~/Library/Application\ Support/iPhone\ Simulator/ and now it's in ~/Library/Developer/CoreSimulator/Devices/ . jonsibley Update: Charles 3.9.3+ has a built-in function to configure your iOS Simulators (i.e. installing the Charles SSL Certificate). This can be found in the Help menu within the Charles application. ( Help > SSL Proxying > Install Charles Root Certificate in iOS Simulators ) The following applies to Charles 3.9.2: Download the configuration shell script from the Charles Proxy website . Then, replace

MFMessageComposeViewController on Simulator - canSendText?

南楼画角 提交于 2019-11-28 02:43:02
问题 following situation: I want to send in app SMS. This is my code creating the MFMessageComposeViewController: -(void) showMessageComposerWithText:(NSString*)messageText telNumber:(NSString*)telNumber composeDelegate:(id)delegate { MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init]; if([MFMessageComposeViewController canSendText]) { controller.body = messageText; controller.recipients = [NSArray arrayWithObject:telNumber]; controller

Xcode Simulator: how to remove older unneeded devices?

这一生的挚爱 提交于 2019-11-28 02:34:57
I'm running Xcode 4.3.1 iOS-Simulator which originally only supports iOS 5.1. I need to test my code with iOS 4.3, so I used Xcode's "Install" feature to install it as described in "Installing Xcode with iOS 4.3 device simulator?" Now I'm finished with testing but cannot find a way to uninstall the 4.3 portions ("iPhone 4.3 Simulator" and "iPad 4.3 Simulator"). I want to reduce the clutter in the Scheme menu. No one on Apple's Xcode listserv knew the answer! EDIT: note that much has changed since Xcode 4.3, so suggest anyone reading this look at all the answers. The newest ones such as Steve

launchd_sim crashing: could not create temporary state directory

三世轮回 提交于 2019-11-28 02:21:20
The issue is fixed with recent update of Mac OSX. I am using Xcode 8 on Mac Mini running OSX El Capitan (10.11.6). When I deploy my app on simultor is shows following error messages: "launchd_sim quit unexpectedly" "Unable to boot the iOS simulator" How to resolve such type of issues? Detailed exception report: Process: launchd_sim [16545] Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/sbin/launchd_sim Identifier: launchd_sim Version: 4.0.0 (972.1.5) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: launchd

iOS Simulator display scaled incorrectly

余生颓废 提交于 2019-11-28 02:07:04
I came back to X-code after a few months break. In that time in which x-code wasn't used it was kept updated however. Now when I Launch the iOS simulator the display is scaled wrong. I have worked at home with an external monitor 1920x1080 and the simulator runs correctly. However when I run the simulator on my Retina display it looks like the image below. Ive tried resetting the simulator and settings, uninstalling and reinstalling x-code. and several other things but the display is still scaled for a 1920x1080 screen and I don't know how to change that so that its for a Retina display again.

Is there a way to run multiple iOS Simulators at once? [duplicate]

ぃ、小莉子 提交于 2019-11-28 01:48:42
This question already has an answer here: Is there a way to simulate multiple iphones using xcode/iphone sim? 10 answers For example, to test features that have several users interacting. All I've come up with is multiple OS X VM's with an iOSS in each, but that seems like a sledgehammer missing the obvious right in front of me? AFAICT, it does not support multiple instances running at the same time. I tried two methods, but both failed. $ open -n /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app LSOpenURLsWithRole() failed with error -10829 for the

Can't scale device window in iOS Simulator

我只是一个虾纸丫 提交于 2019-11-28 01:48:32
On the 24" iMac I'm using at work I cannot scale the iOS Simulator's window. The 100% and 50% menu entries are greyed out (and the keyboard shortcuts don't work either.) On my Mac Mini at home, it's fine. I've searched high and low for someone with a similar problem, and can't find anything logged. Any ideas? The options will only be there if your screen is not large enough to show the window at 100%. Now It's more flexible with Xcode 9+ Simulator. You can pick & drag any corner of simulator to resize it and set it according to your requirement. Look at this snapshot. Note: With Xcode 9.1+,