ios-simulator

How to get UIAutomation, Simulator, and Xcode Debugger Running at the same time?

懵懂的女人 提交于 2019-12-03 08:41:03
Can anyone point me to the documentation on how to make Instruments run UIAutomation scripts and start the iPhone application with the debugger running in the Simulator? Constraints: I only have iPhone 3g hardware to test with and debugging against the device with UIAutomation just does not reliably work. Normally the test scripts are just ran to make sure everything passes, but now a weird bug exists that only gets triggered when the UIAutomation script runs (which is a good thing). The bug cannot be duplicated in manual operation. There does not seem to be anyway to attach Instruments

Safari - iPhone simulator debugging (via “develop”) not showing anymore

本小妞迷上赌 提交于 2019-12-03 08:40:46
问题 I am using iPhone simulator to run a UIWebview, and Safari browser (on my mac) in order to debug the js / html / css code (via "develop" menu -> iPhone Simulator -> choosing my webview). Yestarday, the iPhone-simulator option disappeared from my "develop" menu: (as you can see, the "iphone-simulator" is missing here (it is opened in the background and working...) Any idea? Edit: I am using iOS 7 iPhone simulator + Safari 7 Edit 2: Just tried opening a website on iphone-simulator's Safari

Xcode 6.4 “Could not download and install iOS 8.3 simulator”

倾然丶 夕夏残阳落幕 提交于 2019-12-03 07:45:54
问题 I've been trying to install iOS simulators 8.3 & 8.4 on Xcode 6.3.2 an 6.4 beta respectively. In the first case is not even an option to download this simulator while in Xcode 6.4 it shows an error "Could not download and install iOS 8.3 Simulator. Authorization is required to install the packages". I've searched the web but I could not find anything so I tries reinstalling Xcode from Apple developer website as well as from the app store with no change at all. The only simulator I can use is

Xcode cannot run using the selected device after upgrade to Xcode 5.0

久未见 提交于 2019-12-03 07:36:47
问题 I upgraded to xcode 5.0 today. I then pressed play to run my project in the iOS simulator. This initially worked. Then I decided that I wanted to run the profiler. When I did that, I got the message: Xcode cannot run using the selected device. Choose a destination with a supported architecture in order to run on this device. I looked at a couple past posts on this problem and decided to do a Clean and Build. Now I can no longer run in the profiler or the simulator. I consistently get the

Does iPhone 6 / 6 Plus simulator supports changing of Display Zoom mode?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 07:34:25
问题 How to change Display Zoom feature in iPhone 6 and 6 Plus simulators? Original iPhone 6 and 6 Plus have this feature in Settings -> Display & Brightness -> Display Zoom (View) with values Standard and Zoomed. 回答1: Display Zoom is not available in the simulator (as of Xcode 6.0). 回答2: The answer is correct, Display Zoom is not available as an option in the current Xcode 7 iOS simulator settings. However , it is actually possible to 'simulate' Display Zoom when running your app in the simulator

iOS Simulator takes extremely long time to boot first time

早过忘川 提交于 2019-12-03 07:12:48
I'm trying to run an iOS simulator (Xcode 7.0.1, OS X Yosemite). However, the first time I run the simulator, it takes a very long time to boot up (80-120 seconds), which is causing my automation testing to time out. If I close the simulator and re-launch the same one, it will boot up in about 5-8 seconds. Launching a different device will cause the long boot up time again. I have tried resetting the content and settings of the simulator, deleting and re-downloading simulators, and uninstalling and reinstalling Xcode. This machine is a Parallels Desktop VM running on a 2012 Mac Mini. While I

IPhone 6 plus simulator scaling [duplicate]

*爱你&永不变心* 提交于 2019-12-03 06:34:51
This question already has answers here : How to resize the iPhone/iPad Simulator? (11 answers) Even after scaling the IPhone 6 plus simulator to 50% (No option to scale less than this), the size is still big to work with it. How can i scale down it to 25% or less ? Run this in a terminal: defaults write ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale "0.4" You may vary "0.4" to your liking. Then, in simulator, hardware-> devices-> iphone 6 plus. KonDeichmann You can scale iOS simulator to desire scale (I tried from .2 to 1.4 ) and it worked for me. To do this you have

Where does the iOS Simulator save screen shots?

谁都会走 提交于 2019-12-03 06:26:19
问题 I can't find iOS simulator screenshots (supposedly created using cmd + S ) since updating to Xcode 4.3 (running on 10.7.3 Lion). They aren't in ~Library/Application Support/Developer/Shared/Xcode/Screenshots . Presumably they moved when Xcode moved from Developer , but Spotlight can't tell me where they are either. 回答1: iOS Simulator screen shots are saved to your desktop ( ~/Desktop ). The file names are of the form iOS Simulator Screen shot Feb 28, 2012 12.16.23 PM.png . You can also choose

How to generate iPhone simulator build or .zip file for submit in Facebook for review in iOS

给你一囗甜甜゛ 提交于 2019-12-03 06:13:56
问题 I submit my_app.ipa file to Facebook but its rejected by Facebook. And send me this message "Notes from our review team iPhone Can you please resubmit for review providing a simulator build of your iOS app, and not an .ipa file? I'm reviewing your submission in an iOS simulator that needs your app to be built following these instructions: (.zip) https://developers.facebook.com/docs/ios/creating-ios-simulator-build-for-review " But i was enable to create .zip file of simulator build. and i

NSBundle pathForResource returns nil with subdirs

邮差的信 提交于 2019-12-03 05:48:43
I have a bunch of directories and files in my app, for instance images/misc/mainmenu_background. . I'm running the following code in the "iPad Simulator 3.2": NSString *images = [[NSBundle mainBundle] pathForResource:@"images" ofType:nil]; NSString *images_misc = [[NSBundle mainBundle] pathForResource:@"images/misc" ofType:nil]; NSString *images_misc_file = [[NSBundle mainBundle] pathForResource:@"images/misc/mainmenu_background.png" ofType:nil]; After this call, images contains the path /Users/wic/Library/Application Support/iPhone Simulator/3.2/Applications/8F67150B-71E6-4735-8CC6