Skip to content

Commit

Permalink
[ADD] adds macOS target for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
macbellingrath committed Apr 14, 2019
1 parent a7b0afc commit 437724f
Show file tree
Hide file tree
Showing 11 changed files with 1,020 additions and 5 deletions.
18 changes: 18 additions & 0 deletions BrightsMacApp/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// AppDelegate.swift
// BrightsMacApp
//
// Created by Mac Bellingrath on 4/14/19.
// Copyright © 2019 Mac Bellingrath. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {

func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
}

}
58 changes: 58 additions & 0 deletions BrightsMacApp/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"images" : [
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
6 changes: 6 additions & 0 deletions BrightsMacApp/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
719 changes: 719 additions & 0 deletions BrightsMacApp/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions BrightsMacApp/BrightsMacApp.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
27 changes: 27 additions & 0 deletions BrightsMacApp/GameViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// GameViewController.swift
// BrightsMacApp
//
// Created by Mac Bellingrath on 4/14/19.
// Copyright © 2019 Mac Bellingrath. All rights reserved.
//

import SceneKit
import QuartzCore

class GameViewController: NSViewController {

var scnView = View()

override func loadView() {
view = scnView
}

override func viewDidLoad() {
super.viewDidLoad()

scnView.loadScene()
scnView.allowsCameraControl = true
}

}
34 changes: 34 additions & 0 deletions BrightsMacApp/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2019 Mac Bellingrath. All rights reserved.</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSAppTransportSecurity</key>
<dict/>
</dict>
</plist>
135 changes: 135 additions & 0 deletions FloatingCovers.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
E62E045D2262726A00017EC9 /* BrightScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67C886B226203E800DFB5D1 /* BrightScene.swift */; };
E62E045E2262727000017EC9 /* ImageService.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6EF2C2622525B7E0059DA76 /* ImageService.swift */; };
E62E045F2262727200017EC9 /* ImageService.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6EF2C2622525B7E0059DA76 /* ImageService.swift */; };
E6707541226345E000749CBA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6707540226345E000749CBA /* AppDelegate.swift */; };
E6707543226345E000749CBA /* GameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6707542226345E000749CBA /* GameViewController.swift */; };
E6707547226345E000749CBA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E6707546226345E000749CBA /* Assets.xcassets */; };
E670754A226345E000749CBA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E6707548226345E000749CBA /* Main.storyboard */; };
E67075502263461800749CBA /* BrightScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67C886B226203E800DFB5D1 /* BrightScene.swift */; };
E67075512263461800749CBA /* BrightSaverView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6EF2C24225252B50059DA76 /* BrightSaverView.swift */; };
E67075522263461800749CBA /* ImageService.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6EF2C2622525B7E0059DA76 /* ImageService.swift */; };
E67C886C226203E800DFB5D1 /* BrightScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67C886B226203E800DFB5D1 /* BrightScene.swift */; };
E67C886D2262041600DFB5D1 /* BrightScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67C886B226203E800DFB5D1 /* BrightScene.swift */; };
E6D69F932250E7D300BFB157 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6D69F922250E7D300BFB157 /* AppDelegate.swift */; };
Expand All @@ -35,6 +42,13 @@
E62E04572262719300017EC9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
E62E04592262719300017EC9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E65A00E6225F483A00ED5FE7 /* SceneKitMacOS.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = SceneKitMacOS.playground; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
E670753E226345E000749CBA /* BrightsMacApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BrightsMacApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
E6707540226345E000749CBA /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
E6707542226345E000749CBA /* GameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameViewController.swift; sourceTree = "<group>"; };
E6707546226345E000749CBA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
E6707549226345E000749CBA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
E670754B226345E000749CBA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E670754C226345E000749CBA /* BrightsMacApp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = BrightsMacApp.entitlements; sourceTree = "<group>"; };
E67C886B226203E800DFB5D1 /* BrightScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrightScene.swift; sourceTree = "<group>"; };
E6D69F8F2250E7D300BFB157 /* FloatingCovers.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FloatingCovers.app; sourceTree = BUILT_PRODUCTS_DIR; };
E6D69F922250E7D300BFB157 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
Expand All @@ -58,6 +72,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
E670753B226345E000749CBA /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
E6D69F8C2250E7D300BFB157 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -87,12 +108,26 @@
path = BrightsTV;
sourceTree = "<group>";
};
E670753F226345E000749CBA /* BrightsMacApp */ = {
isa = PBXGroup;
children = (
E6707540226345E000749CBA /* AppDelegate.swift */,
E6707542226345E000749CBA /* GameViewController.swift */,
E6707546226345E000749CBA /* Assets.xcassets */,
E6707548226345E000749CBA /* Main.storyboard */,
E670754B226345E000749CBA /* Info.plist */,
E670754C226345E000749CBA /* BrightsMacApp.entitlements */,
);
path = BrightsMacApp;
sourceTree = "<group>";
};
E6D69F862250E7D300BFB157 = {
isa = PBXGroup;
children = (
E6D69F912250E7D300BFB157 /* FloatingCovers */,
E6EF2C1A22514BFE0059DA76 /* BrightsSaver */,
E62E044F2262719200017EC9 /* BrightsTV */,
E670753F226345E000749CBA /* BrightsMacApp */,
E6D69F902250E7D300BFB157 /* Products */,
);
sourceTree = "<group>";
Expand All @@ -103,6 +138,7 @@
E6D69F8F2250E7D300BFB157 /* FloatingCovers.app */,
E6EF2C1922514BFE0059DA76 /* BrightsSaver.saver */,
E62E044E2262719200017EC9 /* BrightsTV.app */,
E670753E226345E000749CBA /* BrightsMacApp.app */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -163,6 +199,23 @@
productReference = E62E044E2262719200017EC9 /* BrightsTV.app */;
productType = "com.apple.product-type.application";
};
E670753D226345E000749CBA /* BrightsMacApp */ = {
isa = PBXNativeTarget;
buildConfigurationList = E670754F226345E000749CBA /* Build configuration list for PBXNativeTarget "BrightsMacApp" */;
buildPhases = (
E670753A226345E000749CBA /* Sources */,
E670753B226345E000749CBA /* Frameworks */,
E670753C226345E000749CBA /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = BrightsMacApp;
productName = BrightsMacApp;
productReference = E670753E226345E000749CBA /* BrightsMacApp.app */;
productType = "com.apple.product-type.application";
};
E6D69F8E2250E7D300BFB157 /* FloatingCovers */ = {
isa = PBXNativeTarget;
buildConfigurationList = E6D69FA32250E7D500BFB157 /* Build configuration list for PBXNativeTarget "FloatingCovers" */;
Expand Down Expand Up @@ -211,6 +264,9 @@
E62E044D2262719200017EC9 = {
CreatedOnToolsVersion = 10.2;
};
E670753D226345E000749CBA = {
CreatedOnToolsVersion = 10.2;
};
E6D69F8E2250E7D300BFB157 = {
CreatedOnToolsVersion = 10.2;
};
Expand All @@ -236,6 +292,7 @@
E6D69F8E2250E7D300BFB157 /* FloatingCovers */,
E6EF2C1822514BFE0059DA76 /* BrightsSaver */,
E62E044D2262719200017EC9 /* BrightsTV */,
E670753D226345E000749CBA /* BrightsMacApp */,
);
};
/* End PBXProject section */
Expand All @@ -250,6 +307,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
E670753C226345E000749CBA /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E670754A226345E000749CBA /* Main.storyboard in Resources */,
E6707547226345E000749CBA /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
E6D69F8D2250E7D300BFB157 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -283,6 +349,18 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
E670753A226345E000749CBA /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E67075512263461800749CBA /* BrightSaverView.swift in Sources */,
E6707543226345E000749CBA /* GameViewController.swift in Sources */,
E6707541226345E000749CBA /* AppDelegate.swift in Sources */,
E67075522263461800749CBA /* ImageService.swift in Sources */,
E67075502263461800749CBA /* BrightScene.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
E6D69F8B2250E7D300BFB157 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -315,6 +393,14 @@
name = Main.storyboard;
sourceTree = "<group>";
};
E6707548226345E000749CBA /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
E6707549226345E000749CBA /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
E6D69F982250E7D300BFB157 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
Expand Down Expand Up @@ -376,6 +462,46 @@
};
name = Release;
};
E670754D226345E000749CBA /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = BrightsMacApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
PRODUCT_BUNDLE_IDENTIFIER = com.macbellingrath.BrightsMacApp;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
E670754E226345E000749CBA /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = BrightsMacApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
PRODUCT_BUNDLE_IDENTIFIER = com.macbellingrath.BrightsMacApp;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_VERSION = 5.0;
};
name = Release;
};
E6D69FA12250E7D500BFB157 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -589,6 +715,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
E670754F226345E000749CBA /* Build configuration list for PBXNativeTarget "BrightsMacApp" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E670754D226345E000749CBA /* Debug */,
E670754E226345E000749CBA /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
E6D69F8A2250E7D300BFB157 /* Build configuration list for PBXProject "FloatingCovers" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand Down
Loading

0 comments on commit 437724f

Please sign in to comment.