shu223 / iOS-Depth-Sampler

Code examples for Depth APIs in iOS
MIT License
1.17k stars 101 forks source link

4 compilation issues on Xcode 10.0, Mojave #3

Closed jondwillis closed 5 years ago

jondwillis commented 5 years ago

I cloned master @106813e0860f381f1821baddf76b9cdeebfcc490, opened the .xcworkspace, and change the signing, then tried to compile, which resulting in four compilation errors:

/Users/jon/git/iOS-Depth-Sampler/iOS-Depth-Sampler/Renderer/MetalRenderer.swift:71:39: 
Value of type 'MTLDrawable' has no member 'texture'

/Users/jon/git/iOS-Depth-Sampler/iOS-Depth-Sampler/Samples/Realtime-Depth/RealtimeDepthViewController.swift:38:54:
 Value of type 'MTLDrawable' has no member 'layer'

/Users/jon/git/iOS-Depth-Sampler/iOS-Depth-Sampler/Samples/ARKit/ARKitDepthViewController.swift:34:28: 
Value of type 'ARSCNView?' has no member 'device'

/Users/jon/git/iOS-Depth-Sampler/iOS-Depth-Sampler/Samples/ARKit/ARKitDepthViewController.swift:39:54:
 Value of type 'MTLDrawable' has no member 'layer'
jondwillis commented 5 years ago

Oh, closing this because compilation only succeeds when you have a real iOS device as the compilation target.