├── .gitattributes
├── starter.zip
├── ARKitWorkingWithWorldMapData
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── AppDelegate.swift
└── ViewController.swift
├── README.md
├── ARKitWorkingWithWorldMapData.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── macbook.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── xcuserdata
│ └── macbook.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
└── project.pbxproj
└── LICENSE
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/starter.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/appcoda/ARKit-Persistence-Demo/HEAD/starter.zip
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Working with ARKit 2.0 Persistence
2 |
3 | For the full tutorial, please refer to this link:
4 |
5 | https://www.appcoda.com/arkit-persistence/
6 |
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData.xcodeproj/project.xcworkspace/xcuserdata/macbook.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/appcoda/ARKit-Persistence-Demo/HEAD/ARKitWorkingWithWorldMapData.xcodeproj/project.xcworkspace/xcuserdata/macbook.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData.xcodeproj/xcuserdata/macbook.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ARKitWorkingWithWorldMapData.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Simon Ng
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | NSCameraUsageDescription
24 | For Augmented Reality
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // ARKitWorkingWithWorldMapData
4 | //
5 | // Created by Macbook on 8/11/18.
6 | // Copyright © 2018 Jayven Nhan. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // ARKitWorkingWithWorldMapData
4 | //
5 | // Created by Macbook on 8/11/18.
6 | // Copyright © 2018 Jayven Nhan. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import ARKit
11 |
12 | class ViewController: UIViewController {
13 |
14 | @IBOutlet weak var sceneView: ARSCNView!
15 | @IBOutlet weak var label: UILabel!
16 |
17 | var worldMapURL: URL = {
18 | do {
19 | return try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
20 | .appendingPathComponent("worldMapURL")
21 | } catch {
22 | fatalError("Error getting world map URL from document directory.")
23 | }
24 | }()
25 |
26 | override func viewDidLoad() {
27 | super.viewDidLoad()
28 | sceneView.delegate = self
29 | configureLighting()
30 | addTapGestureToSceneView()
31 | }
32 |
33 | func addTapGestureToSceneView() {
34 | let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didReceiveTapGesture(_:)))
35 | sceneView.addGestureRecognizer(tapGestureRecognizer)
36 | }
37 |
38 | @objc func didReceiveTapGesture(_ sender: UITapGestureRecognizer) {
39 | let location = sender.location(in: sceneView)
40 | guard let hitTestResult = sceneView.hitTest(location, types: [.featurePoint, .estimatedHorizontalPlane]).first
41 | else { return }
42 | let anchor = ARAnchor(transform: hitTestResult.worldTransform)
43 | sceneView.session.add(anchor: anchor)
44 | }
45 |
46 | func generateSphereNode() -> SCNNode {
47 | let sphere = SCNSphere(radius: 0.05)
48 | let sphereNode = SCNNode()
49 | sphereNode.position.y += Float(sphere.radius)
50 | sphereNode.geometry = sphere
51 | return sphereNode
52 | }
53 |
54 | func configureLighting() {
55 | sceneView.autoenablesDefaultLighting = true
56 | sceneView.automaticallyUpdatesLighting = true
57 | }
58 |
59 | override func viewWillAppear(_ animated: Bool) {
60 | super.viewWillAppear(animated)
61 | resetTrackingConfiguration()
62 | }
63 |
64 | override func viewWillDisappear(_ animated: Bool) {
65 | super.viewWillDisappear(animated)
66 | sceneView.session.pause()
67 | }
68 |
69 | @IBAction func resetBarButtonItemDidTouch(_ sender: UIBarButtonItem) {
70 | resetTrackingConfiguration()
71 | }
72 |
73 | @IBAction func saveBarButtonItemDidTouch(_ sender: UIBarButtonItem) {
74 | sceneView.session.getCurrentWorldMap { (worldMap, error) in
75 | guard let worldMap = worldMap else {
76 | return self.setLabel(text: "Error getting current world map.")
77 | }
78 |
79 | do {
80 | try self.archive(worldMap: worldMap)
81 | DispatchQueue.main.async {
82 | self.setLabel(text: "World map is saved.")
83 | }
84 | } catch {
85 | fatalError("Error saving world map: \(error.localizedDescription)")
86 | }
87 | }
88 | }
89 |
90 | @IBAction func loadBarButtonItemDidTouch(_ sender: UIBarButtonItem) {
91 | guard let worldMapData = retrieveWorldMapData(from: worldMapURL),
92 | let worldMap = unarchive(worldMapData: worldMapData) else { return }
93 | resetTrackingConfiguration(with: worldMap)
94 | }
95 |
96 | func resetTrackingConfiguration(with worldMap: ARWorldMap? = nil) {
97 | let configuration = ARWorldTrackingConfiguration()
98 | configuration.planeDetection = [.horizontal]
99 |
100 | let options: ARSession.RunOptions = [.resetTracking, .removeExistingAnchors]
101 | if let worldMap = worldMap {
102 | configuration.initialWorldMap = worldMap
103 | setLabel(text: "Found saved world map.")
104 | } else {
105 | setLabel(text: "Move camera around to map your surrounding space.")
106 | }
107 |
108 | sceneView.debugOptions = [.showFeaturePoints]
109 | sceneView.session.run(configuration, options: options)
110 | }
111 |
112 | func setLabel(text: String) {
113 | label.text = text
114 | }
115 |
116 | func archive(worldMap: ARWorldMap) throws {
117 | let data = try NSKeyedArchiver.archivedData(withRootObject: worldMap, requiringSecureCoding: true)
118 | try data.write(to: self.worldMapURL, options: [.atomic])
119 | }
120 |
121 | func retrieveWorldMapData(from url: URL) -> Data? {
122 | do {
123 | return try Data(contentsOf: self.worldMapURL)
124 | } catch {
125 | self.setLabel(text: "Error retrieving world map data.")
126 | return nil
127 | }
128 | }
129 |
130 | func unarchive(worldMapData data: Data) -> ARWorldMap? {
131 | guard let unarchievedObject = try? NSKeyedUnarchiver.unarchivedObject(ofClass: ARWorldMap.self, from: data),
132 | let worldMap = unarchievedObject else { return nil }
133 | return worldMap
134 | }
135 |
136 | }
137 |
138 |
139 | extension ViewController: ARSCNViewDelegate {
140 |
141 | func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) {
142 | guard !(anchor is ARPlaneAnchor) else { return }
143 | let sphereNode = generateSphereNode()
144 | DispatchQueue.main.async {
145 | node.addChildNode(sphereNode)
146 | }
147 | }
148 |
149 | }
150 |
151 | extension float4x4 {
152 | var translation: float3 {
153 | let translation = self.columns.3
154 | return float3(translation.x, translation.y, translation.z)
155 | }
156 | }
157 |
158 | extension UIColor {
159 | open class var transparentWhite: UIColor {
160 | return UIColor.white.withAlphaComponent(0.70)
161 | }
162 | }
163 |
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/ARKitWorkingWithWorldMapData.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | FA092C6A211F95AD00172B2F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA092C69211F95AD00172B2F /* AppDelegate.swift */; };
11 | FA092C6C211F95AD00172B2F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA092C6B211F95AD00172B2F /* ViewController.swift */; };
12 | FA092C6F211F95AD00172B2F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FA092C6D211F95AD00172B2F /* Main.storyboard */; };
13 | FA092C71211F95AE00172B2F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FA092C70211F95AE00172B2F /* Assets.xcassets */; };
14 | FA092C74211F95AE00172B2F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FA092C72211F95AE00172B2F /* LaunchScreen.storyboard */; };
15 | /* End PBXBuildFile section */
16 |
17 | /* Begin PBXFileReference section */
18 | FA092C66211F95AD00172B2F /* ARKitWorkingWithWorldMapData.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ARKitWorkingWithWorldMapData.app; sourceTree = BUILT_PRODUCTS_DIR; };
19 | FA092C69211F95AD00172B2F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
20 | FA092C6B211F95AD00172B2F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
21 | FA092C6E211F95AD00172B2F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
22 | FA092C70211F95AE00172B2F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
23 | FA092C73211F95AE00172B2F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
24 | FA092C75211F95AE00172B2F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
25 | /* End PBXFileReference section */
26 |
27 | /* Begin PBXFrameworksBuildPhase section */
28 | FA092C63211F95AD00172B2F /* Frameworks */ = {
29 | isa = PBXFrameworksBuildPhase;
30 | buildActionMask = 2147483647;
31 | files = (
32 | );
33 | runOnlyForDeploymentPostprocessing = 0;
34 | };
35 | /* End PBXFrameworksBuildPhase section */
36 |
37 | /* Begin PBXGroup section */
38 | FA092C5D211F95AD00172B2F = {
39 | isa = PBXGroup;
40 | children = (
41 | FA092C68211F95AD00172B2F /* ARKitWorkingWithWorldMapData */,
42 | FA092C67211F95AD00172B2F /* Products */,
43 | );
44 | sourceTree = "";
45 | };
46 | FA092C67211F95AD00172B2F /* Products */ = {
47 | isa = PBXGroup;
48 | children = (
49 | FA092C66211F95AD00172B2F /* ARKitWorkingWithWorldMapData.app */,
50 | );
51 | name = Products;
52 | sourceTree = "";
53 | };
54 | FA092C68211F95AD00172B2F /* ARKitWorkingWithWorldMapData */ = {
55 | isa = PBXGroup;
56 | children = (
57 | FA092C69211F95AD00172B2F /* AppDelegate.swift */,
58 | FA092C6B211F95AD00172B2F /* ViewController.swift */,
59 | FA092C6D211F95AD00172B2F /* Main.storyboard */,
60 | FA092C70211F95AE00172B2F /* Assets.xcassets */,
61 | FA092C72211F95AE00172B2F /* LaunchScreen.storyboard */,
62 | FA092C75211F95AE00172B2F /* Info.plist */,
63 | );
64 | path = ARKitWorkingWithWorldMapData;
65 | sourceTree = "";
66 | };
67 | /* End PBXGroup section */
68 |
69 | /* Begin PBXNativeTarget section */
70 | FA092C65211F95AD00172B2F /* ARKitWorkingWithWorldMapData */ = {
71 | isa = PBXNativeTarget;
72 | buildConfigurationList = FA092C78211F95AE00172B2F /* Build configuration list for PBXNativeTarget "ARKitWorkingWithWorldMapData" */;
73 | buildPhases = (
74 | FA092C62211F95AD00172B2F /* Sources */,
75 | FA092C63211F95AD00172B2F /* Frameworks */,
76 | FA092C64211F95AD00172B2F /* Resources */,
77 | );
78 | buildRules = (
79 | );
80 | dependencies = (
81 | );
82 | name = ARKitWorkingWithWorldMapData;
83 | productName = ARKitWorkingWithWorldMapData;
84 | productReference = FA092C66211F95AD00172B2F /* ARKitWorkingWithWorldMapData.app */;
85 | productType = "com.apple.product-type.application";
86 | };
87 | /* End PBXNativeTarget section */
88 |
89 | /* Begin PBXProject section */
90 | FA092C5E211F95AD00172B2F /* Project object */ = {
91 | isa = PBXProject;
92 | attributes = {
93 | LastSwiftUpdateCheck = 1000;
94 | LastUpgradeCheck = 1000;
95 | ORGANIZATIONNAME = "Jayven Nhan";
96 | TargetAttributes = {
97 | FA092C65211F95AD00172B2F = {
98 | CreatedOnToolsVersion = 10.0;
99 | };
100 | };
101 | };
102 | buildConfigurationList = FA092C61211F95AD00172B2F /* Build configuration list for PBXProject "ARKitWorkingWithWorldMapData" */;
103 | compatibilityVersion = "Xcode 9.3";
104 | developmentRegion = en;
105 | hasScannedForEncodings = 0;
106 | knownRegions = (
107 | en,
108 | Base,
109 | );
110 | mainGroup = FA092C5D211F95AD00172B2F;
111 | productRefGroup = FA092C67211F95AD00172B2F /* Products */;
112 | projectDirPath = "";
113 | projectRoot = "";
114 | targets = (
115 | FA092C65211F95AD00172B2F /* ARKitWorkingWithWorldMapData */,
116 | );
117 | };
118 | /* End PBXProject section */
119 |
120 | /* Begin PBXResourcesBuildPhase section */
121 | FA092C64211F95AD00172B2F /* Resources */ = {
122 | isa = PBXResourcesBuildPhase;
123 | buildActionMask = 2147483647;
124 | files = (
125 | FA092C74211F95AE00172B2F /* LaunchScreen.storyboard in Resources */,
126 | FA092C71211F95AE00172B2F /* Assets.xcassets in Resources */,
127 | FA092C6F211F95AD00172B2F /* Main.storyboard in Resources */,
128 | );
129 | runOnlyForDeploymentPostprocessing = 0;
130 | };
131 | /* End PBXResourcesBuildPhase section */
132 |
133 | /* Begin PBXSourcesBuildPhase section */
134 | FA092C62211F95AD00172B2F /* Sources */ = {
135 | isa = PBXSourcesBuildPhase;
136 | buildActionMask = 2147483647;
137 | files = (
138 | FA092C6C211F95AD00172B2F /* ViewController.swift in Sources */,
139 | FA092C6A211F95AD00172B2F /* AppDelegate.swift in Sources */,
140 | );
141 | runOnlyForDeploymentPostprocessing = 0;
142 | };
143 | /* End PBXSourcesBuildPhase section */
144 |
145 | /* Begin PBXVariantGroup section */
146 | FA092C6D211F95AD00172B2F /* Main.storyboard */ = {
147 | isa = PBXVariantGroup;
148 | children = (
149 | FA092C6E211F95AD00172B2F /* Base */,
150 | );
151 | name = Main.storyboard;
152 | sourceTree = "";
153 | };
154 | FA092C72211F95AE00172B2F /* LaunchScreen.storyboard */ = {
155 | isa = PBXVariantGroup;
156 | children = (
157 | FA092C73211F95AE00172B2F /* Base */,
158 | );
159 | name = LaunchScreen.storyboard;
160 | sourceTree = "";
161 | };
162 | /* End PBXVariantGroup section */
163 |
164 | /* Begin XCBuildConfiguration section */
165 | FA092C76211F95AE00172B2F /* Debug */ = {
166 | isa = XCBuildConfiguration;
167 | buildSettings = {
168 | ALWAYS_SEARCH_USER_PATHS = NO;
169 | CLANG_ANALYZER_NONNULL = YES;
170 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
171 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
172 | CLANG_CXX_LIBRARY = "libc++";
173 | CLANG_ENABLE_MODULES = YES;
174 | CLANG_ENABLE_OBJC_ARC = YES;
175 | CLANG_ENABLE_OBJC_WEAK = YES;
176 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
177 | CLANG_WARN_BOOL_CONVERSION = YES;
178 | CLANG_WARN_COMMA = YES;
179 | CLANG_WARN_CONSTANT_CONVERSION = YES;
180 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
181 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
182 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
183 | CLANG_WARN_EMPTY_BODY = YES;
184 | CLANG_WARN_ENUM_CONVERSION = YES;
185 | CLANG_WARN_INFINITE_RECURSION = YES;
186 | CLANG_WARN_INT_CONVERSION = YES;
187 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
188 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
189 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
190 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
191 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
192 | CLANG_WARN_STRICT_PROTOTYPES = YES;
193 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
194 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
195 | CLANG_WARN_UNREACHABLE_CODE = YES;
196 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
197 | CODE_SIGN_IDENTITY = "iPhone Developer";
198 | COPY_PHASE_STRIP = NO;
199 | DEBUG_INFORMATION_FORMAT = dwarf;
200 | ENABLE_STRICT_OBJC_MSGSEND = YES;
201 | ENABLE_TESTABILITY = YES;
202 | GCC_C_LANGUAGE_STANDARD = gnu11;
203 | GCC_DYNAMIC_NO_PIC = NO;
204 | GCC_NO_COMMON_BLOCKS = YES;
205 | GCC_OPTIMIZATION_LEVEL = 0;
206 | GCC_PREPROCESSOR_DEFINITIONS = (
207 | "DEBUG=1",
208 | "$(inherited)",
209 | );
210 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
211 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
212 | GCC_WARN_UNDECLARED_SELECTOR = YES;
213 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
214 | GCC_WARN_UNUSED_FUNCTION = YES;
215 | GCC_WARN_UNUSED_VARIABLE = YES;
216 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
217 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
218 | MTL_FAST_MATH = YES;
219 | ONLY_ACTIVE_ARCH = YES;
220 | SDKROOT = iphoneos;
221 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
222 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
223 | };
224 | name = Debug;
225 | };
226 | FA092C77211F95AE00172B2F /* Release */ = {
227 | isa = XCBuildConfiguration;
228 | buildSettings = {
229 | ALWAYS_SEARCH_USER_PATHS = NO;
230 | CLANG_ANALYZER_NONNULL = YES;
231 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
232 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
233 | CLANG_CXX_LIBRARY = "libc++";
234 | CLANG_ENABLE_MODULES = YES;
235 | CLANG_ENABLE_OBJC_ARC = YES;
236 | CLANG_ENABLE_OBJC_WEAK = YES;
237 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
238 | CLANG_WARN_BOOL_CONVERSION = YES;
239 | CLANG_WARN_COMMA = YES;
240 | CLANG_WARN_CONSTANT_CONVERSION = YES;
241 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
242 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
243 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
244 | CLANG_WARN_EMPTY_BODY = YES;
245 | CLANG_WARN_ENUM_CONVERSION = YES;
246 | CLANG_WARN_INFINITE_RECURSION = YES;
247 | CLANG_WARN_INT_CONVERSION = YES;
248 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
249 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
250 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
251 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
252 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
253 | CLANG_WARN_STRICT_PROTOTYPES = YES;
254 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
255 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
256 | CLANG_WARN_UNREACHABLE_CODE = YES;
257 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
258 | CODE_SIGN_IDENTITY = "iPhone Developer";
259 | COPY_PHASE_STRIP = NO;
260 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
261 | ENABLE_NS_ASSERTIONS = NO;
262 | ENABLE_STRICT_OBJC_MSGSEND = YES;
263 | GCC_C_LANGUAGE_STANDARD = gnu11;
264 | GCC_NO_COMMON_BLOCKS = YES;
265 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
266 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
267 | GCC_WARN_UNDECLARED_SELECTOR = YES;
268 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
269 | GCC_WARN_UNUSED_FUNCTION = YES;
270 | GCC_WARN_UNUSED_VARIABLE = YES;
271 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
272 | MTL_ENABLE_DEBUG_INFO = NO;
273 | MTL_FAST_MATH = YES;
274 | SDKROOT = iphoneos;
275 | SWIFT_COMPILATION_MODE = wholemodule;
276 | SWIFT_OPTIMIZATION_LEVEL = "-O";
277 | VALIDATE_PRODUCT = YES;
278 | };
279 | name = Release;
280 | };
281 | FA092C79211F95AE00172B2F /* Debug */ = {
282 | isa = XCBuildConfiguration;
283 | buildSettings = {
284 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
285 | CODE_SIGN_STYLE = Automatic;
286 | DEVELOPMENT_TEAM = 3V8EPWEYFE;
287 | INFOPLIST_FILE = ARKitWorkingWithWorldMapData/Info.plist;
288 | LD_RUNPATH_SEARCH_PATHS = (
289 | "$(inherited)",
290 | "@executable_path/Frameworks",
291 | );
292 | PRODUCT_BUNDLE_IDENTIFIER = "Jayven-Nhan.ARKitWorkingWithWorldMapData";
293 | PRODUCT_NAME = "$(TARGET_NAME)";
294 | SWIFT_VERSION = 4.2;
295 | TARGETED_DEVICE_FAMILY = "1,2";
296 | };
297 | name = Debug;
298 | };
299 | FA092C7A211F95AE00172B2F /* Release */ = {
300 | isa = XCBuildConfiguration;
301 | buildSettings = {
302 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
303 | CODE_SIGN_STYLE = Automatic;
304 | DEVELOPMENT_TEAM = 3V8EPWEYFE;
305 | INFOPLIST_FILE = ARKitWorkingWithWorldMapData/Info.plist;
306 | LD_RUNPATH_SEARCH_PATHS = (
307 | "$(inherited)",
308 | "@executable_path/Frameworks",
309 | );
310 | PRODUCT_BUNDLE_IDENTIFIER = "Jayven-Nhan.ARKitWorkingWithWorldMapData";
311 | PRODUCT_NAME = "$(TARGET_NAME)";
312 | SWIFT_VERSION = 4.2;
313 | TARGETED_DEVICE_FAMILY = "1,2";
314 | };
315 | name = Release;
316 | };
317 | /* End XCBuildConfiguration section */
318 |
319 | /* Begin XCConfigurationList section */
320 | FA092C61211F95AD00172B2F /* Build configuration list for PBXProject "ARKitWorkingWithWorldMapData" */ = {
321 | isa = XCConfigurationList;
322 | buildConfigurations = (
323 | FA092C76211F95AE00172B2F /* Debug */,
324 | FA092C77211F95AE00172B2F /* Release */,
325 | );
326 | defaultConfigurationIsVisible = 0;
327 | defaultConfigurationName = Release;
328 | };
329 | FA092C78211F95AE00172B2F /* Build configuration list for PBXNativeTarget "ARKitWorkingWithWorldMapData" */ = {
330 | isa = XCConfigurationList;
331 | buildConfigurations = (
332 | FA092C79211F95AE00172B2F /* Debug */,
333 | FA092C7A211F95AE00172B2F /* Release */,
334 | );
335 | defaultConfigurationIsVisible = 0;
336 | defaultConfigurationName = Release;
337 | };
338 | /* End XCConfigurationList section */
339 | };
340 | rootObject = FA092C5E211F95AD00172B2F /* Project object */;
341 | }
342 |
--------------------------------------------------------------------------------