My photo extension app has access to both Camera and Photos. All is ok, but when pressing Done, it can not save image.
Code of standard completion handl
Even though the header implies that adjustmentData can be nil, the documentation states:
If you write new asset content to the URL specified by the renderedContentURL property, you must also provide a new, distinct PHAdjustmentData object describing your edit. Passing a preexisting adjustment data object (that describes an earlier edit) results in undefined behavior.
So do something like this before calling the completion handler:
output.adjustmentData = [[PHAdjustmentData alloc] initWithFormatIdentifier:@"com.whatever.app" formatVersion:@"1.0" data:[NSData data]];