ios-simulator

Can i access iPod Library on simulator?

北城余情 提交于 2019-11-27 02:18:14
问题 I am trying some code to open the iPod Library using the simulator but the app crashes with this error: MPMediaLibrary: Unable to launch iPod library server: application not found Do I need an actual iPhone to test this code? 回答1: Yes you need to test on a device to access the media library. 回答2: I've had some success using MPMediaLibrary / MPMediaQuery on the simulator (not playing music, but at least able to query for items) and xcode 4.6.3 I used iFunBox to copy these files from my device:

react-native run-ios can not find any simulator

☆樱花仙子☆ 提交于 2019-11-27 02:16:01
问题 I have been facing an issue where 'react-native run-ios' can not start, regardless of the simulator I add to the --simulator argument. XCode has the correct location for the 'command line tools' I am always getting the error: Could not find iPhone X simulator Error: Could not find iPhone X simulator at resolve (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13) at new Promise (<anonymous>) at runOnSimulator (/Users/eric/.../swim/node_modules/react-native/local

While mail sending process using ios 8 simulators generates error

怎甘沉沦 提交于 2019-11-27 02:03:59
问题 When i am using simulator of iphone 5s such error is appears during mail sending and perfectly runs in ios 7 simulators. It even does not show send option and only cancel option appears when it open ups mail sending page. What should i do to solve it please help me out. Thank you in advance ERROR:- '_serviceViewControllerReady:error: Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be completed. (Cocoa error 4097.)" (connection to service named com.apple.uikit.viewservice.com

How to install iOS 7 and onwards simulators in Xcode 7 Beta 5?

淺唱寂寞╮ 提交于 2019-11-27 01:48:26
I want to test my app on iOS 7 and onwards. The only way to test my app in these OS' are using Simulator. But after upgrading my Xcode to 7 Beta, I see the iOS 8.1, 8.2, 8.3 but I get an error that they are not found. iOS7 is non existing. Is there any way to install the older OS simulators in Xcode 7 beta 5? Older Simulator runtimes are available for download through Xcode's preferences. Goto Xcode -> Preferences -> Downloads to see the list of compatible legacy simulator runtimes. El Capitan supports iOS 8.1 and newer runtimes. Yosemite supports iOS 7.1 and newer runtimes. There is a known

iOS6 Simulator MKMapKit “Couldn't find default.styleproto in framework”

眉间皱痕 提交于 2019-11-27 01:30:09
问题 Running my app with the iOS6 simulator I am getting the following printed in the XCode console prior to viewDidLoad getting called: Couldn't find default.styleproto in framework Has anyone else encountered this, and if so have you found a reason why? My guess is that it has to do with the iOS6 Apple Maps, but who knows! EDIT I should add that I don't get this warning in the iOS 5.1 simulator. 回答1: I found a way to consistently reproduce this. First, the culprit is a set of files in the Cache

Google Maps not working on iPhone simulator

孤人 提交于 2019-11-27 01:30:04
问题 I've implemented the "Getting the Google Maps SDK for iOS" step by step finally the simulator running ok no errors found but the map has no details except the marker. As showing in the picture: Also the output on the bottom has this message: 2012-12-23 01:06:59.869 GogleMap[3680:c07] GMSZoomTableQuadTree lacks root zoom table for >tile type (mapType: 10) 2012-12-23 01:07:00.042 GogleMap[3680:1b03] Google Maps SDK for iOS version: 1.0.1.1154 2012-12-23 01:07:00.375 GogleMap[3680:c07]

XCode using GUID instead of iOS version number in Simulator Selection

拈花ヽ惹草 提交于 2019-11-27 01:28:33
问题 Somewhere during the various updates of XCode in the last month, the iOS versions dropped from my simulator selection (image below.) Anyone know how to resolve this? 回答1: How to fix it Xcode uses the device version to disambiguate devices with the same name. If two devices have the same name and version number, it will use the devices' UDIDs. You have 4 of each of a bunch of devices (eg iPhone 5s). I suspect that some of them are for the same iOS version. You should delete some of the

ios simulator appear with UDID in xcode 6

南楼画角 提交于 2019-11-27 01:24:58
When i select simulator from xcode 6 then i'm getting multiple option to select simulator but simulator comes with UDID. Please see the below image and please help me out. Thanks in advance. killall Xcode - Kills all running Xcode processes. sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService - Kills all running CoreSimulatorService's processes. rm -rf ~/Library/Developer/CoreSimulator/Devices - Removes all Simulator data, from all the Simulators. open /Applications/Xcode.app - Opens Xcode. The above steps from xcode 10 are invalid, please use the following steps: xcrun simctl

Simulating location changes for `startMonitoringSignificantLocationChanges`

泪湿孤枕 提交于 2019-11-27 00:36:30
问题 I am writing an iPhone app and using Location Services. I am using the startMonitoringSignificantLocationChanges method on CLLocationManager . (As I understand, this is for low power, low accuracy location services.) When I build and launch my app in iOS Simulator, it gets my location fine. However, I want to simulate updates to the location beyond the initial fix. I did notice these two options: iOS Simulator : Debug > Location menu Xcode 4: Product > Debug > Simulate Location menu Both of

NSUserDefaults not cleared after app uninstall on simulator

ぃ、小莉子 提交于 2019-11-27 00:29:36
this may sound real NOOB! I want to check if it's the second time the user enters my application, so to keep the run count I'm using NSUserDefaults . I have implemented the following code in my rootViewController 's viewDidLoad method: NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; NSLog(@"hello %ld", (long)[userDefaults integerForKey:@"runCount"]); if ([userDefaults integerForKey:@"runCount"] != 1) { //not the 2nd run [userDefaults setInteger:1 forKey:@"runCount"]; NSLog(@"not 2nd run"); } else { //second run or more NSLog(@"2nd run"); } [userDefaults synchronize];