mardi 12 avril 2016

Tuple reflection crashing on iOS 7?

Since the last update of my app (using new iOS SDK 9.3) tuple reflection crashes on iOS 7. This code

let t = (5,5,5,5,5,5,6,6,6,7,7,7,7,7)
let m = Mirror(reflecting: t)

generates an "EXC_BAD_ACCESS" on iOS 7 (and maybe only 32-bit devices as I got reports only from iPhone 4, 4S, 5 and iPad 2, Mini, 3).

The same code works fine on iOS 9 and that

Am I missing something? Is this a bug at Apple? What could be an alternative to make this work? (I'm using tuple reflection to turn the machine field of utsname() into a String)





Aucun commentaire:

Enregistrer un commentaire