ios-simulator

Importing AddressBook data into the iPhone Simulator

寵の児 提交于 2019-11-28 17:16:56
Is there an easy way to import AddressBook data into the iPhone Simulator? Right now my only assumption is to manually modify the SQLite files found in the /Library/Application Support/iPhone Simulator/User/Library/AddressBook . I was looking for the exact solution, and this worked perfectly for me on a non-jailbroken phone. It works by extracting your iPhone address book from an unencrypted backup. Quit the iOS Simulator Download iPhone/iPod Touch Backup Extractor Run it, and select the last option "iOS Files" Create a folder on your desktop and extract all files to that folder When complete,

GPX files for iOS Simulator [closed]

末鹿安然 提交于 2019-11-28 17:11:46
Where I can find GPX file of any region that I can import to my iOS Simulator? iOS simulator does contain only static locations around the world (from XCode) or walk/bike/car drive in simulator itself. This is not good enough for unit testing or other specyfic cases. Schema for GPX file: http://www.topografix.com/GPX/1/1/gpx.xsd Is there a database or hidden option in Google maps to get location? You create a route and generate a gpx file here - http://www.bikehike.co.uk/mapview.php On another note it might help, are you aware the simulator can simulate movement if you run the simulator then

FBSOpenApplicationErrorDomain error 1

邮差的信 提交于 2019-11-28 17:10:47
I'm trying to run my iOS app that was migrated from Swift 1.2 to Swift 2.0 in Xcode 7 using iPhone Simulator (any), I'm getting the following error: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.) I already tried to reset simulator settings and content, quit Xcode, clean project, etc. I had the same error after updating Xcode to v7.0. After few hours struggling, I found that there was some empty environment variable setup to be passed for Run action in my active scheme (have no idea why it was there). Removing this empty environment variable resolved the issue

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

倾然丶 夕夏残阳落幕 提交于 2019-11-28 17:10:07
问题 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? 回答1: 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

How to permanently fix Xcode 5 SpringBoard failed to launch application with error: -3 [duplicate]

a 夏天 提交于 2019-11-28 16:56:59
This question already has an answer here: iPhone Simulator: SpringBoard failed to launch application with error: 7 22 answers Launching apps from Xcode 5 to the iOS simulator (multiple OS versions) fails with SpringBoard failed to launch application with error: -3 . I can get around the problem by 'turning it off and back on again' (quitting the simulator and relaunching, uninstalling and redeploying the app, etc.), but it seems to come back again later and in other projects. Can someone help me understand what the real problem here is and if there is a permanent fix? I don't know why, but on

How to change time and timezone in iPhone simulator?

☆樱花仙子☆ 提交于 2019-11-28 16:35:54
How do I change time and time zone in the iPhone simulator? nduplessis I'm guessing it uses your system timezone, so changing the TZ in System Preferences would probably do the trick Restart the Simulator after changing the system date time preferences and you shall see the changes reflected. It worked for me. It would be useful if Apple provided a "Simulate date" as they provided a "Simulate Location" menu. What I do is set a breakpoint immediately after getting the date (saving it in a variable) and then modify the value. Or just modify the spot where I check for a date change and make it

All exception break point is stopping for no reason on simulator

ε祈祈猫儿з 提交于 2019-11-28 16:29:29
This is very annoying, every time I'm trying to debug on the simulator with "all exception break point", app stops for no reason on this line: return UIApplicationMain(argc, argv, nil, NSStringFromClass([STAppDelegate class])); Did any one else found him self struggling with this issue? Thanks! EDIT Back trace on first throw: thread #1: tid = 0x1d96b, 0x36fbf540 libc++abi.dylib`__cxa_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 3.2 frame #0: 0x36fbf540 libc++abi.dylib`__cxa_throw frame #1: 0x306975cc libFontParser.dylib`TFileDescriptorContext::TFileDescriptorContext(char

Xcode 5 - “iOS Simulator failed to install application” every time I switch simulators

大憨熊 提交于 2019-11-28 16:26:51
Using Xcode 5 GM, anytime I switch to the 5.1, 6.0 or 6.1 simulators to test, I get the error "iOS Simulator failed to install application." When I reset the simulator it works, but this is getting very tiring. Anybody have a permanent fix or workaround? Looks like this is a known issue. From the Xcode 5 release notes : After switching the minimum deployment target of an application from iOS 7.0 to a release prior to iOS 7.0, building and running the application may fail with the message “iOS Simulator failed to install the application.” Go to the iOS home screen, click and hold the

Where are iOS simulator screenshots stored?

时光总嘲笑我的痴心妄想 提交于 2019-11-28 16:26:24
I have saved some screenshots in the iPhone Simulator running iOS 5, but I can't find them. I had this problem before, and it took me frickin' ages to find them in the file system. Is this so simple that I am just a dullard, or does no-one use this feature or what? I know I can get the screenshots off my real phone, but I don't want retina screenshots - I want normal screenshots. If you create screenshots from within the simulator using File -> Save Screen Shot (Command-S), those files end up on the Desktop as something like: iOS Simulator Screen shot Apr 22, 2012.png . Under Xcode 6 & newer,

iPhone/iPad browser simulator? [closed]

家住魔仙堡 提交于 2019-11-28 16:16:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I need to see how my webpages are looking on an iPhone and iPad on my windows desktop. Is this possible? A quick search yielded some iPhone testing sites, which seemed like what I wanted. However, they are wildly inaccurate when I compared against my own iPhone! I really need something that is as close to 100%