You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found an issue with XCode 14.3 on iOS when the build configuration (in schema) or archive are in Release.
No issues on XCode 14.2 or Debug.
Look the example below.
fileProfile and folderDevice are with "try?". Both are nil because both not exist.
the do/catch doesn't throws an exception instead a thread exception into the AppDelegate appears.
letfilePathProfile=Const.LOCAL_PATH_PROFILE // is /var/..../file.jpg
letfilePathDevice=Const.LOCAL_PATH_DEVICES_ROOT // is /var/..../folder
letfileProfile=try?File(path: filePathProfile)letfolderDevice=try?Folder(path: filePathDevice)do{try fileProfile?.delete()try folderDevice?.delete()}catch{debugPrint("\(error.localizedDescription)")}
The issue not appear and the exception LocationErrorReason.emptyFilePath is correctly thrown if:
try? is replaced with try
?.delete() is replaced with .delete()
the two "let..." rows are moved into the do/catch
letfilePathProfile=Const.LOCAL_PATH_PROFILE // is /var/..../file.jpg
letfilePathDevice=Const.LOCAL_PATH_DEVICES_ROOT // is /var/..../folder
do{letfileProfile=tryFile(path: filePathProfile)letfolderDevice=tryFolder(path: filePathDevice)try fileProfile.delete()try folderDevice.delete()}catch{debugPrint("\(error.localizedDescription)")}
I don't know if the issue is caused by File, Folder or both.
The text was updated successfully, but these errors were encountered:
I found an issue with XCode 14.3 on iOS when the build configuration (in schema) or archive are in Release.
No issues on XCode 14.2 or Debug.
Look the example below.
fileProfile and folderDevice are with "try?". Both are nil because both not exist.
the do/catch doesn't throws an exception instead a thread exception into the AppDelegate appears.
The issue not appear and the exception LocationErrorReason.emptyFilePath is correctly thrown if:
I don't know if the issue is caused by File, Folder or both.
The text was updated successfully, but these errors were encountered: