News for hackers. Stuff that matters.
Re:Apple keeps rejecting my binary by Mithaldu on Tuesday December 16, 2014 @11:44AM (#8757864)
This seems to be a case of Apple doing the right thing in a weird way. The docs say not to call this function from the main thread, but from a background thread:

    https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/index.html#//apple_ref/occ/instm/NSFileManager/URLForUbiquityContainerIdentifier:
(Url quoted because the : is part of it and hn-auto-linking won't include it.)

From that first screenshot however he is calling it from the main thread, and their test system likely is built to trap that with a crash.

Re:Apple keeps rejecting my binary by jarin on Tuesday December 16, 2014 @11:56AM (#8757932)
It also may be because it returns nil if the user hasn't set up iCloud and the app may not have handled that case properly.
Re:Apple keeps rejecting my binary by electrum on Tuesday December 16, 2014 @11:59AM (#8757955)
The screenshot shows it crashing on a method named "semaphore_wait_trap", so that does indeed seem to be an intentional trap for calls that can block the main thread.
Re:Apple keeps rejecting my binary by daniel02216 on Tuesday December 16, 2014 @12:14PM (#8758020)
That's just the syscall for waiting for a semaphore to be signaled. Most likely the crash is due to the main thread waiting for too long on that semaphore - it's likely stuck waiting for a network request to complete, and the watchdog kicked in and killed it.