ios-simulator

iOS Simulator failed to install the application

六眼飞鱼酱① 提交于 2019-11-26 23:49:04
I have created a Cordova 2.1.0 app, It ran fine for the first 2-3 times. But now when I am trying to run it through terminal it is giving me the following error.I didn't change anything. Ankurs-Mac-mini:~ ankur$ /Users/ankur/Desktop/CordovaSMS/cordova/emulate Ankurs-Mac-mini:~ ankur$ 2012-10-17 16:11:08.695 ios-sim[7032:507] stderrPath: /Users/ankur/Desktop/CordovaSMS/cordova/console.log 2012-10-17 16:11:08.698 ios-sim[7032:507] stdoutPath: /Users/ankur/Desktop/CordovaSMS/cordova/console.log [DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "iOS Simulator

Document Directory Path of iOS 8 Beta Simulator

折月煮酒 提交于 2019-11-26 23:46:44
In iOS 7, the document directory of the iOS simulators can be found in: /Users/Sabo/Library/Application Support/iPhone Simulator/ However, in iOS 8 Beta Simulator , I can't find the corresponding directory for iOS 8 in the directory above. Where's the document directory path for the iOS 8 Simulator? on my computer, the path is: ~/Library/Developer/CoreSimulator/Devices/1A8DF360-B0A6-4815-95F3-68A6AB0BCC78/data/Container/Data/Application/ NOTE: probably those long IDs (i.e UDIDs) are different on your computer. Ankur NSLog below code somewhere in "AppDelegate", run your project and follow the

Automated testing for iPhone [closed]

时间秒杀一切 提交于 2019-11-26 23:26:18
I know this one is going to be a long-shot, but I thought I'd try. Does anyone know of any automated test anything for the iPhone simulator? I'd love it if there was something like Selenium but for the iPhone simulator. I don't need anything fancy like assertions, just something that can fake out taps on a screen so I can stop abusing my trackpad. :) Is there a way to send taps or keyevents (like on android over adb) to iOS devices? Marc Novakowski Here's an article about automated user interface testing for the iPhone that you may find helpful. It's a little kludgy but it probably gets the

SpringBoard failed to launch application with error: -3

那年仲夏 提交于 2019-11-26 23:06:41
问题 I'm getting an warning as 'SpringBoard failed to launch application with error: -3'. This happens when trying to run application in Xcode 5. 回答1: Finally...found solution! Solution 1 : Just quit Simulator and clean Xcode. The fresh build will not show this Alert again. The possible reason for this might be switching between 64-bit simulator and 32-bit simulator. Solution 2 : If the problem still persists then delete the App from Simulator and re-run the code. This will work since the app

didFailToReceiveAdWithError not working for iOS 8 simulators

狂风中的少年 提交于 2019-11-26 22:57:11
My iAd/AdMob mediation works fine with all iOS 7 simulators and devices. However, iOS 8 didFailToReceiveAdWithError method doesn't work for any simulators but it works for iOS 8 devices. Problem is I don't have an iPhone 6/6+ device to test. So i'm counting on iOS 8 simulator. -(void)bannerViewDidLoadAd:(ADBannerView *)banner{ [UIView beginAnimations:nil context:NULL]; iAd.frame=CGRectOffset (iAd.frame 0, -667); [UIView commitAnimations]; [UIView beginAnimations:nil context:NULL]; iAd.frame=CGRectOffset (iAd.frame 0, 0); [UIView commitAnimations]; } -(void)bannerView:(ADBannerView *)banner

Implementing Unit Testing with iOS

喜夏-厌秋 提交于 2019-11-26 22:32:40
问题 I've followed this tutorial to setup unit testing on my app when I got a little stuck. At bullet point 8 in that tutorial it shows this image, which is what I should be expecting when I build: alt text http://developer.apple.com/library/ios/documentation/Xcode/Conceptual/iphone_development/art/logic_test_failure_text_editor.jpg However this isn't what I get when I build. I get this error message: Command /bin/sh failed with exit code 1 as well as the error message the unit test has created.

FBSOpenApplicationErrorDomain code =4 error

梦想与她 提交于 2019-11-26 22:31:56
问题 When I'm trying to run iOS application in Xcode 6 in iPhone 6 simulator, I'm getting error Unable to run app in Simulator . And error code is: An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4) Can any one suggest how to resolve it? 回答1: This worked for me: iOS Simulator -> Reset Contents and Settings... -> Reset referenced from Qiita: Unable to run app in Simulator エラーの対応方法. 回答2: Just closing the iOS Simulator worked for me. There is not always the need

How to build a library for both iPhone simulator and device?

烂漫一生 提交于 2019-11-26 22:31:14
问题 I want to build a static library for iphone. I want to give my users the .a library which they can use for both simulator test and device test. Do I have to build two library in simulator mode and device mode? Is there any way to build a single one that can be used for both platforms? 回答1: Compile your library twice. Once using the device SDK, and again using the Simulator SDK. Then use the lipo command line tool to create a "fat" library. lipo -create libdevice.a libsimulator.a -output

launchd_sim crashing: could not create temporary state directory

不羁岁月 提交于 2019-11-26 22:12:22
问题 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

iOS Simulator display scaled incorrectly

只愿长相守 提交于 2019-11-26 22:07:11
问题 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