├── ARSceneKit ├── art.scnassets │ └── cherub │ │ └── Cherub_Vase_TEX.jpg ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard ├── Info.plist ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── AppDelegate.swift └── ViewController.swift ├── ARSceneKit.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── README.md ├── LICENSE └── .gitignore /ARSceneKit/art.scnassets/cherub/Cherub_Vase_TEX.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eh3rrera/ARKitSceneKitExample/HEAD/ARSceneKit/art.scnassets/cherub/Cherub_Vase_TEX.jpg -------------------------------------------------------------------------------- /ARSceneKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ARKitSceneKitExample 2 | Simple AR app made with ARKit and SceneKit. Follow the [tutorial at Pusher's blog](https://blog.pusher.com/building-an-ar-app-with-arkit-and-scenekit/). 3 | 4 | [![ARKit an SceneKit Example](https://img.youtube.com/vi/wc3lzPvTQfY/0.jpg)](http://www.youtube.com/watch?v=wc3lzPvTQfY) 5 | 6 | 7 | # Requirements 8 | 9 | - Xcode 9 10 | - iOS 11 11 | - An iOS device with an A9 or better processor (iPhone 6s or superior, iPad Pro, iPad 2017) 12 | 13 | # Installation 14 | 1. Clone this repository and `cd` into it. 15 | 2. Open the project in Xcode 9. 16 | 4. You have to run the project in a real device with iOS 11. AR won’t work in the simulator, so configure a team to sign your app (a paid developer account is not required for testing in one device). 17 | 18 | # Credits 19 | The following 3D model was used (modified a little bit with Blender): 20 | - [Old Cherub Vase](https://sketchfab.com/models/8c1daf56753d46a0844f7f6385cab7a6). This file is licensed under [Creative Commons Attribution](https://creativecommons.org/licenses/by/4.0/). 21 | 22 | 23 | # License 24 | MIT 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 Esteban Herrera 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. 22 | -------------------------------------------------------------------------------- /ARSceneKit/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 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## OS X temporary files that should never be committed 6 | .DS_Store 7 | 8 | ## Build generated 9 | build/ 10 | DerivedData/ 11 | 12 | ## Various settings 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata/ 22 | 23 | ## Other 24 | *.moved-aside 25 | *.xcuserstate 26 | 27 | ## Obj-C/Swift specific 28 | *.hmap 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | ## Playgrounds 34 | timeline.xctimeline 35 | playground.xcworkspace 36 | 37 | # Swift Package Manager 38 | # 39 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 40 | # Packages/ 41 | .build/ 42 | 43 | # CocoaPods 44 | # 45 | # We recommend against adding the Pods directory to your .gitignore. However 46 | # you should judge for yourself, the pros and cons are mentioned at: 47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 48 | # 49 | # Pods/ 50 | 51 | # Carthage 52 | # 53 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 54 | # Carthage/Checkouts 55 | 56 | Carthage/Build 57 | 58 | # fastlane 59 | # 60 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 61 | # screenshots whenever they are needed. 62 | # For more information about the recommended setup visit: 63 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 64 | 65 | fastlane/report.xml 66 | fastlane/Preview.html 67 | fastlane/screenshots 68 | fastlane/test_output 69 | -------------------------------------------------------------------------------- /ARSceneKit/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 | This application will use the camera for Augmented Reality. 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UIStatusBarHidden 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /ARSceneKit/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 | 27 | 28 | -------------------------------------------------------------------------------- /ARSceneKit/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 | } -------------------------------------------------------------------------------- /ARSceneKit/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ARSceneKit 4 | // 5 | // Created by Esteban Herrera on 7/7/17. 6 | // Copyright © 2017 Esteban Herrera. 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: [UIApplicationLaunchOptionsKey: 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 | -------------------------------------------------------------------------------- /ARSceneKit/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ARSceneKit 4 | // 5 | // Created by Esteban Herrera on 7/7/17. 6 | // Copyright © 2017 Esteban Herrera. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SceneKit 11 | import ARKit 12 | 13 | class ViewController: UIViewController, ARSCNViewDelegate { 14 | 15 | @IBOutlet var sceneView: ARSCNView! 16 | 17 | var nodeModel:SCNNode! 18 | let nodeName = "cherub" 19 | 20 | override func viewDidLoad() { 21 | super.viewDidLoad() 22 | 23 | // Set the view's delegate 24 | sceneView.delegate = self 25 | 26 | // Show statistics such as fps and timing information 27 | sceneView.showsStatistics = true 28 | //sceneView.debugOptions = [ARSCNDebugOptions.showFeaturePoints, ARSCNDebugOptions.showWorldOrigin] 29 | sceneView.antialiasingMode = .multisampling4X 30 | 31 | // Create a new scene 32 | let scene = SCNScene() 33 | 34 | // Set the scene to the view 35 | sceneView.scene = scene 36 | 37 | let modelScene = SCNScene(named: 38 | "art.scnassets/cherub/cherub.dae")! 39 | 40 | nodeModel = modelScene.rootNode.childNode(withName: nodeName, recursively: true) 41 | } 42 | 43 | override func viewWillAppear(_ animated: Bool) { 44 | super.viewWillAppear(animated) 45 | 46 | // Create a session configuration 47 | let configuration = ARWorldTrackingConfiguration() 48 | 49 | // Run the view's session 50 | sceneView.session.run(configuration) 51 | } 52 | 53 | override func viewWillDisappear(_ animated: Bool) { 54 | super.viewWillDisappear(animated) 55 | 56 | // Pause the view's session 57 | sceneView.session.pause() 58 | } 59 | 60 | override func didReceiveMemoryWarning() { 61 | super.didReceiveMemoryWarning() 62 | // Release any cached data, images, etc that aren't in use. 63 | } 64 | 65 | override func touchesBegan(_ touches: Set, with event: UIEvent?) { 66 | 67 | let location = touches.first!.location(in: sceneView) 68 | 69 | // Let's test if a 3D Object was touch 70 | var hitTestOptions = [SCNHitTestOption: Any]() 71 | hitTestOptions[SCNHitTestOption.boundingBoxOnly] = true 72 | 73 | let hitResults: [SCNHitTestResult] = sceneView.hitTest(location, options: hitTestOptions) 74 | 75 | if let hit = hitResults.first { 76 | if let node = getParent(hit.node) { 77 | node.removeFromParentNode() 78 | return 79 | } 80 | } 81 | 82 | // No object was touch? Try feature points 83 | let hitResultsFeaturePoints: [ARHitTestResult] = sceneView.hitTest(location, types: .featurePoint) 84 | 85 | if let hit = hitResultsFeaturePoints.first { 86 | 87 | // Get the rotation matrix of the camera 88 | let rotate = simd_float4x4(SCNMatrix4MakeRotation(sceneView.session.currentFrame!.camera.eulerAngles.y, 0, 1, 0)) 89 | 90 | // Combine the matrices 91 | let finalTransform = simd_mul(hit.worldTransform, rotate) 92 | sceneView.session.add(anchor: ARAnchor(transform: finalTransform)) 93 | //sceneView.session.add(anchor: ARAnchor(transform: hit.worldTransform)) 94 | } 95 | 96 | } 97 | 98 | func getParent(_ nodeFound: SCNNode?) -> SCNNode? { 99 | if let node = nodeFound { 100 | if node.name == nodeName { 101 | return node 102 | } else if let parent = node.parent { 103 | return getParent(parent) 104 | } 105 | } 106 | return nil 107 | } 108 | 109 | // MARK: - ARSCNViewDelegate 110 | 111 | func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) { 112 | if !anchor.isKind(of: ARPlaneAnchor.self) { 113 | DispatchQueue.main.async { 114 | let modelClone = self.nodeModel.clone() 115 | modelClone.position = SCNVector3Zero 116 | 117 | // Add model as a child of the node 118 | node.addChildNode(modelClone) 119 | } 120 | } 121 | } 122 | 123 | /* 124 | // Override to create and configure nodes for anchors added to the view's session. 125 | func renderer(_ renderer: SCNSceneRenderer, nodeFor anchor: ARAnchor) -> SCNNode? { 126 | let node = SCNNode() 127 | 128 | return node 129 | } 130 | */ 131 | 132 | func session(_ session: ARSession, didFailWithError error: Error) { 133 | // Present an error message to the user 134 | 135 | } 136 | 137 | func sessionWasInterrupted(_ session: ARSession) { 138 | // Inform the user that the session has been interrupted, for example, by presenting an overlay 139 | 140 | } 141 | 142 | func sessionInterruptionEnded(_ session: ARSession) { 143 | // Reset tracking and/or remove existing anchors if consistent tracking is required 144 | 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /ARSceneKit.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | E4231FD01F0FEAD500CBE4C1 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4231FCF1F0FEAD500CBE4C1 /* AppDelegate.swift */; }; 11 | E4231FD21F0FEAD500CBE4C1 /* art.scnassets in Resources */ = {isa = PBXBuildFile; fileRef = E4231FD11F0FEAD500CBE4C1 /* art.scnassets */; }; 12 | E4231FD41F0FEAD500CBE4C1 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4231FD31F0FEAD500CBE4C1 /* ViewController.swift */; }; 13 | E4231FD71F0FEAD500CBE4C1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E4231FD51F0FEAD500CBE4C1 /* Main.storyboard */; }; 14 | E4231FD91F0FEAD500CBE4C1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E4231FD81F0FEAD500CBE4C1 /* Assets.xcassets */; }; 15 | E4231FDC1F0FEAD500CBE4C1 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E4231FDA1F0FEAD500CBE4C1 /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | E4231FCC1F0FEAD500CBE4C1 /* ARSceneKit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ARSceneKit.app; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | E4231FCF1F0FEAD500CBE4C1 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 21 | E4231FD11F0FEAD500CBE4C1 /* art.scnassets */ = {isa = PBXFileReference; lastKnownFileType = wrapper.scnassets; path = art.scnassets; sourceTree = ""; }; 22 | E4231FD31F0FEAD500CBE4C1 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 23 | E4231FD61F0FEAD500CBE4C1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 24 | E4231FD81F0FEAD500CBE4C1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 25 | E4231FDB1F0FEAD500CBE4C1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 26 | E4231FDD1F0FEAD500CBE4C1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | /* End PBXFileReference section */ 28 | 29 | /* Begin PBXFrameworksBuildPhase section */ 30 | E4231FC91F0FEAD500CBE4C1 /* Frameworks */ = { 31 | isa = PBXFrameworksBuildPhase; 32 | buildActionMask = 2147483647; 33 | files = ( 34 | ); 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXFrameworksBuildPhase section */ 38 | 39 | /* Begin PBXGroup section */ 40 | E4231FC31F0FEAD500CBE4C1 = { 41 | isa = PBXGroup; 42 | children = ( 43 | E4231FCE1F0FEAD500CBE4C1 /* ARSceneKit */, 44 | E4231FCD1F0FEAD500CBE4C1 /* Products */, 45 | ); 46 | sourceTree = ""; 47 | }; 48 | E4231FCD1F0FEAD500CBE4C1 /* Products */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | E4231FCC1F0FEAD500CBE4C1 /* ARSceneKit.app */, 52 | ); 53 | name = Products; 54 | sourceTree = ""; 55 | }; 56 | E4231FCE1F0FEAD500CBE4C1 /* ARSceneKit */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | E4231FCF1F0FEAD500CBE4C1 /* AppDelegate.swift */, 60 | E4231FD11F0FEAD500CBE4C1 /* art.scnassets */, 61 | E4231FD31F0FEAD500CBE4C1 /* ViewController.swift */, 62 | E4231FD51F0FEAD500CBE4C1 /* Main.storyboard */, 63 | E4231FD81F0FEAD500CBE4C1 /* Assets.xcassets */, 64 | E4231FDA1F0FEAD500CBE4C1 /* LaunchScreen.storyboard */, 65 | E4231FDD1F0FEAD500CBE4C1 /* Info.plist */, 66 | ); 67 | path = ARSceneKit; 68 | sourceTree = ""; 69 | }; 70 | /* End PBXGroup section */ 71 | 72 | /* Begin PBXNativeTarget section */ 73 | E4231FCB1F0FEAD500CBE4C1 /* ARSceneKit */ = { 74 | isa = PBXNativeTarget; 75 | buildConfigurationList = E4231FE01F0FEAD500CBE4C1 /* Build configuration list for PBXNativeTarget "ARSceneKit" */; 76 | buildPhases = ( 77 | E4231FC81F0FEAD500CBE4C1 /* Sources */, 78 | E4231FC91F0FEAD500CBE4C1 /* Frameworks */, 79 | E4231FCA1F0FEAD500CBE4C1 /* Resources */, 80 | ); 81 | buildRules = ( 82 | ); 83 | dependencies = ( 84 | ); 85 | name = ARSceneKit; 86 | productName = ARSceneKit; 87 | productReference = E4231FCC1F0FEAD500CBE4C1 /* ARSceneKit.app */; 88 | productType = "com.apple.product-type.application"; 89 | }; 90 | /* End PBXNativeTarget section */ 91 | 92 | /* Begin PBXProject section */ 93 | E4231FC41F0FEAD500CBE4C1 /* Project object */ = { 94 | isa = PBXProject; 95 | attributes = { 96 | LastSwiftUpdateCheck = 0900; 97 | LastUpgradeCheck = 0900; 98 | ORGANIZATIONNAME = "Esteban Herrera"; 99 | TargetAttributes = { 100 | E4231FCB1F0FEAD500CBE4C1 = { 101 | CreatedOnToolsVersion = 9.0; 102 | }; 103 | }; 104 | }; 105 | buildConfigurationList = E4231FC71F0FEAD500CBE4C1 /* Build configuration list for PBXProject "ARSceneKit" */; 106 | compatibilityVersion = "Xcode 8.0"; 107 | developmentRegion = en; 108 | hasScannedForEncodings = 0; 109 | knownRegions = ( 110 | en, 111 | Base, 112 | ); 113 | mainGroup = E4231FC31F0FEAD500CBE4C1; 114 | productRefGroup = E4231FCD1F0FEAD500CBE4C1 /* Products */; 115 | projectDirPath = ""; 116 | projectRoot = ""; 117 | targets = ( 118 | E4231FCB1F0FEAD500CBE4C1 /* ARSceneKit */, 119 | ); 120 | }; 121 | /* End PBXProject section */ 122 | 123 | /* Begin PBXResourcesBuildPhase section */ 124 | E4231FCA1F0FEAD500CBE4C1 /* Resources */ = { 125 | isa = PBXResourcesBuildPhase; 126 | buildActionMask = 2147483647; 127 | files = ( 128 | E4231FD21F0FEAD500CBE4C1 /* art.scnassets in Resources */, 129 | E4231FDC1F0FEAD500CBE4C1 /* LaunchScreen.storyboard in Resources */, 130 | E4231FD91F0FEAD500CBE4C1 /* Assets.xcassets in Resources */, 131 | E4231FD71F0FEAD500CBE4C1 /* Main.storyboard in Resources */, 132 | ); 133 | runOnlyForDeploymentPostprocessing = 0; 134 | }; 135 | /* End PBXResourcesBuildPhase section */ 136 | 137 | /* Begin PBXSourcesBuildPhase section */ 138 | E4231FC81F0FEAD500CBE4C1 /* Sources */ = { 139 | isa = PBXSourcesBuildPhase; 140 | buildActionMask = 2147483647; 141 | files = ( 142 | E4231FD41F0FEAD500CBE4C1 /* ViewController.swift in Sources */, 143 | E4231FD01F0FEAD500CBE4C1 /* AppDelegate.swift in Sources */, 144 | ); 145 | runOnlyForDeploymentPostprocessing = 0; 146 | }; 147 | /* End PBXSourcesBuildPhase section */ 148 | 149 | /* Begin PBXVariantGroup section */ 150 | E4231FD51F0FEAD500CBE4C1 /* Main.storyboard */ = { 151 | isa = PBXVariantGroup; 152 | children = ( 153 | E4231FD61F0FEAD500CBE4C1 /* Base */, 154 | ); 155 | name = Main.storyboard; 156 | sourceTree = ""; 157 | }; 158 | E4231FDA1F0FEAD500CBE4C1 /* LaunchScreen.storyboard */ = { 159 | isa = PBXVariantGroup; 160 | children = ( 161 | E4231FDB1F0FEAD500CBE4C1 /* Base */, 162 | ); 163 | name = LaunchScreen.storyboard; 164 | sourceTree = ""; 165 | }; 166 | /* End PBXVariantGroup section */ 167 | 168 | /* Begin XCBuildConfiguration section */ 169 | E4231FDE1F0FEAD500CBE4C1 /* Debug */ = { 170 | isa = XCBuildConfiguration; 171 | buildSettings = { 172 | ALWAYS_SEARCH_USER_PATHS = NO; 173 | CLANG_ANALYZER_NONNULL = YES; 174 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 175 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 176 | CLANG_CXX_LIBRARY = "libc++"; 177 | CLANG_ENABLE_MODULES = YES; 178 | CLANG_ENABLE_OBJC_ARC = YES; 179 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 180 | CLANG_WARN_BOOL_CONVERSION = YES; 181 | CLANG_WARN_COMMA = YES; 182 | CLANG_WARN_CONSTANT_CONVERSION = YES; 183 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 184 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 185 | CLANG_WARN_EMPTY_BODY = YES; 186 | CLANG_WARN_ENUM_CONVERSION = YES; 187 | CLANG_WARN_INFINITE_RECURSION = YES; 188 | CLANG_WARN_INT_CONVERSION = YES; 189 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 190 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 191 | CLANG_WARN_STRICT_PROTOTYPES = YES; 192 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 193 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 194 | CLANG_WARN_UNREACHABLE_CODE = YES; 195 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 196 | CODE_SIGN_IDENTITY = "iPhone Developer"; 197 | COPY_PHASE_STRIP = NO; 198 | DEBUG_INFORMATION_FORMAT = dwarf; 199 | ENABLE_STRICT_OBJC_MSGSEND = YES; 200 | ENABLE_TESTABILITY = YES; 201 | GCC_C_LANGUAGE_STANDARD = gnu11; 202 | GCC_DYNAMIC_NO_PIC = NO; 203 | GCC_NO_COMMON_BLOCKS = YES; 204 | GCC_OPTIMIZATION_LEVEL = 0; 205 | GCC_PREPROCESSOR_DEFINITIONS = ( 206 | "DEBUG=1", 207 | "$(inherited)", 208 | ); 209 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 210 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 211 | GCC_WARN_UNDECLARED_SELECTOR = YES; 212 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 213 | GCC_WARN_UNUSED_FUNCTION = YES; 214 | GCC_WARN_UNUSED_VARIABLE = YES; 215 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 216 | MTL_ENABLE_DEBUG_INFO = YES; 217 | ONLY_ACTIVE_ARCH = YES; 218 | SDKROOT = iphoneos; 219 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 220 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 221 | }; 222 | name = Debug; 223 | }; 224 | E4231FDF1F0FEAD500CBE4C1 /* Release */ = { 225 | isa = XCBuildConfiguration; 226 | buildSettings = { 227 | ALWAYS_SEARCH_USER_PATHS = NO; 228 | CLANG_ANALYZER_NONNULL = YES; 229 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 230 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 231 | CLANG_CXX_LIBRARY = "libc++"; 232 | CLANG_ENABLE_MODULES = YES; 233 | CLANG_ENABLE_OBJC_ARC = YES; 234 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 235 | CLANG_WARN_BOOL_CONVERSION = YES; 236 | CLANG_WARN_COMMA = YES; 237 | CLANG_WARN_CONSTANT_CONVERSION = YES; 238 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 239 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 240 | CLANG_WARN_EMPTY_BODY = YES; 241 | CLANG_WARN_ENUM_CONVERSION = YES; 242 | CLANG_WARN_INFINITE_RECURSION = YES; 243 | CLANG_WARN_INT_CONVERSION = YES; 244 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 245 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 246 | CLANG_WARN_STRICT_PROTOTYPES = YES; 247 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 248 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 249 | CLANG_WARN_UNREACHABLE_CODE = YES; 250 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 251 | CODE_SIGN_IDENTITY = "iPhone Developer"; 252 | COPY_PHASE_STRIP = NO; 253 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 254 | ENABLE_NS_ASSERTIONS = NO; 255 | ENABLE_STRICT_OBJC_MSGSEND = YES; 256 | GCC_C_LANGUAGE_STANDARD = gnu11; 257 | GCC_NO_COMMON_BLOCKS = YES; 258 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 259 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 260 | GCC_WARN_UNDECLARED_SELECTOR = YES; 261 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 262 | GCC_WARN_UNUSED_FUNCTION = YES; 263 | GCC_WARN_UNUSED_VARIABLE = YES; 264 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 265 | MTL_ENABLE_DEBUG_INFO = NO; 266 | SDKROOT = iphoneos; 267 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 268 | VALIDATE_PRODUCT = YES; 269 | }; 270 | name = Release; 271 | }; 272 | E4231FE11F0FEAD500CBE4C1 /* Debug */ = { 273 | isa = XCBuildConfiguration; 274 | buildSettings = { 275 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 276 | DEVELOPMENT_TEAM = ""; 277 | INFOPLIST_FILE = ARSceneKit/Info.plist; 278 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 279 | PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.ARSceneKit; 280 | PRODUCT_NAME = "$(TARGET_NAME)"; 281 | SWIFT_VERSION = 4.0; 282 | TARGETED_DEVICE_FAMILY = "1,2"; 283 | }; 284 | name = Debug; 285 | }; 286 | E4231FE21F0FEAD500CBE4C1 /* Release */ = { 287 | isa = XCBuildConfiguration; 288 | buildSettings = { 289 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 290 | DEVELOPMENT_TEAM = ""; 291 | INFOPLIST_FILE = ARSceneKit/Info.plist; 292 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 293 | PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.ARSceneKit; 294 | PRODUCT_NAME = "$(TARGET_NAME)"; 295 | SWIFT_VERSION = 4.0; 296 | TARGETED_DEVICE_FAMILY = "1,2"; 297 | }; 298 | name = Release; 299 | }; 300 | /* End XCBuildConfiguration section */ 301 | 302 | /* Begin XCConfigurationList section */ 303 | E4231FC71F0FEAD500CBE4C1 /* Build configuration list for PBXProject "ARSceneKit" */ = { 304 | isa = XCConfigurationList; 305 | buildConfigurations = ( 306 | E4231FDE1F0FEAD500CBE4C1 /* Debug */, 307 | E4231FDF1F0FEAD500CBE4C1 /* Release */, 308 | ); 309 | defaultConfigurationIsVisible = 0; 310 | defaultConfigurationName = Release; 311 | }; 312 | E4231FE01F0FEAD500CBE4C1 /* Build configuration list for PBXNativeTarget "ARSceneKit" */ = { 313 | isa = XCConfigurationList; 314 | buildConfigurations = ( 315 | E4231FE11F0FEAD500CBE4C1 /* Debug */, 316 | E4231FE21F0FEAD500CBE4C1 /* Release */, 317 | ); 318 | defaultConfigurationIsVisible = 0; 319 | }; 320 | /* End XCConfigurationList section */ 321 | }; 322 | rootObject = E4231FC41F0FEAD500CBE4C1 /* Project object */; 323 | } 324 | --------------------------------------------------------------------------------