ios-simulator

Set the location in iPhone Simulator

放肆的年华 提交于 2019-11-26 00:58:47
问题 How can I set the location (as it\'s picked up in CoreLocation services) in the iPhone Simulator? 回答1: As of iOS 5, the simulator has a configurable location. Under the Debug menu, the last entry is "Location"; this gives you a sub menu with: None Custom Location Apple Stores Apple City Bicycle Ride City Run Freeway Drive Custom Location lets you enter a Lat/Long value. Bicycle ride, City Run, and Freeway Drive are simulation of a moving location (in Cupertino, of course). Of course, this

An error was encountered while running (Domain = LaunchServicesError, Code = 0) [duplicate]

蓝咒 提交于 2019-11-26 00:44:02
问题 This question already has answers here : Unable to run app in Simulator : An error was encountered while running (Domain = LaunchServicesError, Code = 0) (19 answers) Closed 2 years ago . I received an error (Domain = LaunchServicesError, Code = 0) when trying to launch my app in the iOS Simulator with Xcode 6. I looked for solution in google, but I didn\'t find anything practical. What does this error mean? 回答1: This error indicates that there was a problem with installation. Unfortunately,

Error Domain=NSURLErrorDomain Code=-1005 “The network connection was lost.”

自古美人都是妖i 提交于 2019-11-26 00:06:08
问题 I have an application which works fine on Xcode6-Beta1 and Xcode6-Beta2 with both iOS7 and iOS8. But with Xcode6-Beta3, Beta4, Beta5 I\'m facing network issues with iOS8 but everything works fine on iOS7. I get the error \"The network connection was lost.\" . The error is as follows: Error: Error Domain=NSURLErrorDomain Code=-1005 \"The network connection was lost.\" UserInfo=0x7ba8e5b0 {NSErrorFailingURLStringKey=, _kCFStreamErrorCodeKey=57, NSErrorFailingURLKey=, NSLocalizedDescription=The

Installing a configuration profile on iPhone - programmatically

前提是你 提交于 2019-11-25 23:54:07
I would like to ship a configuration profile with my iPhone application, and install it if needed. Mind you, we're talking about a configuration profile, not a provisioning profile. First off, such a task is possible. If you place a config profile on a Web page and click on it from Safari, it will get installed. If you e-mail a profile and click the attachment, it will install as well. "Installed" in this case means "The installation UI is invoked" - but I could not even get that far. So I was working under the theory that initiating a profile installation involves navigating to it as a URL. I

iPhone 6 Plus resolution confusion: Xcode or Apple's website? for development

不问归期 提交于 2019-11-25 23:47:47
问题 Apple\'s website claims that the resolution is 1080p: 1920 x 1080 However, the launch screen required by Xcode (8.0 GM launched today) is 2208 x 1242. Who\'s right? 回答1: The iPhone 6+ renders internally using @3x assets at a virtual resolution of 2208×1242 (with 736x414 points), then samples that down for display. The same as using a scaled resolution on a Retina MacBook — it lets them hit an integral multiple for pixel assets while still having e.g. 12 pt text look the same size on the

Seeing black bars at the top and bottom of the iPhone X Simulator

白昼怎懂夜的黑 提交于 2019-11-25 23:34:51
问题 Running my App in the iPhone X Simulator (GM Seed) I am noticing two strange effects: the App does not use the full screen space (top and bottom area is black) a strange white bar beneath the title bar Does anybody know what is happening here and how to resolve this? I can\'t find any new settings in Interface Builder. 回答1: When using launch images (instead of the much easier Launch screen file), you need to provide the properly sized launch image for each device size you wish to support.

How to enable native resolution for apps on iPhone 6 and 6 Plus?

三世轮回 提交于 2019-11-25 21:57:00
问题 Xcode 6 GM now includes simulators for iPhone 6 and 6 Plus, and by default they run apps in a scaled mode. To enable the new screen size I tried adding Default-667h@2x.png which seems to do a part of the trick since the app now fails to run at all, with the error \"Unable to run app in Simulator – An error was encountered while running (Domain = LaunchServicesError, Code = 0)\". Has anyone figured out how to get an app actually run in the 6/6+ resolution? 回答1: You can add a launch screen file

Set the location in iPhone Simulator

梦想与她 提交于 2019-11-25 21:07:36
How can I set the location (as it's picked up in CoreLocation services) in the iPhone Simulator? Robert Altman As of iOS 5, the simulator has a configurable location. Under the Debug menu, the last entry is "Location"; this gives you a sub menu with: None Custom Location Apple Stores Apple City Bicycle Ride City Run Freeway Drive Custom Location lets you enter a Lat/Long value. Bicycle ride, City Run, and Freeway Drive are simulation of a moving location (in Cupertino, of course). Of course, this does nothing to help with debugging for iOS 4 (or earlier); but it's a definite improvement! Run