R RichardN Well-Known Member Licensed User Longtime User Jun 17, 2015 #1 Executing this file-copy works fine on an iPhone but throws an exception on an iPad.... Code: File.Copy(File.DirAssets,"MyDatabase.sqlite",File.DirLibrary,"MyDatabase.sqlite") Running on an iPad the error report...... Copying updated assets files (1) Application_Start Error occurred on line: 52 (main) Error copying file: Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0x16e7fcb0 {NSFilePath=/private/var/mobile/Containers/Data/Application/E3DE5780-3630-4138-8400-96052B5F7EEF/tmp/virtual_assets/MyDatabase.sqlite, NSUnderlyingError=0x16e7fc20 "The operation couldn’t be completed. No such file or directory"} Stack Trace: (.......... Click to expand... I thought the file structure was identical between the devices....?
Executing this file-copy works fine on an iPhone but throws an exception on an iPad.... Code: File.Copy(File.DirAssets,"MyDatabase.sqlite",File.DirLibrary,"MyDatabase.sqlite") Running on an iPad the error report...... Copying updated assets files (1) Application_Start Error occurred on line: 52 (main) Error copying file: Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0x16e7fcb0 {NSFilePath=/private/var/mobile/Containers/Data/Application/E3DE5780-3630-4138-8400-96052B5F7EEF/tmp/virtual_assets/MyDatabase.sqlite, NSUnderlyingError=0x16e7fc20 "The operation couldn’t be completed. No such file or directory"} Stack Trace: (.......... Click to expand... I thought the file structure was identical between the devices....?
R RichardN Well-Known Member Licensed User Longtime User Jun 18, 2015 #2 After some testing..... a word of caution. If you install a release app on a device during testing it remains in the background and does not appear to get closed by subsequently installing a debug version... even though it has the same package name. When running the debug app a file operation seems to throw a sharing exception as a result. Upvote 0
After some testing..... a word of caution. If you install a release app on a device during testing it remains in the background and does not appear to get closed by subsequently installing a debug version... even though it has the same package name. When running the debug app a file operation seems to throw a sharing exception as a result.