From 3c8062ac740cede48c3e350784d2ca6419a50961 Mon Sep 17 00:00:00 2001 From: Yonas Kolb Date: Wed, 19 Jul 2017 17:22:02 +0200 Subject: [PATCH] Test project --- .gitignore | 3 + Sources/XcodeGen/main.swift | 7 +- Sources/XcodeGenKit/Generator.swift | 52 ++- .../TestProject.xcodeproj/project.pbxproj | 311 +++++++++++++++ .../contents.xcworkspacedata | 7 + TestProject/TestProject/AppDelegate.swift | 46 +++ .../AppIcon.appiconset/Contents.json | 68 ++++ .../Base.lproj/LaunchScreen.storyboard | 27 ++ .../TestProject/Base.lproj/Main.storyboard | 26 ++ TestProject/TestProject/Info.plist | 45 +++ TestProject/TestProject/ViewController.swift | 25 ++ TestProject/project.xcodeproj/project.pbxproj | 353 ++++++++++++++++++ TestProject/project.yml | 10 + test_spec.yml => TestProject/spec.yml | 2 +- test_project.xcodeproj/project.pbxproj | 66 ---- .../xcshareddata/xcschemes/iOS Test | 6 - 16 files changed, 968 insertions(+), 86 deletions(-) create mode 100644 TestProject/TestProject.xcodeproj/project.pbxproj create mode 100644 TestProject/TestProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 TestProject/TestProject/AppDelegate.swift create mode 100644 TestProject/TestProject/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 TestProject/TestProject/Base.lproj/LaunchScreen.storyboard create mode 100644 TestProject/TestProject/Base.lproj/Main.storyboard create mode 100644 TestProject/TestProject/Info.plist create mode 100644 TestProject/TestProject/ViewController.swift create mode 100644 TestProject/project.xcodeproj/project.pbxproj create mode 100644 TestProject/project.yml rename test_spec.yml => TestProject/spec.yml (93%) delete mode 100644 test_project.xcodeproj/project.pbxproj delete mode 100644 test_project.xcodeproj/xcshareddata/xcschemes/iOS Test diff --git a/.gitignore b/.gitignore index 5268c345..fbb30c55 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ .DS_Store /.build /Packages +xcuserdata +*.xccheckout +*.xcuserstate XcodeGen.xcodeproj diff --git a/Sources/XcodeGen/main.swift b/Sources/XcodeGen/main.swift index 7eac25c8..ff334e8c 100644 --- a/Sources/XcodeGen/main.swift +++ b/Sources/XcodeGen/main.swift @@ -10,9 +10,12 @@ import Foundation import PathKit import Commander import XcodeGenKit +import xcodeproj + func generate(spec: String) { - let specPath = Path("~/Developer/XcodeGen/test_spec.yml").normalize() + + let specPath = Path("~/Developer/XcodeGen/TestProject/spec.yml").normalize() let spec: Spec do { @@ -26,7 +29,7 @@ func generate(spec: String) { } do { - try Generator.generate(spec: spec, path: Path("~/Developer/XcodeGen/test_project.xcodeproj").normalize()) + try Generator.generate(spec: spec, path: Path("~/Developer/XcodeGen/TestProject/spec.xcodeproj").normalize()) print("Generated Xcode Project") } catch { print("Generation failed: \(error)") diff --git a/Sources/XcodeGenKit/Generator.swift b/Sources/XcodeGenKit/Generator.swift index 84eda9f6..5d72c248 100644 --- a/Sources/XcodeGenKit/Generator.swift +++ b/Sources/XcodeGenKit/Generator.swift @@ -16,39 +16,63 @@ public struct Generator { public static func generate(spec: Spec, path: Path) throws { let workspaceReferences: [XCWorkspace.Data.FileRef] = [XCWorkspace.Data.FileRef.project(path: path)] - let workspaceData = XCWorkspace.Data(path: path, references: workspaceReferences) + let workspaceData = XCWorkspace.Data(path: path + "project.xcworkspace/contents.xcworkspacedata", references: workspaceReferences) let workspace = XCWorkspace(path: path + "project.xcworkspace", data: workspaceData) - var objects: [PBXObject] = [] var ids = 0 func id() -> String { ids += 1 - return "OBJECT_\(ids)" + return ids.description.md5().uppercased() +// return "OBJECT_\(ids)" } + let mainGroup = PBXGroup(reference: id(), children: [], sourceTree: .group) + + let buildConfigs = spec.configs.map { config in + + XCBuildConfiguration(reference: id(), name: config.name, baseConfigurationReference: nil, buildSettings: BuildSettings(dictionary: config.settings)) + } + let buildConfigList = XCConfigurationList(reference: id(), buildConfigurations: Set(buildConfigs.map { $0.reference }), defaultConfigurationName: buildConfigs.first?.name ?? "", defaultConfigurationIsVisible: 0) + + + objects += buildConfigs.map { .xcBuildConfiguration($0) } + objects.append(.xcConfigurationList(buildConfigList)) + + var targets: [String] = [] for target in spec.targets { - let sourcePaths: [Path] = target.sources.reduce([]) { paths, source in + let sourcePaths: [Path] = try target.sources.reduce([]) { paths, source in // $0 + spec.path.parent().glob($1) - let sourcePaths = try! (spec.path.parent() + source).recursiveChildren().filter { $0.isFile } - return paths + sourcePaths + let sourcePaths = spec.path.parent() + source + let sourceFiles = try sourcePaths.recursiveChildren().filter { $0.isFile } + return paths + sourceFiles } let fileReferences = sourcePaths.map { PBXFileReference(reference: id(), sourceTree: .group, path: $0.lastComponent) } let buildFiles = fileReferences.map { PBXBuildFile(reference: id(), fileRef: $0.reference) } let buildPhase = PBXSourcesBuildPhase(reference: id(), files: Set(buildFiles.map { $0.reference })) let buildPhases = [buildPhase] - let nativeTarget = PBXNativeTarget(reference: "OBJECT_\(objects.count)", buildConfigurationList: "234", buildPhases: buildPhases.map{ $0.reference }, buildRules: [], dependencies: [], name: target.name, productType: target.type) + let productReference = PBXFileReference(reference: id(), sourceTree: .buildProductsDir, path: target.name, includeInIndex: 0) + + let buildConfigList = XCConfigurationList(reference: id(), buildConfigurations: [], defaultConfigurationName: "") + let nativeTarget = PBXNativeTarget(reference: id(), buildConfigurationList: buildConfigList.reference, buildPhases: buildPhases.map{ $0.reference }, buildRules: [], dependencies: [], name: target.name, productReference: productReference.reference, productType: target.type) objects += buildFiles.map { .pbxBuildFile($0) } objects += fileReferences.map { .pbxFileReference($0) } objects += buildPhases.map { .pbxSourcesBuildPhase($0) } - + + objects.append(.xcConfigurationList(buildConfigList)) objects.append(.pbxNativeTarget(nativeTarget)) + objects.append(.pbxFileReference(productReference)) + + targets.append(nativeTarget.reference) } - let pbxProject = PBXProj(path: path + "project.pbxproj", name: "Generated_Project", archiveVersion: 1, objectVersion: 46, rootObject: "12345", objects: objects) + let pbxProjectRoot = PBXProject(reference: id(), buildConfigurationList: buildConfigList.reference, compatibilityVersion: "Xcode 3.2", mainGroup: mainGroup.reference, targets: targets) + objects.append(.pbxProject(pbxProjectRoot)) + + let pbxProject = PBXProj(path: path + "project.pbxproj", name: "Generated_Project", archiveVersion: 1, objectVersion: 46, rootObject: pbxProjectRoot.reference, objects: objects) let schemes: [XCScheme] = spec.schemes.map { schemeSpec in // let buildEntries: [XCScheme.BuildAction.Entry] = schemeSpec.build.entries.map { build in @@ -73,10 +97,16 @@ extension XcodeProj: Writable { if override && path.exists { try path.delete() } - - try path.mkpath() + + // write workspace +// try workspace.data.path.mkpath() +// try workspace.data.write(override: true) + + // write pbxproj + try pbxproj.path.mkpath() try pbxproj.write(override: override) + // write shared data if let sharedData = sharedData { for scheme in sharedData.schemes { try scheme.path.mkpath() diff --git a/TestProject/TestProject.xcodeproj/project.pbxproj b/TestProject/TestProject.xcodeproj/project.pbxproj new file mode 100644 index 00000000..3e7679d1 --- /dev/null +++ b/TestProject/TestProject.xcodeproj/project.pbxproj @@ -0,0 +1,311 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + CCA4B60E1F1FC00500DF34A1 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA4B60D1F1FC00500DF34A1 /* AppDelegate.swift */; }; + CCA4B6101F1FC00500DF34A1 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA4B60F1F1FC00500DF34A1 /* ViewController.swift */; }; + CCA4B6131F1FC00500DF34A1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CCA4B6111F1FC00500DF34A1 /* Main.storyboard */; }; + CCA4B6151F1FC00500DF34A1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CCA4B6141F1FC00500DF34A1 /* Assets.xcassets */; }; + CCA4B6181F1FC00500DF34A1 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CCA4B6161F1FC00500DF34A1 /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + CCA4B60A1F1FC00500DF34A1 /* TestProject.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestProject.app; sourceTree = BUILT_PRODUCTS_DIR; }; + CCA4B60D1F1FC00500DF34A1 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + CCA4B60F1F1FC00500DF34A1 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + CCA4B6121F1FC00500DF34A1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + CCA4B6141F1FC00500DF34A1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + CCA4B6171F1FC00500DF34A1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + CCA4B6191F1FC00500DF34A1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CCA4B6071F1FC00500DF34A1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CCA4B6011F1FC00500DF34A1 = { + isa = PBXGroup; + children = ( + CCA4B60C1F1FC00500DF34A1 /* TestProject */, + CCA4B60B1F1FC00500DF34A1 /* Products */, + ); + sourceTree = ""; + }; + CCA4B60B1F1FC00500DF34A1 /* Products */ = { + isa = PBXGroup; + children = ( + CCA4B60A1F1FC00500DF34A1 /* TestProject.app */, + ); + name = Products; + sourceTree = ""; + }; + CCA4B60C1F1FC00500DF34A1 /* TestProject */ = { + isa = PBXGroup; + children = ( + CCA4B60D1F1FC00500DF34A1 /* AppDelegate.swift */, + CCA4B60F1F1FC00500DF34A1 /* ViewController.swift */, + CCA4B6111F1FC00500DF34A1 /* Main.storyboard */, + CCA4B6141F1FC00500DF34A1 /* Assets.xcassets */, + CCA4B6161F1FC00500DF34A1 /* LaunchScreen.storyboard */, + CCA4B6191F1FC00500DF34A1 /* Info.plist */, + ); + path = TestProject; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CCA4B6091F1FC00500DF34A1 /* TestProject */ = { + isa = PBXNativeTarget; + buildConfigurationList = CCA4B61C1F1FC00500DF34A1 /* Build configuration list for PBXNativeTarget "TestProject" */; + buildPhases = ( + CCA4B6061F1FC00500DF34A1 /* Sources */, + CCA4B6071F1FC00500DF34A1 /* Frameworks */, + CCA4B6081F1FC00500DF34A1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = TestProject; + productName = TestProject; + productReference = CCA4B60A1F1FC00500DF34A1 /* TestProject.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CCA4B6021F1FC00500DF34A1 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0830; + LastUpgradeCheck = 0830; + ORGANIZATIONNAME = "Yonas Kolb"; + TargetAttributes = { + CCA4B6091F1FC00500DF34A1 = { + CreatedOnToolsVersion = 8.3.3; + DevelopmentTeam = U7E5MQU624; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = CCA4B6051F1FC00500DF34A1 /* Build configuration list for PBXProject "TestProject" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = CCA4B6011F1FC00500DF34A1; + productRefGroup = CCA4B60B1F1FC00500DF34A1 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CCA4B6091F1FC00500DF34A1 /* TestProject */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CCA4B6081F1FC00500DF34A1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CCA4B6181F1FC00500DF34A1 /* LaunchScreen.storyboard in Resources */, + CCA4B6151F1FC00500DF34A1 /* Assets.xcassets in Resources */, + CCA4B6131F1FC00500DF34A1 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CCA4B6061F1FC00500DF34A1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CCA4B6101F1FC00500DF34A1 /* ViewController.swift in Sources */, + CCA4B60E1F1FC00500DF34A1 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + CCA4B6111F1FC00500DF34A1 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CCA4B6121F1FC00500DF34A1 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + CCA4B6161F1FC00500DF34A1 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CCA4B6171F1FC00500DF34A1 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + CCA4B61A1F1FC00500DF34A1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + CCA4B61B1F1FC00500DF34A1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CCA4B61D1F1FC00500DF34A1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = U7E5MQU624; + INFOPLIST_FILE = TestProject/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yonaskolb.TestProject; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + CCA4B61E1F1FC00500DF34A1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = U7E5MQU624; + INFOPLIST_FILE = TestProject/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.yonaskolb.TestProject; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CCA4B6051F1FC00500DF34A1 /* Build configuration list for PBXProject "TestProject" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CCA4B61A1F1FC00500DF34A1 /* Debug */, + CCA4B61B1F1FC00500DF34A1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CCA4B61C1F1FC00500DF34A1 /* Build configuration list for PBXNativeTarget "TestProject" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CCA4B61D1F1FC00500DF34A1 /* Debug */, + CCA4B61E1F1FC00500DF34A1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = CCA4B6021F1FC00500DF34A1 /* Project object */; +} diff --git a/TestProject/TestProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/TestProject/TestProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..2bf8bd93 --- /dev/null +++ b/TestProject/TestProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/TestProject/TestProject/AppDelegate.swift b/TestProject/TestProject/AppDelegate.swift new file mode 100644 index 00000000..29b10c2a --- /dev/null +++ b/TestProject/TestProject/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// TestProject +// +// Created by Yonas Kolb on 19/7/17. +// Copyright © 2017 Yonas Kolb. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // 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. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // 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. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // 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. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // 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. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/TestProject/TestProject/Assets.xcassets/AppIcon.appiconset/Contents.json b/TestProject/TestProject/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..36d2c80d --- /dev/null +++ b/TestProject/TestProject/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TestProject/TestProject/Base.lproj/LaunchScreen.storyboard b/TestProject/TestProject/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..fdf3f97d --- /dev/null +++ b/TestProject/TestProject/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TestProject/TestProject/Base.lproj/Main.storyboard b/TestProject/TestProject/Base.lproj/Main.storyboard new file mode 100644 index 00000000..273375fc --- /dev/null +++ b/TestProject/TestProject/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TestProject/TestProject/Info.plist b/TestProject/TestProject/Info.plist new file mode 100644 index 00000000..d0524738 --- /dev/null +++ b/TestProject/TestProject/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/TestProject/TestProject/ViewController.swift b/TestProject/TestProject/ViewController.swift new file mode 100644 index 00000000..81a24767 --- /dev/null +++ b/TestProject/TestProject/ViewController.swift @@ -0,0 +1,25 @@ +// +// ViewController.swift +// TestProject +// +// Created by Yonas Kolb on 19/7/17. +// Copyright © 2017 Yonas Kolb. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + +} + diff --git a/TestProject/project.xcodeproj/project.pbxproj b/TestProject/project.xcodeproj/project.pbxproj new file mode 100644 index 00000000..f06a922b --- /dev/null +++ b/TestProject/project.xcodeproj/project.pbxproj @@ -0,0 +1,353 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 2920AAD7898CA6CF196292DE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 177505728F0991D790D19BD9 /* ViewController.swift */; }; + 6153CD27F8A53AC2C60305D7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 420E2F08D44525F7E12ABD7E /* AppDelegate.swift */; }; + 70CC1AA54B62269CCEE89C25 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C7844E4AB54FC1FFC317DE27 /* Main.storyboard */; }; + A9A316391FD15E430B07EC11 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CB1E2294ECD4F0D69C69C194 /* LaunchScreen.storyboard */; }; + D03B009FCBA2D6BE011F95F5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4EC9A070D69349E792A41E3C /* Assets.xcassets */; }; + DCF7C3BCE82ACB95C33F3B7C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B9138C82767183D92F7176E /* Foundation.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 7F44E910D848A4D8ED0DD4B7 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 177505728F0991D790D19BD9 /* ViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 420E2F08D44525F7E12ABD7E /* AppDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 4B9138C82767183D92F7176E /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 4EC9A070D69349E792A41E3C /* Assets.xcassets */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 7BFFA0009DAA92D6854CB116 /* Axis iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Axis iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + C7844E4AB54FC1FFC317DE27 /* Main.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + CB1E2294ECD4F0D69C69C194 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 104A5F9D66E5AD4FC5A65442 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + DCF7C3BCE82ACB95C33F3B7C /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 07F561DA0C5E0048EA71BE15 /* $lang:Axis iOS */ = { + isa = PBXGroup; + children = ( + 20F69E869A128021D0B8FCA0 /* LaunchScreen.storyboard */, + E9D61316D97C4C92E76AE562 /* Main.storyboard */, + ); + name = "$lang:Axis iOS"; + sourceTree = SOURCE_ROOT; + }; + 3D87E1929F91587A92738ACE /* iOS */ = { + isa = PBXGroup; + children = ( + 4B9138C82767183D92F7176E /* Foundation.framework */, + ); + name = iOS; + sourceTree = ""; + }; + 5C67077711447DC1133AFAC2 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 9652E4192CFD817BCBB829E5 /* $local */, + 3D87E1929F91587A92738ACE /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + 9652E4192CFD817BCBB829E5 /* $local */ = { + isa = PBXGroup; + children = ( + ); + name = "$local"; + sourceTree = ""; + }; + 9AD76009436BA609CC4490EA = { + isa = PBXGroup; + children = ( + F46D0F89D380C884DD118B22 /* Products */, + 5C67077711447DC1133AFAC2 /* Frameworks */, + CCD12951D48B9F129F666F3B /* TestProject */, + 07F561DA0C5E0048EA71BE15 /* $lang:Axis iOS */, + ); + sourceTree = ""; + }; + CCD12951D48B9F129F666F3B /* TestProject */ = { + isa = PBXGroup; + children = ( + 420E2F08D44525F7E12ABD7E /* AppDelegate.swift */, + 4EC9A070D69349E792A41E3C /* Assets.xcassets */, + 177505728F0991D790D19BD9 /* ViewController.swift */, + ); + name = TestProject; + path = TestProject; + sourceTree = SOURCE_ROOT; + }; + F46D0F89D380C884DD118B22 /* Products */ = { + isa = PBXGroup; + children = ( + 7BFFA0009DAA92D6854CB116 /* Axis iOS.app */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 2FB71ECBAC61C77CB2E0DA49 /* Axis iOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = C959162625732E4690AAE8EF /* Build configuration list for PBXNativeTarget "Axis iOS" */; + buildPhases = ( + 4378FF1348FEAFB1BC6B1F30 /* Sources */, + 104A5F9D66E5AD4FC5A65442 /* Frameworks */, + F97D49FF0E9C9B39A5C84A35 /* Resources */, + 7F44E910D848A4D8ED0DD4B7 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Axis iOS"; + productName = "Axis iOS"; + productReference = 7BFFA0009DAA92D6854CB116 /* Axis iOS.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 31ABCB7B06D2CA079E9AE8E8 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0830; + LastUpgradeCheck = 0700; + Struct.Version = 2.2.0; + }; + buildConfigurationList = A48536E5858672C9E44BAAE3 /* Build configuration list for PBXProject "project" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 9AD76009436BA609CC4490EA; + productRefGroup = F46D0F89D380C884DD118B22 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2FB71ECBAC61C77CB2E0DA49 /* Axis iOS */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + F97D49FF0E9C9B39A5C84A35 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D03B009FCBA2D6BE011F95F5 /* Assets.xcassets in Resources */, + A9A316391FD15E430B07EC11 /* LaunchScreen.storyboard in Resources */, + 70CC1AA54B62269CCEE89C25 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4378FF1348FEAFB1BC6B1F30 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6153CD27F8A53AC2C60305D7 /* AppDelegate.swift in Sources */, + 2920AAD7898CA6CF196292DE /* ViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 20F69E869A128021D0B8FCA0 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CB1E2294ECD4F0D69C69C194 /* LaunchScreen.storyboard */, + ); + name = LaunchScreen.storyboard; + path = TestProject; + sourceTree = ""; + }; + E9D61316D97C4C92E76AE562 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + C7844E4AB54FC1FFC317DE27 /* Main.storyboard */, + ); + name = Main.storyboard; + path = TestProject; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 8329728C2210A06F1803E3BD /* debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_SUSPICIOUS_MOVES = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = debug; + }; + ACED3C9AC04D244B1E4E8F8B /* debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SWIFT_VERSION = 3.0; + }; + name = debug; + }; + DBBAD12D196CFD7DB416F6C3 /* release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SWIFT_VERSION = 3.0; + }; + name = release; + }; + E197B60C14146361683B418F /* release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_SUSPICIOUS_MOVES = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + MTL_ENABLE_DEBUG_INFO = NO; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + A48536E5858672C9E44BAAE3 /* Build configuration list for PBXProject "project" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8329728C2210A06F1803E3BD /* debug */, + E197B60C14146361683B418F /* release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = debug; + }; + C959162625732E4690AAE8EF /* Build configuration list for PBXNativeTarget "Axis iOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + ACED3C9AC04D244B1E4E8F8B /* debug */, + DBBAD12D196CFD7DB416F6C3 /* release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 31ABCB7B06D2CA079E9AE8E8 /* Project object */; +} diff --git a/TestProject/project.yml b/TestProject/project.yml new file mode 100644 index 00000000..421ce8af --- /dev/null +++ b/TestProject/project.yml @@ -0,0 +1,10 @@ +version: 2.2.0 +configurations: + debug: + release: +targets: + Axis iOS: + type: ":application" + platform: ios + sources: + - TestProject diff --git a/test_spec.yml b/TestProject/spec.yml similarity index 93% rename from test_spec.yml rename to TestProject/spec.yml index de241ee7..ca884772 100644 --- a/test_spec.yml +++ b/TestProject/spec.yml @@ -11,7 +11,7 @@ targets: Axis iOS: type: application sources: - - Sources + - TestProject schemes: iOS Test: build: diff --git a/test_project.xcodeproj/project.pbxproj b/test_project.xcodeproj/project.pbxproj deleted file mode 100644 index 40b2fecd..00000000 --- a/test_project.xcodeproj/project.pbxproj +++ /dev/null @@ -1,66 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = ( - ); - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - OBJECT_10 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJECT_2 /* main.swift */; }; - OBJECT_11 /* .DS_Store in Sources */ = {isa = PBXBuildFile; fileRef = OBJECT_3 /* .DS_Store */; }; - OBJECT_12 /* Decoding.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJECT_4 /* Decoding.swift */; }; - OBJECT_13 /* Generator.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJECT_5 /* Generator.swift */; }; - OBJECT_14 /* Scheme.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJECT_6 /* Scheme.swift */; }; - OBJECT_15 /* Spec.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJECT_7 /* Spec.swift */; }; - OBJECT_16 /* SpecError.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJECT_8 /* SpecError.swift */; }; - OBJECT_9 /* .DS_Store in Sources */ = {isa = PBXBuildFile; fileRef = OBJECT_1 /* .DS_Store */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - OBJECT_1 /* .DS_Store */ = {isa = PBXFileReference; path = .DS_Store; sourceTree = ""; }; - OBJECT_2 /* main.swift */ = {isa = PBXFileReference; path = main.swift; sourceTree = ""; }; - OBJECT_3 /* .DS_Store */ = {isa = PBXFileReference; path = .DS_Store; sourceTree = ""; }; - OBJECT_4 /* Decoding.swift */ = {isa = PBXFileReference; path = Decoding.swift; sourceTree = ""; }; - OBJECT_5 /* Generator.swift */ = {isa = PBXFileReference; path = Generator.swift; sourceTree = ""; }; - OBJECT_6 /* Scheme.swift */ = {isa = PBXFileReference; path = Scheme.swift; sourceTree = ""; }; - OBJECT_7 /* Spec.swift */ = {isa = PBXFileReference; path = Spec.swift; sourceTree = ""; }; - OBJECT_8 /* SpecError.swift */ = {isa = PBXFileReference; path = SpecError.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXNativeTarget section */ - OBJECT_0 /* Axis iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 234 /* Build configuration list for PBXNativeTarget "Axis iOS" */; - buildPhases = ( - OBJECT_17 /* Sources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Axis iOS; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXSourcesBuildPhase section */ - OBJECT_17 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - OBJECT_13 /* Generator.swift in Sources */, - OBJECT_9 /* .DS_Store in Sources */, - OBJECT_12 /* Decoding.swift in Sources */, - OBJECT_10 /* main.swift in Sources */, - OBJECT_11 /* .DS_Store in Sources */, - OBJECT_15 /* Spec.swift in Sources */, - OBJECT_14 /* Scheme.swift in Sources */, - OBJECT_16 /* SpecError.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - }; - rootObject = 12345 /* Project object */; -} diff --git a/test_project.xcodeproj/xcshareddata/xcschemes/iOS Test b/test_project.xcodeproj/xcshareddata/xcschemes/iOS Test deleted file mode 100644 index 1011bc8e..00000000 --- a/test_project.xcodeproj/xcshareddata/xcschemes/iOS Test +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file