Archived Forum Post

Index of archived forum posts

Question:

xmp library not work in iOS9

Jul 18 '16 at 11:19

The method SaveAppFile in xmp library does not work in iOS 9 The error below always happens.

  fopen_failed:
    errno: 1
    osErrorMessage: Operation not permitted
    Failed to open file.
    mode: w
    path: /var/containers/Bundle/Application/02889455-E827-43C8-B9AA-9E219D587127/Panorama.app/Amsterdam2.jpg
  --fopen_failed
  filename: /var/containers/Bundle/Application/02889455-E827-43C8-B9AA-9E219D587127/Panorama.app/Amsterdam2.jpg
  Failed to write complete file (7)
--xmpWriteFileAndClose
Failed.
Failed.

--SaveAppFile


Answer

This isn't a defect in the Chilkat library -- its just for some reason your app does not have permission to create or overwrite the given file.

Try writing non-Chilkat code to see if you can create or overwrite that same path. (Just write some junk for testing..) I would expect you'll hit the same error. Then solve that problem..