ios-simulator

error: failed to attach to process ID 0

强颜欢笑 提交于 2019-12-17 10:31:00
问题 I have been reading the forums and so far none of the solutions suggested works for me. I'm running Xcode 4.4.1 and testing in iPhone 5.1 simulator. The simulator won't open the apps anymore and I'm getting the above error. Any thoughts or solutions pls? 回答1: I've met the same problem 1.you can delete the App directy under ~/Library/Application Support/iPhone Simulator/6.0/Applications and ~/Library/Developer/Xcode/DerivedData 2.then you can start Xcode ; in the menubar you can find Project -

Assigning an existing CGColor to a CGColor property works in iOS Simulator, not iOS device. Why?

耗尽温柔 提交于 2019-12-17 09:53:58
问题 I know how to fix the problem that I am about to outline, however, I am a bit baffled as to why the code scenario works in the iOS simulator but not on my iPad. I have a method that checks various properties, and then sets the background color of a CALayer depending on the state of a property. The following code is similar to my method of color assignment: //This will be the CALayer BGColor... CGColor c = UIColor.blueColor.CGColor; //Blue is the default switch (myState) { case state_one: c =

Difference between iPhone Simulator and Android Emulator

本小妞迷上赌 提交于 2019-12-17 08:23:26
问题 What is the difference between iPhone Simulator and Android emulator? I have heard people saying that Emulator really emulates the target device which is not true in case of simulator. I think Android emulator mimics the processing speed of the target device, the memory usage, but a simulator does not emulate the device. 回答1: Disclaimer: I'm only an iPhone developer, not an Android developer. You are correct, the difference between emulators and simulators is that emulators mimic the software

Unable to run app in Simulator : An error was encountered while running (Domain = LaunchServicesError, Code = 0)

我们两清 提交于 2019-12-17 07:23:28
问题 I am unable to run my app in simulator after having trouble with the provisioning profile. I'm doing swift coding in Xcode 6 - beta 4. This was fine before the trouble in the certificate's profile. I have tried cleaning the build. Checked the command line to xCode6-beta4 for running. Checked the build deployment, set to 7.0 so swift won't complain for compatibility Fixed the error in provisioning. 回答1: This happens if your extension's bundle ID isn't prefixed with your app's bundle ID. For

Push Notifications in Mavericks iOS Simulator

强颜欢笑 提交于 2019-12-17 07:18:49
问题 I can't find anything about this, and I have never done anything with push notifications (but I know vaguely how they work). In Mavericks, now that OS X can receive push notifications from various things like websites, can iPhone Simulator receive push notifications? I've found plenty of answers from mid-2013 and earlier saying "no", but all of them are outdated because Mavericks was just recently released with its new push features. I'm about to start working on an app for a school project

Timeout when running xcodebuild tests under Xcode 6 via SSH

和自甴很熟 提交于 2019-12-17 07:07:22
问题 I seem to be having issues with integrating Xcode6 with jenkins, I currently have this setup and working with Xcode 5. With xcode 6 running remotely via SSH the simulator time-out, when I run locally it succeeds. Command xcodebuild -workspace PROJECTNAME.xcworkspace -scheme BGO_Tests -destination 'platform=iOS Simulator,name=iPhone 5s' -derivedDataPath ./Build clean test 2014-08-19 10:46:36.591 xcodebuild[33966:381f] iPhoneSimulator: Timed out waiting 120 seconds for >simulator to boot,

Error: Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.”

六眼飞鱼酱① 提交于 2019-12-17 06:47:10
问题 I am working on an application in Xcode 6.1, iOS 8.1; the application was working completely fine till 2 days before, but today as I executed it I got an error in the web service & the error is printed below. Error: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x7c6899b0 {NSErrorFailingURLStringKey=, NSErrorFailingURLKey=, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x7c688f60 "The request timed out."} I had used AFNetworking 2.x and

NSUserDefaults not cleared after app uninstall on simulator

。_饼干妹妹 提交于 2019-12-17 06:34:20
问题 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"];

ScrollView not scrolling when dragging on buttons

五迷三道 提交于 2019-12-17 06:26:13
问题 I have a scroll view that used to scroll when it didn't have buttons all over it. Now it does, and when dragging the mouse (on simulator) nothing happens (i think because the buttons are being pushed). How can I make this right? 回答1: This is happening because UIButton subviews of the UIScrollView (I assume buttons are added as subviews in your case) are tracking the touches and not the scroll view. UIScrollView method touchesShouldCancelInContentView is the key here. According to its

Document Directory Path of iOS 8 Beta Simulator

爱⌒轻易说出口 提交于 2019-12-17 05:36:28
问题 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? 回答1: 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