Apple framework not found when building Archive

前端 未结 2 782
伪装坚强ぢ
伪装坚强ぢ 2021-01-27 16:19

I\'m trying to add optional support for an AR feature to an existing app using RealityKit. The app builds and runs fine on both iOS 10 and iOS 13 devices with the optional featu

相关标签:
2条回答
  • 2021-01-27 16:30

    Looks like the way around this issue is with a canImport(module) preprocessor directive. This worked for me:

    #if canImport(RealityKit)
    
    import RealityKit
    
    @available(iOS 13.0, *)
    class MyARClass {
    
        @IBOutlet weak var arView: ARView!
    
    ...
    }
    
    #endif
    
    0 讨论(0)
  • 2021-01-27 16:54

    Check your project setting by going to Build Settings, find Framework Search Paths and add $(SRCROOT) and be sure it's recursive.

    0 讨论(0)
提交回复
热议问题