Crash

Hello!

I found a crash at the start of the app with an error:

error: memory read failed for 0x0
Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

If I add to the project:

@available(iOS 16.0, *)
@MainActor
class SomeClass {
    var configuration: ImageAnalyzer.Configuration?
}

But if I replace the class with a structure, then the app will run without crash:

@available(iOS 16.0, *)
@MainActor
struct SomeStruct {
    var configuration: ImageAnalyzer.Configuration?
}

Xcode 14.0 beta 5 (14A5294e)

iOS 15.6

On iOS 16 beta, both options work, without crashes.

Any suggestion as to what to look for?

The project includes code in Objective-C

Hello,

First, please file a bug report for this issue using Feedback Assistant.

Then, as a work-around, you can explicitly optionally link VisionKit (see screenshot):

Crash
 
 
Q