Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named StopwatchSupport.ActivityIndicatorVisualStyle
Still present in Xcode beta 4. Seems to happen when I try to present an UIActivity indicator thatI have set in a xib file. 0 CoreFoundation 0x000000010f3c988a __exceptionPreprocess + 242 1 libobjc.A.dylib 0x000000010b00d894 objc_exception_throw + 48 2 CoreFoundation 0x000000010f3c9768 -[NSException initWithCoder:] + 0 3 UIFoundation 0x0000000129c61b4d UINibDecoderDecodeObjectForValue + 352 4 UIFoundation 0x0000000129c61ebe UINibDecoderDecodeObjectForValue + 1233 5 UIFoundation 0x0000000129c619e2 -[UINibDecoder decodeObjectForKey:] + 257 6 UIKitCore 0x0000000130d23a9f -[UIView initWithCoder:] + 1327 7 UIKitCore 0x000000013067be13 -[UIActivityIndicatorView initWithCoder:] + 65 I did a quick test where this bug shows up in my UI, by removing the said UIActivityIndicatorView from code and xib files, then, the crash disappear, so it is definitely linked to UIActivityIndicatorView and is most probably an Xcode 15 / iOS17 bug as it compiles and runs perfectly under iOS 16.x or when compiled and run on iOS 17 simulator from Xcode 14.
Jul ’23