[ad_1]
- set the undertaking deployment goal under iOS 13
- import RealityKit and write add code " @accessible(iOS 13.0, *) " in UIViewController class
- init a Entity class or ModelEntity class ( let _ = Entity() )
- begin to run the undertaking and it’ll crash in iOS 13 and iOS 14 however iOS 15 is OK, very unusual (you may run my demo)
import UIKit
import RealityKit
class ViewController: UIViewController {
override func viewDidLoad() {
tremendous.viewDidLoad()
// Do any extra setup after loading the view.
if #accessible(iOS 13.0, *) {
Entity()
} else {
// Fallback on earlier variations
}
}
}
[ad_2]
