Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Crashes only on A-Chip device
Hi @DTS Engineer, thank you for your reply and your effort :-) My App-Target is iOS 17.5, Minimum is 17.4. I was able to run your code as it should on both test devices (iPad Pro M2 and iPad Air 4th Gen, both iOS 17.5.1). I also added my custom color-assets, no problem here. Next I replaced my original code in my app with your code. And surprise: It worked as it should. So, I tried to replace your code by my original code line by line. This worked fine for the first few lines, until I reached the line with Text("Created at:") What needs to be mentioned here, is that the original string for this label is German and a bit longer ("Mitarbeiter erstellt am:"). So, as soon as I change the string of the English version to the longer, German version the app crashes on my iPad Air 4th Gen, while it is still working absolutely fine on my (larger) iPad Pro. Maybe the word "crash" is not specified enough here: Before the app crashes, CPU is running at 99% the whole time and the memory size needed for my app is currently increasing up to the point were the device is running out of available memory. As soon as I remove three characters from the string (e.g. "Mitarbeiter erstellt:", removing (space)am), it is working fine again. I can even replace the second word (erstellt) with another word like "angelegt", which also has eight characters and it's working fine again. However, it is quite frustrating, as I can not reproduce the error in the clean app with your code. I even rebuild my layout in the clean test app and all is working fine as it should. I also tried to debug my app, as my first thought was that I am running an infinite loop somewhere. However, this does not seem to be the case. So, workaround found, but the source for this crash is still open...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’24