SceneView crash on macOS Big Sur Beta 6

This was working on previous macOS Big Sur Beta 5, but as of Beta 6, with this minimal code, my macOS app crashes instantly when started.

Code: ModelView.swift
Code Block
import SwiftUI
import SceneKit
struct ModelView: View {
    var body: some View {
        return SceneView(scene: SCNScene())
    }
}


Crash details:
Code Block
language
code-blockdyld`__abort_with_payload:
0x11ae8f6f4 <+0>: movl $0x2000209, %eax ; imm = 0x2000209
0x11ae8f6f9 <+5>: movq %rcx, %r10
0x11ae8f6fc <+8>: syscall
-> 0x11ae8f6fe <+10>: jae 0x11ae8f708 ; <+20>
0x11ae8f700 <+12>: movq %rax, %rdi
0x11ae8f703 <+15>: jmp 0x11ae8d8e4 ; cerror_nocancel
0x11ae8f708 <+20>: retq
0x11ae8f709 <+21>: nop
0x11ae8f70a <+22>: nop
0x11ae8f70b <+23>: nop


When I look at the report, it shows this:
Code Block
dyld: Library not loaded: /System/Library/Frameworks/_SceneKit_SwiftUI.framework/Versions/A/_SceneKit_SwiftUI
  Referenced from: /Users/myuser/Library/Developer/Xcode/DerivedData/test-sceneview-evrchiajpqhubmeajvyhnlrdpiju/Build/Products/Debug/test-sceneview.app/Contents/MacOS/test-sceneview
  Reason: image not found


And indeed that lib is not there.

I'm curious if anyone else has seen this, or can confirm that I am not crazy? (well, not about this anyway).

I submitted feedback (FB8668898).

Eric



I have this as well. You are not crazy (well, not about this anyway).
I also found that in the official documentation all mention of macOS has been removed:

https://developer.apple.com/documentation/scenekit/sceneview

Does this mean SceneView is gone for good? I think this merits at least a comment in the Release Notes, so people can plan accordingly.

Anyone from Apple listening? Can you confirm, or deny... or just comment...
Yea looks like Beta 7 and Xcode 12.2 have ripped it out for macOS. Sheesh. Release notes would be nice..
SceneView crash on macOS Big Sur Beta 6
 
 
Q