Add batch tool (still working)

This commit is contained in:
2023-06-14 23:31:56 +09:00
parent b0315a64e1
commit 2b843bae51
10 changed files with 686 additions and 1 deletions

34
KissMeBatch/Package.swift Normal file
View File

@@ -0,0 +1,34 @@
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "KissMeBatch",
platforms: [
.macOS(.v13), .iOS(.v14), .tvOS(.v14)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.executable(
name: "KissMeBatch",
targets: ["KissMeBatch"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
//.package(url: "../KissMe", from: "1.0.0"),
.package(path: "../KissMe"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.executableTarget(
name: "KissMeBatch",
dependencies: ["KissMe"],
path: "Sources"),
.testTarget(
name: "KissMeBatchTests",
dependencies: ["KissMeBatch"],
path: "Tests"),
]
)

64
KissMeBatch/README.md Normal file
View File

@@ -0,0 +1,64 @@
# KissMeBatch
KissMeBatch 는 command line batch 작업을 위해서 특별하게 구현된 도구입니다.
KISS 의 REST API 가 30 tps 로 제한이 있기 때문에, 동시에 여러 process 에서 batch 작업을 수행하다가, tps 제한에 걸려서 API 호출이 실패하는 것을 막기 위함입니다.
## Features
이 도구는 다음과 같은 기능을 지원합니다.
* job 의 반복수행 주기를 설정합니다. (일/시간/분/초) 단위로 설정할 수 있습니다.
* 특정 요일에만 수행되도록 week day 를 지정할 수 있습니다. (ex. 월~금)
* 주식 휴장일 여부를 체크하여 수행하지 않도록 지정할 수 있습니다. 이를 위해선 **data/holiday.csv** 가 필요로 합니다.
* job 마다 처리 결과를 알 수 있도록 console logging 을 지원합니다.
* job 을 시작하기 전에, 이미 수행중인 process 가 존재하면 wait or kill 을 수행합니다.
* batch.json 의 설정 파일을 주기적으로 reloading 하여 새롭게 job 을 재구성합니다. (10초마다 확인)
## batch.json
batch.json 은 다음과 같은 형식으로 구성합니다.
```json
{
"groups": [{
"maxTps": 29,
"jobs": [{
"name": "Candle minute",
"startAt": "2023-06-14 18:30:00",
"endAt": "23:59:00",
"interval": "1D",
"weeks": ["MON", "TUE", "WED", "THU", "FRI"],
"estimatedTps": 29,
"command": "KissMeConsole"
}]
}]
}
```
### `groups`
* `maxTps`
* groups 에는 각 group 내의 작업이 동시에 실행될 때, maxTps 에 제한이 걸리지 않도록 조정합니다.
* 한개의 job 이 maxTps 를 모두 차지 않지 않도록 설계하는 것이 중요합니다.
* `jobs`
* 하나의 group 으로 묶을 job 설정합니다.
### `jobs`
* `name`
* jobs 에는 job name 을 설정할 수 있습니다. console logging 에서 이를 바탕으로 로그를 출력합니다.
* `startAt`
* startAt 은 job 의 시작 시간을 지정합니다. 만약 이 값이 생략되어 있다면, 현재 시간이 시작 시간입니다.
* startAt 은 **yyyy-MM-dd HH:mm:ss** 또는 **HH:mm:ss** 로 지정할 수 있습니다.
* `endAt`
* endAt 은 job 의 종료 시간을 지정합니다. 이 시간 이후에는 job 을 수행하지 않습니다.
* endAt 은 **yyyy-MM-dd HH:mm:ss** 또는 **HH:mm:ss** 로 지정할 수 있습니다.
* `interval`
* interval 은 startAt 에서 job 을 처음 수행한 이후에 다음 job 을 언제 시작할지 지정하는 대기 시간입니다.
* `weeks`
* weeks 은 job 이 수행될 요일을 제한합니다. 만약 아무런 설정이 없다면, 어느 요일이든 수행합니다.
* `estimatedTps`
* 지정된 command 가 차지하게될 tps 를 설정합니다. 만약 아무런 값이 없다면, 기본 값으로 1로 설정됩니다.
* `command`
* job 이 수행하게 될 명령어 입니다.

View File

@@ -0,0 +1,161 @@
//
// KissBatch.swift
// KissMeBatch
//
// Created by ened-book-m1 on 2023/06/12.
//
import Foundation
import KissMe
struct Batch: Codable {
let groups: [Group]
struct Group: Codable {
let maxTps: Int
let jobs: [Job]
}
struct Job: Codable {
let name: String // Job's name
private let startAt: String // yyyy-MM-dd HH:mm:ss or HH:mm:ss
private let endAt: String // yyyy-MM-dd HH:mm:ss or HH:mm:ss
private let interval: String // 1D, 1H, 1M, 1S
let weeks: [String] // SUN, MON, TUE, WED, THU, FRI, SAT
let estimatedTps: Int // Estimated tps for this command
let command: String // Command line
var startDate: Date? {
let dateFormatter = DateFormatter()
dateFormatter.locale = Locale(identifier: "en_US_POSIX")
dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
return dateFormatter.date(from: startAt)
}
var intervalTime: TimeInterval {
let baseSeconds: TimeInterval
switch interval.suffix(1).uppercased() {
case "D": baseSeconds = 24 * 60 * 60
case "H": baseSeconds = 60 * 60
case "M": baseSeconds = 60
case "S": baseSeconds = 1
default: baseSeconds = 0
}
guard let time = Int(interval.prefix(interval.utf8.count-1)) else {
return 0
}
return baseSeconds * TimeInterval(time)
}
}
}
class KissBatch {
struct TimerJob {
let name: String
let timer: Timer
}
var batch: Batch?
var timers = [TimerJob]()
var lastBatchFileDate: Date?
private let reloadJobName = "__reload_job__"
func run() {
/// Install reloading job
let timer = Timer.scheduledTimer(withTimeInterval: 10, repeats: true) { timer in
self.reinstallBatchIfNeeded()
}
timers.append(TimerJob(name: reloadJobName, timer: timer))
timer.fire()
/// Wait untile exit signal
// let semaphore = DispatchSemaphore(value: 0)
// semaphore.signal()
// semaphore.wait()
}
private var batchFileUrl: URL {
URL.currentDirectory().appending(path: "batch.json")
}
private func loadBatch() throws {
let data = try Data(contentsOf: batchFileUrl, options: .uncached)
let batch = try JSONDecoder().decode(Batch.self, from: data)
self.batch = batch
}
private func installBatch() {
guard let batch = batch else { return }
for group in batch.groups {
for job in group.jobs {
let timer = Timer.scheduledTimer(withTimeInterval: job.intervalTime, repeats: true) { timer in
self.runJob(job, group: group)
}
timers.append(TimerJob(name: job.name, timer: timer))
}
}
}
private func reinstallBatchIfNeeded() {
do {
/// Check last save file date
let lastDate = try FileManager.default.modificationDate(atPath: batchFileUrl.path)
guard lastBatchFileDate != lastDate else {
return
}
try loadBatch()
removeAllTimers()
installBatch()
lastBatchFileDate = lastDate
} catch {
print(error)
return
}
}
private func runJob(_ job: Batch.Job, group: Batch.Group) {
// NSFileHandle()
// NSPipe()
/*
let task = Process()
task.launchPath = URL.currentDirectory().path
task.arguments = [job.command]
task.standardOutput = outputPipe
outputPipe.fileHandleForReading.waitForDataInBackgroundAndNotify()
_ = interruptSignal.once {
if task.isRunning {
task.interrupt()
}
}
signal(SIGKILL) { signal in
print("ending with signal: \(signal)")
interruptSignal.emit()
}
*/
}
private func removeAllTimers() {
timers.forEach( { $0.timer.invalidate() })
timers.removeAll()
}
}
extension FileManager {
func modificationDate(atPath path: String) throws -> Date {
let attributes = try attributesOfItem(atPath: path)
return attributes[.modificationDate] as! Date
}
}

View File

@@ -0,0 +1,10 @@
//
// main.swift
// KissMeBatch
//
// Created by ened-book-m1 on 2023/06/12.
//
import Foundation
KissBatch().run()

View File

@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:KissMeBatch.xcodeproj">
</FileRef>
<FileRef
location = "group:KissMeConsole.xcodeproj">
</FileRef>

View File

@@ -0,0 +1,319 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objects = {
/* Begin PBXBuildFile section */
3435A8052A375D6500D604F1 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3435A8042A375D6500D604F1 /* main.swift */; };
3435A80D2A375DD600D604F1 /* KissMe.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3435A80C2A375DD600D604F1 /* KissMe.framework */; };
3435A80E2A375DD600D604F1 /* KissMe.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3435A80C2A375DD600D604F1 /* KissMe.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
3435A8112A375E6600D604F1 /* KissBatch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3435A8102A375E6600D604F1 /* KissBatch.swift */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
3435A7FF2A375D6500D604F1 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
3435A80F2A375DD600D604F1 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
3435A80E2A375DD600D604F1 /* KissMe.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
3435A8012A375D6500D604F1 /* KissMeBatch */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = KissMeBatch; sourceTree = BUILT_PRODUCTS_DIR; };
3435A8042A375D6500D604F1 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
3435A80C2A375DD600D604F1 /* KissMe.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = KissMe.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3435A8102A375E6600D604F1 /* KissBatch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KissBatch.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
3435A7FE2A375D6500D604F1 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3435A80D2A375DD600D604F1 /* KissMe.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
3435A7F82A375D6500D604F1 = {
isa = PBXGroup;
children = (
3435A8032A375D6500D604F1 /* KissMeBatch */,
3435A8022A375D6500D604F1 /* Products */,
3435A80B2A375DD600D604F1 /* Frameworks */,
);
sourceTree = "<group>";
};
3435A8022A375D6500D604F1 /* Products */ = {
isa = PBXGroup;
children = (
3435A8012A375D6500D604F1 /* KissMeBatch */,
);
name = Products;
sourceTree = "<group>";
};
3435A8032A375D6500D604F1 /* KissMeBatch */ = {
isa = PBXGroup;
children = (
3435A8042A375D6500D604F1 /* main.swift */,
3435A8102A375E6600D604F1 /* KissBatch.swift */,
);
name = KissMeBatch;
path = ../../KissMeBatch/Sources;
sourceTree = "<group>";
};
3435A80B2A375DD600D604F1 /* Frameworks */ = {
isa = PBXGroup;
children = (
3435A80C2A375DD600D604F1 /* KissMe.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
3435A8002A375D6500D604F1 /* KissMeBatch */ = {
isa = PBXNativeTarget;
buildConfigurationList = 3435A8082A375D6500D604F1 /* Build configuration list for PBXNativeTarget "KissMeBatch" */;
buildPhases = (
3435A7FD2A375D6500D604F1 /* Sources */,
3435A7FE2A375D6500D604F1 /* Frameworks */,
3435A7FF2A375D6500D604F1 /* CopyFiles */,
3435A80F2A375DD600D604F1 /* Embed Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = KissMeBatch;
productName = KissMeBatch;
productReference = 3435A8012A375D6500D604F1 /* KissMeBatch */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
3435A7F92A375D6500D604F1 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1430;
LastUpgradeCheck = 1430;
TargetAttributes = {
3435A8002A375D6500D604F1 = {
CreatedOnToolsVersion = 14.3.1;
};
};
};
buildConfigurationList = 3435A7FC2A375D6500D604F1 /* Build configuration list for PBXProject "KissMeBatch" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 3435A7F82A375D6500D604F1;
productRefGroup = 3435A8022A375D6500D604F1 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
3435A8002A375D6500D604F1 /* KissMeBatch */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
3435A7FD2A375D6500D604F1 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3435A8112A375E6600D604F1 /* KissBatch.swift in Sources */,
3435A8052A375D6500D604F1 /* main.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
3435A8062A375D6500D604F1 /* 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++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
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;
MACOSX_DEPLOYMENT_TARGET = 13.3;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
3435A8072A375D6500D604F1 /* 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++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
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;
MACOSX_DEPLOYMENT_TARGET = 13.3;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
3435A8092A375D6500D604F1 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = NYU8YAYHF8;
ENABLE_HARDENED_RUNTIME = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
3435A80A2A375D6500D604F1 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = NYU8YAYHF8;
ENABLE_HARDENED_RUNTIME = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
3435A7FC2A375D6500D604F1 /* Build configuration list for PBXProject "KissMeBatch" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3435A8062A375D6500D604F1 /* Debug */,
3435A8072A375D6500D604F1 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3435A8082A375D6500D604F1 /* Build configuration list for PBXNativeTarget "KissMeBatch" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3435A8092A375D6500D604F1 /* Debug */,
3435A80A2A375D6500D604F1 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 3435A7F92A375D6500D604F1 /* Project object */;
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3435A8002A375D6500D604F1"
BuildableName = "KissMeBatch"
BlueprintName = "KissMeBatch"
ReferencedContainer = "container:KissMeBatch.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "YES"
customWorkingDirectory = "$(SRCROOT)/../../bin"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
viewDebuggingEnabled = "No">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3435A8002A375D6500D604F1"
BuildableName = "KissMeBatch"
BlueprintName = "KissMeBatch"
ReferencedContainer = "container:KissMeBatch.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3435A8002A375D6500D604F1"
BuildableName = "KissMeBatch"
BlueprintName = "KissMeBatch"
ReferencedContainer = "container:KissMeBatch.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>