├── ARCube
├── art.scnassets
│ ├── ship.scn
│ └── texture.png
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.storyboard
├── Info.plist
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── AppDelegate.swift
└── ViewController.swift
├── ARCube.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── xcuserdata
│ └── joseph.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
└── project.pbxproj
├── ARCubeTests
├── Info.plist
└── ARCubeTests.swift
└── ARCubeUITests
├── Info.plist
└── ARCubeUITests.swift
/ARCube/art.scnassets/ship.scn:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josephzhang23/ARCube/HEAD/ARCube/art.scnassets/ship.scn
--------------------------------------------------------------------------------
/ARCube/art.scnassets/texture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/josephzhang23/ARCube/HEAD/ARCube/art.scnassets/texture.png
--------------------------------------------------------------------------------
/ARCube.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ARCube.xcodeproj/xcuserdata/joseph.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ARCube.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ARCubeTests/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 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ARCubeUITests/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 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ARCubeTests/ARCubeTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ARCubeTests.swift
3 | // ARCubeTests
4 | //
5 | // Created by 张嘉夫 on 2017/7/9.
6 | // Copyright © 2017年 张嘉夫. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import ARCube
11 |
12 | class ARCubeTests: XCTestCase {
13 |
14 | override func setUp() {
15 | super.setUp()
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 | }
18 |
19 | override func tearDown() {
20 | // Put teardown code here. This method is called after the invocation of each test method in the class.
21 | super.tearDown()
22 | }
23 |
24 | func testExample() {
25 | // This is an example of a functional test case.
26 | // Use XCTAssert and related functions to verify your tests produce the correct results.
27 | }
28 |
29 | func testPerformanceExample() {
30 | // This is an example of a performance test case.
31 | self.measure {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/ARCubeUITests/ARCubeUITests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ARCubeUITests.swift
3 | // ARCubeUITests
4 | //
5 | // Created by 张嘉夫 on 2017/7/9.
6 | // Copyright © 2017年 张嘉夫. All rights reserved.
7 | //
8 |
9 | import XCTest
10 |
11 | class ARCubeUITests: XCTestCase {
12 |
13 | override func setUp() {
14 | super.setUp()
15 |
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 |
18 | // In UI tests it is usually best to stop immediately when a failure occurs.
19 | continueAfterFailure = false
20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
21 | XCUIApplication().launch()
22 |
23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
24 | }
25 |
26 | override func tearDown() {
27 | // Put teardown code here. This method is called after the invocation of each test method in the class.
28 | super.tearDown()
29 | }
30 |
31 | func testExample() {
32 | // Use recording to get started writing UI tests.
33 | // Use XCTAssert and related functions to verify your tests produce the correct results.
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/ARCube/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 |
--------------------------------------------------------------------------------
/ARCube/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 |
--------------------------------------------------------------------------------
/ARCube/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 |
--------------------------------------------------------------------------------
/ARCube/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 | "info" : {
90 | "version" : 1,
91 | "author" : "xcode"
92 | }
93 | }
--------------------------------------------------------------------------------
/ARCube/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // ARCube
4 | //
5 | // Created by 张嘉夫 on 2017/7/9.
6 | // Copyright © 2017年 张嘉夫. 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 |
--------------------------------------------------------------------------------
/ARCube/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // ARCube
4 | //
5 | // Created by 张嘉夫 on 2017/7/9.
6 | // Copyright © 2017年 张嘉夫. 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 | override func viewDidLoad() {
18 | super.viewDidLoad()
19 |
20 | // 存放所有 3D 几何体的容器
21 | let scene = SCNScene()
22 |
23 | // 想要绘制的 3D 立方体
24 | let boxGeometry = SCNBox(width: 0.1, height: 0.1, length: 0.1, chamferRadius: 0.0)
25 |
26 | // 将几何体包装为 node 以便添加到 scene
27 | let boxNode = SCNNode(geometry: boxGeometry)
28 |
29 | // 把 box 放在摄像头正前方
30 | boxNode.position = SCNVector3Make(0, 0, -0.5)
31 |
32 | // rootNode 是一个特殊的 node,它是所有 node 的起始点
33 | scene.rootNode.addChildNode(boxNode)
34 |
35 | // 将 scene 赋给 view
36 | sceneView.scene = scene
37 |
38 | sceneView.autoenablesDefaultLighting = true
39 | }
40 |
41 | override func viewWillAppear(_ animated: Bool) {
42 | super.viewWillAppear(animated)
43 |
44 | // Create a session configuration
45 | let configuration = ARWorldTrackingSessionConfiguration()
46 |
47 | // Run the view's session
48 | sceneView.session.run(configuration)
49 | }
50 |
51 | override func viewWillDisappear(_ animated: Bool) {
52 | super.viewWillDisappear(animated)
53 |
54 | // Pause the view's session
55 | sceneView.session.pause()
56 | }
57 |
58 | override func didReceiveMemoryWarning() {
59 | super.didReceiveMemoryWarning()
60 | // Release any cached data, images, etc that aren't in use.
61 | }
62 |
63 | // MARK: - ARSCNViewDelegate
64 |
65 | /*
66 | // Override to create and configure nodes for anchors added to the view's session.
67 | func renderer(_ renderer: SCNSceneRenderer, nodeFor anchor: ARAnchor) -> SCNNode? {
68 | let node = SCNNode()
69 |
70 | return node
71 | }
72 | */
73 |
74 | func session(_ session: ARSession, didFailWithError error: Error) {
75 | // Present an error message to the user
76 |
77 | }
78 |
79 | func sessionWasInterrupted(_ session: ARSession) {
80 | // Inform the user that the session has been interrupted, for example, by presenting an overlay
81 |
82 | }
83 |
84 | func sessionInterruptionEnded(_ session: ARSession) {
85 | // Reset tracking and/or remove existing anchors if consistent tracking is required
86 |
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/ARCube.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 48;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 7CE516461F11B31000D9A49F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CE516451F11B31000D9A49F /* AppDelegate.swift */; };
11 | 7CE516481F11B31000D9A49F /* art.scnassets in Resources */ = {isa = PBXBuildFile; fileRef = 7CE516471F11B31000D9A49F /* art.scnassets */; };
12 | 7CE5164A1F11B31000D9A49F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CE516491F11B31000D9A49F /* ViewController.swift */; };
13 | 7CE5164D1F11B31000D9A49F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7CE5164B1F11B31000D9A49F /* Main.storyboard */; };
14 | 7CE5164F1F11B31000D9A49F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7CE5164E1F11B31000D9A49F /* Assets.xcassets */; };
15 | 7CE516521F11B31000D9A49F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7CE516501F11B31000D9A49F /* LaunchScreen.storyboard */; };
16 | 7CE5165D1F11B31000D9A49F /* ARCubeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CE5165C1F11B31000D9A49F /* ARCubeTests.swift */; };
17 | 7CE516681F11B31000D9A49F /* ARCubeUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CE516671F11B31000D9A49F /* ARCubeUITests.swift */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXContainerItemProxy section */
21 | 7CE516591F11B31000D9A49F /* PBXContainerItemProxy */ = {
22 | isa = PBXContainerItemProxy;
23 | containerPortal = 7CE5163A1F11B31000D9A49F /* Project object */;
24 | proxyType = 1;
25 | remoteGlobalIDString = 7CE516411F11B31000D9A49F;
26 | remoteInfo = ARCube;
27 | };
28 | 7CE516641F11B31000D9A49F /* PBXContainerItemProxy */ = {
29 | isa = PBXContainerItemProxy;
30 | containerPortal = 7CE5163A1F11B31000D9A49F /* Project object */;
31 | proxyType = 1;
32 | remoteGlobalIDString = 7CE516411F11B31000D9A49F;
33 | remoteInfo = ARCube;
34 | };
35 | /* End PBXContainerItemProxy section */
36 |
37 | /* Begin PBXFileReference section */
38 | 7CE516421F11B31000D9A49F /* ARCube.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ARCube.app; sourceTree = BUILT_PRODUCTS_DIR; };
39 | 7CE516451F11B31000D9A49F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
40 | 7CE516471F11B31000D9A49F /* art.scnassets */ = {isa = PBXFileReference; lastKnownFileType = wrapper.scnassets; path = art.scnassets; sourceTree = ""; };
41 | 7CE516491F11B31000D9A49F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
42 | 7CE5164C1F11B31000D9A49F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
43 | 7CE5164E1F11B31000D9A49F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
44 | 7CE516511F11B31000D9A49F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
45 | 7CE516531F11B31000D9A49F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
46 | 7CE516581F11B31000D9A49F /* ARCubeTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ARCubeTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
47 | 7CE5165C1F11B31000D9A49F /* ARCubeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ARCubeTests.swift; sourceTree = ""; };
48 | 7CE5165E1F11B31000D9A49F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
49 | 7CE516631F11B31000D9A49F /* ARCubeUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ARCubeUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 7CE516671F11B31000D9A49F /* ARCubeUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ARCubeUITests.swift; sourceTree = ""; };
51 | 7CE516691F11B31000D9A49F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
52 | /* End PBXFileReference section */
53 |
54 | /* Begin PBXFrameworksBuildPhase section */
55 | 7CE5163F1F11B31000D9A49F /* Frameworks */ = {
56 | isa = PBXFrameworksBuildPhase;
57 | buildActionMask = 2147483647;
58 | files = (
59 | );
60 | runOnlyForDeploymentPostprocessing = 0;
61 | };
62 | 7CE516551F11B31000D9A49F /* Frameworks */ = {
63 | isa = PBXFrameworksBuildPhase;
64 | buildActionMask = 2147483647;
65 | files = (
66 | );
67 | runOnlyForDeploymentPostprocessing = 0;
68 | };
69 | 7CE516601F11B31000D9A49F /* Frameworks */ = {
70 | isa = PBXFrameworksBuildPhase;
71 | buildActionMask = 2147483647;
72 | files = (
73 | );
74 | runOnlyForDeploymentPostprocessing = 0;
75 | };
76 | /* End PBXFrameworksBuildPhase section */
77 |
78 | /* Begin PBXGroup section */
79 | 7CE516391F11B31000D9A49F = {
80 | isa = PBXGroup;
81 | children = (
82 | 7CE516441F11B31000D9A49F /* ARCube */,
83 | 7CE5165B1F11B31000D9A49F /* ARCubeTests */,
84 | 7CE516661F11B31000D9A49F /* ARCubeUITests */,
85 | 7CE516431F11B31000D9A49F /* Products */,
86 | );
87 | sourceTree = "";
88 | };
89 | 7CE516431F11B31000D9A49F /* Products */ = {
90 | isa = PBXGroup;
91 | children = (
92 | 7CE516421F11B31000D9A49F /* ARCube.app */,
93 | 7CE516581F11B31000D9A49F /* ARCubeTests.xctest */,
94 | 7CE516631F11B31000D9A49F /* ARCubeUITests.xctest */,
95 | );
96 | name = Products;
97 | sourceTree = "";
98 | };
99 | 7CE516441F11B31000D9A49F /* ARCube */ = {
100 | isa = PBXGroup;
101 | children = (
102 | 7CE516451F11B31000D9A49F /* AppDelegate.swift */,
103 | 7CE516471F11B31000D9A49F /* art.scnassets */,
104 | 7CE516491F11B31000D9A49F /* ViewController.swift */,
105 | 7CE5164B1F11B31000D9A49F /* Main.storyboard */,
106 | 7CE5164E1F11B31000D9A49F /* Assets.xcassets */,
107 | 7CE516501F11B31000D9A49F /* LaunchScreen.storyboard */,
108 | 7CE516531F11B31000D9A49F /* Info.plist */,
109 | );
110 | path = ARCube;
111 | sourceTree = "";
112 | };
113 | 7CE5165B1F11B31000D9A49F /* ARCubeTests */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 7CE5165C1F11B31000D9A49F /* ARCubeTests.swift */,
117 | 7CE5165E1F11B31000D9A49F /* Info.plist */,
118 | );
119 | path = ARCubeTests;
120 | sourceTree = "";
121 | };
122 | 7CE516661F11B31000D9A49F /* ARCubeUITests */ = {
123 | isa = PBXGroup;
124 | children = (
125 | 7CE516671F11B31000D9A49F /* ARCubeUITests.swift */,
126 | 7CE516691F11B31000D9A49F /* Info.plist */,
127 | );
128 | path = ARCubeUITests;
129 | sourceTree = "";
130 | };
131 | /* End PBXGroup section */
132 |
133 | /* Begin PBXNativeTarget section */
134 | 7CE516411F11B31000D9A49F /* ARCube */ = {
135 | isa = PBXNativeTarget;
136 | buildConfigurationList = 7CE5166C1F11B31000D9A49F /* Build configuration list for PBXNativeTarget "ARCube" */;
137 | buildPhases = (
138 | 7CE5163E1F11B31000D9A49F /* Sources */,
139 | 7CE5163F1F11B31000D9A49F /* Frameworks */,
140 | 7CE516401F11B31000D9A49F /* Resources */,
141 | );
142 | buildRules = (
143 | );
144 | dependencies = (
145 | );
146 | name = ARCube;
147 | productName = ARCube;
148 | productReference = 7CE516421F11B31000D9A49F /* ARCube.app */;
149 | productType = "com.apple.product-type.application";
150 | };
151 | 7CE516571F11B31000D9A49F /* ARCubeTests */ = {
152 | isa = PBXNativeTarget;
153 | buildConfigurationList = 7CE5166F1F11B31000D9A49F /* Build configuration list for PBXNativeTarget "ARCubeTests" */;
154 | buildPhases = (
155 | 7CE516541F11B31000D9A49F /* Sources */,
156 | 7CE516551F11B31000D9A49F /* Frameworks */,
157 | 7CE516561F11B31000D9A49F /* Resources */,
158 | );
159 | buildRules = (
160 | );
161 | dependencies = (
162 | 7CE5165A1F11B31000D9A49F /* PBXTargetDependency */,
163 | );
164 | name = ARCubeTests;
165 | productName = ARCubeTests;
166 | productReference = 7CE516581F11B31000D9A49F /* ARCubeTests.xctest */;
167 | productType = "com.apple.product-type.bundle.unit-test";
168 | };
169 | 7CE516621F11B31000D9A49F /* ARCubeUITests */ = {
170 | isa = PBXNativeTarget;
171 | buildConfigurationList = 7CE516721F11B31000D9A49F /* Build configuration list for PBXNativeTarget "ARCubeUITests" */;
172 | buildPhases = (
173 | 7CE5165F1F11B31000D9A49F /* Sources */,
174 | 7CE516601F11B31000D9A49F /* Frameworks */,
175 | 7CE516611F11B31000D9A49F /* Resources */,
176 | );
177 | buildRules = (
178 | );
179 | dependencies = (
180 | 7CE516651F11B31000D9A49F /* PBXTargetDependency */,
181 | );
182 | name = ARCubeUITests;
183 | productName = ARCubeUITests;
184 | productReference = 7CE516631F11B31000D9A49F /* ARCubeUITests.xctest */;
185 | productType = "com.apple.product-type.bundle.ui-testing";
186 | };
187 | /* End PBXNativeTarget section */
188 |
189 | /* Begin PBXProject section */
190 | 7CE5163A1F11B31000D9A49F /* Project object */ = {
191 | isa = PBXProject;
192 | attributes = {
193 | LastSwiftUpdateCheck = 0900;
194 | LastUpgradeCheck = 0900;
195 | ORGANIZATIONNAME = "张嘉夫";
196 | TargetAttributes = {
197 | 7CE516411F11B31000D9A49F = {
198 | CreatedOnToolsVersion = 9.0;
199 | };
200 | 7CE516571F11B31000D9A49F = {
201 | CreatedOnToolsVersion = 9.0;
202 | TestTargetID = 7CE516411F11B31000D9A49F;
203 | };
204 | 7CE516621F11B31000D9A49F = {
205 | CreatedOnToolsVersion = 9.0;
206 | TestTargetID = 7CE516411F11B31000D9A49F;
207 | };
208 | };
209 | };
210 | buildConfigurationList = 7CE5163D1F11B31000D9A49F /* Build configuration list for PBXProject "ARCube" */;
211 | compatibilityVersion = "Xcode 8.0";
212 | developmentRegion = en;
213 | hasScannedForEncodings = 0;
214 | knownRegions = (
215 | en,
216 | Base,
217 | );
218 | mainGroup = 7CE516391F11B31000D9A49F;
219 | productRefGroup = 7CE516431F11B31000D9A49F /* Products */;
220 | projectDirPath = "";
221 | projectRoot = "";
222 | targets = (
223 | 7CE516411F11B31000D9A49F /* ARCube */,
224 | 7CE516571F11B31000D9A49F /* ARCubeTests */,
225 | 7CE516621F11B31000D9A49F /* ARCubeUITests */,
226 | );
227 | };
228 | /* End PBXProject section */
229 |
230 | /* Begin PBXResourcesBuildPhase section */
231 | 7CE516401F11B31000D9A49F /* Resources */ = {
232 | isa = PBXResourcesBuildPhase;
233 | buildActionMask = 2147483647;
234 | files = (
235 | 7CE516481F11B31000D9A49F /* art.scnassets in Resources */,
236 | 7CE516521F11B31000D9A49F /* LaunchScreen.storyboard in Resources */,
237 | 7CE5164F1F11B31000D9A49F /* Assets.xcassets in Resources */,
238 | 7CE5164D1F11B31000D9A49F /* Main.storyboard in Resources */,
239 | );
240 | runOnlyForDeploymentPostprocessing = 0;
241 | };
242 | 7CE516561F11B31000D9A49F /* Resources */ = {
243 | isa = PBXResourcesBuildPhase;
244 | buildActionMask = 2147483647;
245 | files = (
246 | );
247 | runOnlyForDeploymentPostprocessing = 0;
248 | };
249 | 7CE516611F11B31000D9A49F /* Resources */ = {
250 | isa = PBXResourcesBuildPhase;
251 | buildActionMask = 2147483647;
252 | files = (
253 | );
254 | runOnlyForDeploymentPostprocessing = 0;
255 | };
256 | /* End PBXResourcesBuildPhase section */
257 |
258 | /* Begin PBXSourcesBuildPhase section */
259 | 7CE5163E1F11B31000D9A49F /* Sources */ = {
260 | isa = PBXSourcesBuildPhase;
261 | buildActionMask = 2147483647;
262 | files = (
263 | 7CE5164A1F11B31000D9A49F /* ViewController.swift in Sources */,
264 | 7CE516461F11B31000D9A49F /* AppDelegate.swift in Sources */,
265 | );
266 | runOnlyForDeploymentPostprocessing = 0;
267 | };
268 | 7CE516541F11B31000D9A49F /* Sources */ = {
269 | isa = PBXSourcesBuildPhase;
270 | buildActionMask = 2147483647;
271 | files = (
272 | 7CE5165D1F11B31000D9A49F /* ARCubeTests.swift in Sources */,
273 | );
274 | runOnlyForDeploymentPostprocessing = 0;
275 | };
276 | 7CE5165F1F11B31000D9A49F /* Sources */ = {
277 | isa = PBXSourcesBuildPhase;
278 | buildActionMask = 2147483647;
279 | files = (
280 | 7CE516681F11B31000D9A49F /* ARCubeUITests.swift in Sources */,
281 | );
282 | runOnlyForDeploymentPostprocessing = 0;
283 | };
284 | /* End PBXSourcesBuildPhase section */
285 |
286 | /* Begin PBXTargetDependency section */
287 | 7CE5165A1F11B31000D9A49F /* PBXTargetDependency */ = {
288 | isa = PBXTargetDependency;
289 | target = 7CE516411F11B31000D9A49F /* ARCube */;
290 | targetProxy = 7CE516591F11B31000D9A49F /* PBXContainerItemProxy */;
291 | };
292 | 7CE516651F11B31000D9A49F /* PBXTargetDependency */ = {
293 | isa = PBXTargetDependency;
294 | target = 7CE516411F11B31000D9A49F /* ARCube */;
295 | targetProxy = 7CE516641F11B31000D9A49F /* PBXContainerItemProxy */;
296 | };
297 | /* End PBXTargetDependency section */
298 |
299 | /* Begin PBXVariantGroup section */
300 | 7CE5164B1F11B31000D9A49F /* Main.storyboard */ = {
301 | isa = PBXVariantGroup;
302 | children = (
303 | 7CE5164C1F11B31000D9A49F /* Base */,
304 | );
305 | name = Main.storyboard;
306 | sourceTree = "";
307 | };
308 | 7CE516501F11B31000D9A49F /* LaunchScreen.storyboard */ = {
309 | isa = PBXVariantGroup;
310 | children = (
311 | 7CE516511F11B31000D9A49F /* Base */,
312 | );
313 | name = LaunchScreen.storyboard;
314 | sourceTree = "";
315 | };
316 | /* End PBXVariantGroup section */
317 |
318 | /* Begin XCBuildConfiguration section */
319 | 7CE5166A1F11B31000D9A49F /* Debug */ = {
320 | isa = XCBuildConfiguration;
321 | buildSettings = {
322 | ALWAYS_SEARCH_USER_PATHS = NO;
323 | CLANG_ANALYZER_NONNULL = YES;
324 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
325 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
326 | CLANG_CXX_LIBRARY = "libc++";
327 | CLANG_ENABLE_MODULES = YES;
328 | CLANG_ENABLE_OBJC_ARC = YES;
329 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
330 | CLANG_WARN_BOOL_CONVERSION = YES;
331 | CLANG_WARN_COMMA = YES;
332 | CLANG_WARN_CONSTANT_CONVERSION = YES;
333 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
334 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
335 | CLANG_WARN_EMPTY_BODY = YES;
336 | CLANG_WARN_ENUM_CONVERSION = YES;
337 | CLANG_WARN_INFINITE_RECURSION = YES;
338 | CLANG_WARN_INT_CONVERSION = YES;
339 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
340 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
341 | CLANG_WARN_STRICT_PROTOTYPES = YES;
342 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
343 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
344 | CLANG_WARN_UNREACHABLE_CODE = YES;
345 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
346 | CODE_SIGN_IDENTITY = "iPhone Developer";
347 | COPY_PHASE_STRIP = NO;
348 | DEBUG_INFORMATION_FORMAT = dwarf;
349 | ENABLE_STRICT_OBJC_MSGSEND = YES;
350 | ENABLE_TESTABILITY = YES;
351 | GCC_C_LANGUAGE_STANDARD = gnu11;
352 | GCC_DYNAMIC_NO_PIC = NO;
353 | GCC_NO_COMMON_BLOCKS = YES;
354 | GCC_OPTIMIZATION_LEVEL = 0;
355 | GCC_PREPROCESSOR_DEFINITIONS = (
356 | "DEBUG=1",
357 | "$(inherited)",
358 | );
359 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
360 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
361 | GCC_WARN_UNDECLARED_SELECTOR = YES;
362 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
363 | GCC_WARN_UNUSED_FUNCTION = YES;
364 | GCC_WARN_UNUSED_VARIABLE = YES;
365 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
366 | MTL_ENABLE_DEBUG_INFO = YES;
367 | ONLY_ACTIVE_ARCH = YES;
368 | SDKROOT = iphoneos;
369 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
370 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
371 | };
372 | name = Debug;
373 | };
374 | 7CE5166B1F11B31000D9A49F /* Release */ = {
375 | isa = XCBuildConfiguration;
376 | buildSettings = {
377 | ALWAYS_SEARCH_USER_PATHS = NO;
378 | CLANG_ANALYZER_NONNULL = YES;
379 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
380 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
381 | CLANG_CXX_LIBRARY = "libc++";
382 | CLANG_ENABLE_MODULES = YES;
383 | CLANG_ENABLE_OBJC_ARC = YES;
384 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
385 | CLANG_WARN_BOOL_CONVERSION = YES;
386 | CLANG_WARN_COMMA = YES;
387 | CLANG_WARN_CONSTANT_CONVERSION = YES;
388 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
389 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
390 | CLANG_WARN_EMPTY_BODY = YES;
391 | CLANG_WARN_ENUM_CONVERSION = YES;
392 | CLANG_WARN_INFINITE_RECURSION = YES;
393 | CLANG_WARN_INT_CONVERSION = YES;
394 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
395 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
396 | CLANG_WARN_STRICT_PROTOTYPES = YES;
397 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
398 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
399 | CLANG_WARN_UNREACHABLE_CODE = YES;
400 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
401 | CODE_SIGN_IDENTITY = "iPhone Developer";
402 | COPY_PHASE_STRIP = NO;
403 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
404 | ENABLE_NS_ASSERTIONS = NO;
405 | ENABLE_STRICT_OBJC_MSGSEND = YES;
406 | GCC_C_LANGUAGE_STANDARD = gnu11;
407 | GCC_NO_COMMON_BLOCKS = YES;
408 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
409 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
410 | GCC_WARN_UNDECLARED_SELECTOR = YES;
411 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
412 | GCC_WARN_UNUSED_FUNCTION = YES;
413 | GCC_WARN_UNUSED_VARIABLE = YES;
414 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
415 | MTL_ENABLE_DEBUG_INFO = NO;
416 | SDKROOT = iphoneos;
417 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
418 | VALIDATE_PRODUCT = YES;
419 | };
420 | name = Release;
421 | };
422 | 7CE5166D1F11B31000D9A49F /* Debug */ = {
423 | isa = XCBuildConfiguration;
424 | buildSettings = {
425 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
426 | DEVELOPMENT_TEAM = T4TW6Z2N88;
427 | INFOPLIST_FILE = ARCube/Info.plist;
428 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
429 | PRODUCT_BUNDLE_IDENTIFIER = social.street.ARCube;
430 | PRODUCT_NAME = "$(TARGET_NAME)";
431 | SWIFT_VERSION = 4.0;
432 | TARGETED_DEVICE_FAMILY = "1,2";
433 | };
434 | name = Debug;
435 | };
436 | 7CE5166E1F11B31000D9A49F /* Release */ = {
437 | isa = XCBuildConfiguration;
438 | buildSettings = {
439 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
440 | DEVELOPMENT_TEAM = T4TW6Z2N88;
441 | INFOPLIST_FILE = ARCube/Info.plist;
442 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
443 | PRODUCT_BUNDLE_IDENTIFIER = social.street.ARCube;
444 | PRODUCT_NAME = "$(TARGET_NAME)";
445 | SWIFT_VERSION = 4.0;
446 | TARGETED_DEVICE_FAMILY = "1,2";
447 | };
448 | name = Release;
449 | };
450 | 7CE516701F11B31000D9A49F /* Debug */ = {
451 | isa = XCBuildConfiguration;
452 | buildSettings = {
453 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
454 | BUNDLE_LOADER = "$(TEST_HOST)";
455 | DEVELOPMENT_TEAM = T4TW6Z2N88;
456 | INFOPLIST_FILE = ARCubeTests/Info.plist;
457 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
458 | PRODUCT_BUNDLE_IDENTIFIER = social.street.ARCubeTests;
459 | PRODUCT_NAME = "$(TARGET_NAME)";
460 | SWIFT_VERSION = 4.0;
461 | TARGETED_DEVICE_FAMILY = "1,2";
462 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ARCube.app/ARCube";
463 | };
464 | name = Debug;
465 | };
466 | 7CE516711F11B31000D9A49F /* Release */ = {
467 | isa = XCBuildConfiguration;
468 | buildSettings = {
469 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
470 | BUNDLE_LOADER = "$(TEST_HOST)";
471 | DEVELOPMENT_TEAM = T4TW6Z2N88;
472 | INFOPLIST_FILE = ARCubeTests/Info.plist;
473 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
474 | PRODUCT_BUNDLE_IDENTIFIER = social.street.ARCubeTests;
475 | PRODUCT_NAME = "$(TARGET_NAME)";
476 | SWIFT_VERSION = 4.0;
477 | TARGETED_DEVICE_FAMILY = "1,2";
478 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ARCube.app/ARCube";
479 | };
480 | name = Release;
481 | };
482 | 7CE516731F11B31000D9A49F /* Debug */ = {
483 | isa = XCBuildConfiguration;
484 | buildSettings = {
485 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
486 | DEVELOPMENT_TEAM = T4TW6Z2N88;
487 | INFOPLIST_FILE = ARCubeUITests/Info.plist;
488 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
489 | PRODUCT_BUNDLE_IDENTIFIER = social.street.ARCubeUITests;
490 | PRODUCT_NAME = "$(TARGET_NAME)";
491 | SWIFT_VERSION = 4.0;
492 | TARGETED_DEVICE_FAMILY = "1,2";
493 | TEST_TARGET_NAME = ARCube;
494 | };
495 | name = Debug;
496 | };
497 | 7CE516741F11B31000D9A49F /* Release */ = {
498 | isa = XCBuildConfiguration;
499 | buildSettings = {
500 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
501 | DEVELOPMENT_TEAM = T4TW6Z2N88;
502 | INFOPLIST_FILE = ARCubeUITests/Info.plist;
503 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
504 | PRODUCT_BUNDLE_IDENTIFIER = social.street.ARCubeUITests;
505 | PRODUCT_NAME = "$(TARGET_NAME)";
506 | SWIFT_VERSION = 4.0;
507 | TARGETED_DEVICE_FAMILY = "1,2";
508 | TEST_TARGET_NAME = ARCube;
509 | };
510 | name = Release;
511 | };
512 | /* End XCBuildConfiguration section */
513 |
514 | /* Begin XCConfigurationList section */
515 | 7CE5163D1F11B31000D9A49F /* Build configuration list for PBXProject "ARCube" */ = {
516 | isa = XCConfigurationList;
517 | buildConfigurations = (
518 | 7CE5166A1F11B31000D9A49F /* Debug */,
519 | 7CE5166B1F11B31000D9A49F /* Release */,
520 | );
521 | defaultConfigurationIsVisible = 0;
522 | defaultConfigurationName = Release;
523 | };
524 | 7CE5166C1F11B31000D9A49F /* Build configuration list for PBXNativeTarget "ARCube" */ = {
525 | isa = XCConfigurationList;
526 | buildConfigurations = (
527 | 7CE5166D1F11B31000D9A49F /* Debug */,
528 | 7CE5166E1F11B31000D9A49F /* Release */,
529 | );
530 | defaultConfigurationIsVisible = 0;
531 | };
532 | 7CE5166F1F11B31000D9A49F /* Build configuration list for PBXNativeTarget "ARCubeTests" */ = {
533 | isa = XCConfigurationList;
534 | buildConfigurations = (
535 | 7CE516701F11B31000D9A49F /* Debug */,
536 | 7CE516711F11B31000D9A49F /* Release */,
537 | );
538 | defaultConfigurationIsVisible = 0;
539 | };
540 | 7CE516721F11B31000D9A49F /* Build configuration list for PBXNativeTarget "ARCubeUITests" */ = {
541 | isa = XCConfigurationList;
542 | buildConfigurations = (
543 | 7CE516731F11B31000D9A49F /* Debug */,
544 | 7CE516741F11B31000D9A49F /* Release */,
545 | );
546 | defaultConfigurationIsVisible = 0;
547 | };
548 | /* End XCConfigurationList section */
549 | };
550 | rootObject = 7CE5163A1F11B31000D9A49F /* Project object */;
551 | }
552 |
--------------------------------------------------------------------------------