Search results for

NSCocoaErrorDomain Error Code 4

170,055 results found

Post

Replies

Boosts

Views

Activity

Unable to run updated WatchKit app in Xcode 7's simulator
I've updated the app for watchOS 2 using the built in suggestion with Xcode 7 when you first build it. I've changed all the necessary code so there's no errors or warnings but I can't seem to run either the containing app or the watch app in the simulator; they never launch but they do copy over to the simulators.Is there a new scheme I should be using? I'm using the previous scheme for the main watch app which now automatically lets you choose between running the iPhone 6 simulator with either the 38mm or 42mm watch simulator.
5
0
1.3k
Jun ’15
Unable to backup to iTunes.
I know backing up to iCloud is not working and the workaround is to back up to iTunes. But I am unable to back up to iTunes. Everything is updated on my Mac. The moment states that it is backing up my iTunes I will get a pop message stating there is a error unable to back up. I am able to back up my iPad. Any idea?
0
0
154
Jun ’15
Reply to iOS 9 Error 14
Never underestimate a bad cable as the possible reason. For some reason, since the beginning of iPhone, you can have a cable that's good enough to get through charging and sometimes syncing, but fails when doing restores and more sensitive tasks. A few tips:Make sure your device registered with the developer program's UDIDs.Make sure iTunes is up to date.Make sure your hosts file on your computer hasn't been modded.Ensure there's no dust or debris in the bottom of your device that may be blocking a solid connection.Try a different cable.Try a different computerAnd if all else fails, the apple store will usually try restoring it for you, even if it's OoW -- though if they also can't restore it, you may be looking at an Out of Warranty service repair.https://support.apple.com/en-us/HT204770Check your USB connectionsErrors: 13, 14, 1600, 1601, 1602, 1603, 1604, 1611, 1643-1650, 2000, 2001, 2002, 2005, 2006, 2009, 4005, 4013, 4014. You might also see a message that includes invalid response.If the USB connection
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Loading an .Obj model file
when I ran your code I saw the actual problem 🙂when creating the URL I needed to specifically create a file URL.//var torusModel = MDLAsset(URL: NSURL(string: path!)!) let torusModel = MDLAsset(URL: NSURL.fileURLWithPath(path!))Loaded just fine after that
Topic: Graphics & Games SubTopic: SceneKit Tags:
Jun ’15
Reply to CoreLocation: startUpdateLocation is unavailable
The watchOS developer library has a PotLoc sample which is sample code for using CoreLocation. https://developer.apple.com/library/prerelease/watchos/samplecode/PotLoc/Introduction/Intro.html#//apple_ref/doc/uid/TP40016176In particular, use manager.requestLocation() and then implement the delegate methodoptional func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [AnyObject])
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Swift frameworks and unmapped SDK libraries?
Over the course of Swift's existence I've had to take advantage of a number of workarounds (i.e., hacks) to compile a Swift framework that utilizes non-modular system code, e.g., CommonCrypto, sqlite3, etc.These solutions have included:Renaming the umbrella header to be something different than the module name in order to exploit a bug that let frameworks compile with bridging headers, wherein the non-modular import happened: #import <CommonCrypto/CommonCrypto.h>Building a dummy, optional framework with a custom module map specifying the absolute path to an SDK header (relative SDK paths don't work): module CommonCrypto [system] [extern_c] { header /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonCrypto.h export * }Specifying a custom module map with an additional header specifying the absolute path to an SDK header: framework module MyCrypto { umbrella header MyCrypto.h header /Applications/Xcode.app/Contents/Deve
7
0
9.8k
Jun ’15
Invalid conversion with do-try-catch in a block
Given the following code:managedObjectContext.performBlock({ () -> Void in do { try managedObjectContext.save() print(Success) } catch let error as NSError { print(fail) } })I am receiving the following error:`invalid conversion from throwing function of type '() throws -> Void' to non-throwing function type '() -> Void'`.Any advice on how to resolve it?
3
0
11k
Jun ’15
Reply to Invalid conversion with do-try-catch in a block
Adding a catch-all catch will let things compile:moc.performBlock { do { try moc.save() print(Success) } catch let error as NSError { print(Fail: (error.localizedDescription)) } catch { print(Fail: (error)) } }If you're not using the NSError, you may as well use just a single, generic catch.If you don't catch all possible errors, the throws propagates to the caller, in this case, performBlock. However, performBlock doesn't expect an error, so you must catch all possible errors, or you must call try!, unsafely, instead.The error isn't super friendly, so it may be worth filing a bug report to make it easier to understand.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Revert to Saved error messages
I am working on an App where after the user completes the Revert to Saved… time machine like dialog the system sends a bunch of error messages to the XCode console:Jun 9 20:16:52 BDM-2.local Mandelbrot[36183] <Error>: CGContextClipToRects: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.Jun 9 20:16:52 BDM-2.local Mandelbrot[36183] <Error>: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update....None
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
256
Jun ’15
iCloud Login Fails?
When I go to Settings / iCloud, my AppleID is there, but when I tap the disclosure triangle/icon (>), iOS asks me my to Sign in with Apple ID (i.e., enter password for my Apple ID).I enter the password but get the error message/alert:Title: Verification FailedMessage: An unknown error occurredButtons: Cancel / Try AgainI tried updating my password at MyAppleID, to no effect.I have 2-step verification enabled.
5
0
4.1k
Jun ’15
Reply to Compound AND predicate for many to many relationship using SUBQUERY
birthday and party are two separate events and they both could be selected in a single entry and it doesnt reduce to a single event called 'birthday party'. Using this app called 'Core Data Editor' I found out that my code was only taking one event where multiple are selected. So my store didnt have any entry with two events Birthday and Party! I guess I found where the bug is.
Jun ’15