Greg Titus on NSFileCoordination and Extensions

It does work, but you have to be careful.

⚠️
This post was automatically migrated from my old blogging software, and I have not reviewed it for problems yet. Please contact me if you notice any important issues.

Update 2014-12-01: TN-2408 explicitly says you shouldn’t use NSFileCoordination for app↔extension coordination:

Using file coordination in an app extension to access a container shared with its containing app may result in a deadlock. This is usually the case if a process is suspended mid coordinated I/O. This can be more prevalent on iOS where most apps will be suspended after a short period of time after being moved to the background. Extensions should use alternatives to file coordination.