I’ve this following minimal reproducible code:
import UIKit
import RealityKit
class ViewController: UIViewController {
override func viewDidLoad() {
tremendous.viewDidLoad()
let arView = ARView(body: self.view.body)
view.addSubview(arView)
let anchor = AnchorEntity()
arView.scene.addAnchor(anchor)
let field = ModelEntity(mesh: .generateBox(measurement: 0.5), supplies: [SimpleMaterial(color: .red, isMetallic: false)])
field.place = [0, 0, -1]
anchor.addChild(field)
// A customized digital camera
let digital camera = PerspectiveCamera()
anchor.addChild(digital camera)
// submit course of
arView.renderCallbacks.postProcess = { _ in
print("submit course of")
}
}
}
It crashes with this (see pic):
Thread 1: EXC_BREAKPOINT (code=1, subcode=0x1e86b40b4)
It says it stops at a breakpoint, however I didn’t have any breakpoint setup.
If I take away the submit course of, it really works. If I take away the customized digital camera entity, it additionally works. Nevertheless, in my use case, I’ve to make use of each (primarily as a result of i would like to alter data like fov, and there isn’t any such API to alter the default digital camera)


