Skip to content

Commit a13bbde

Browse files
author
Vladislav Grigoryev
committed
Drop Reality Kit from cocoapods testing app.
1 parent 3a31948 commit a13bbde

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Example/Source/MainViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ final class MainViewController: ViewController {
3838
items.append((title: "ARKit Example", controller: ARKitViewController.self))
3939
items.append((title: "SceneKit Example", controller: SceneKitViewController.self))
4040
if #available(iOS 13, *) {
41+
#if !NON_REALITY
4142
items.append((title: "RealityKit Example", controller: RealityKitViewController.self))
43+
#endif
4244
items.append( (title: "Metal Example", controller: MetalViewController.self))
4345
}
4446
return items

SCNRecorder.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ Pod::Spec.new do |s|
1818
app_spec.name = "Example"
1919
app_spec.platform = :ios, '13.0'
2020
app_spec.source_files = 'Example/Source/**/*.{m,swift,metal}', 'Example/Source/Content/**/*.{h}'
21+
app_spec.exclude_files = 'Example/Source/Content/RealityKit/*'
2122
app_spec.preserve_path = 'Example/Source/Example-Bridging-Header.h'
22-
app_spec.resources = 'Example/Source/Resources/**/*.{rcproject,scnassets,xcassets}'
23+
app_spec.resources = 'Example/Source/Resources/**/*.{scnassets,xcassets}'
24+
app_spec.compiler_flags = '-DNON_REALITY'
2325
app_spec.pod_target_xcconfig = {
2426
"SWIFT_OBJC_BRIDGING_HEADER" => "SCNRecorder/Example/Source/Example-Bridging-Header.h"
2527
}

0 commit comments

Comments
 (0)