I updated my iPad to iOS 17.0.3 thinking maybe Apple was on top of this and that this would fix it. No such luck. All I get is a different error. I'm still hosed.
BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/F69182D8-2930-4882-A8F6-D76179F1E87B.sb-857f9996-cxGWIo/Documents/MY_DB_File.sqlite
invalidated open fd: 3 (0x11)
After more testing I've found that this does not run in AppDelegate.
It's actually in a func inside AppDelegate that fires when the device is rotated.
If you are still willing to help me out, Claude , I can post the complete code. Probably should have done that in the beginning. My bad.
let firstScene = window?.windowScene if let w = firstScene as? UIWindowScene { let screenSize = w.screen.bounds print("screenSize", screenSize) }
Thank you, Claude.
Your first method doesn't make the constraint value a % of the screen width, or does it?
I've been using the second method already. I was thinking autolayout word be a better way to go.
Most of my UI is set up to make the constraint values a % of the screen height/width.
I've been setting the control to centered and adjusting the leading constraint using the screen width/height. Makes for cleaner layout.
I guess I'll have to rethink the way I was planning to use autolayout.
Thanks for the reply, @Claude31
I tried changing to did end on exit. It didn't fix the problem on iOS 15.6.1 and it caused things to not work correctly on iOS 5.5 too.
I updated my iPad to iOS 17.0.3 thinking maybe Apple was on top of this and that this would fix it. No such luck. All I get is a different error. I'm still hosed.
BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/F69182D8-2930-4882-A8F6-D76179F1E87B.sb-857f9996-cxGWIo/Documents/MY_DB_File.sqlite
invalidated open fd: 3 (0x11)
After more testing I've found that this does not run in AppDelegate.
It's actually in a func inside AppDelegate that fires when the device is rotated.
If you are still willing to help me out, Claude , I can post the complete code. Probably should have done that in the beginning. My bad.
let firstScene = window?.windowScene if let w = firstScene as? UIWindowScene { let screenSize = w.screen.bounds print("screenSize", screenSize) }
Thank you, Claude.
Your first method doesn't make the constraint value a % of the screen width, or does it?
I've been using the second method already. I was thinking autolayout word be a better way to go.
Most of my UI is set up to make the constraint values a % of the screen height/width.
I've been setting the control to centered and adjusting the leading constraint using the screen width/height. Makes for cleaner layout.
I guess I'll have to rethink the way I was planning to use autolayout.
Thanks for the reply, @Claude31
I tried changing to did end on exit. It didn't fix the problem on iOS 15.6.1 and it caused things to not work correctly on iOS 5.5 too.