xcake 0.8.3 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/xcake/version.rb +1 -1
- data/xcake.gemspec +1 -1
- metadata +1 -35
- data/docs/Cakefile.md +0 -509
- data/docs/Getting Started.md +0 -65
- data/docs/Hooks.md +0 -14
- data/docs/Xcode Project Support.md +0 -51
- data/example/app/CakeMania/CakeMania.xcodeproj/project.pbxproj +0 -973
- data/example/app/CakeMania/CakeMania.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- data/example/app/CakeMania/CakeMania.xcodeproj/project.xcworkspace/xcuserdata/maxim.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- data/example/app/CakeMania/CakeMania.xcodeproj/xcshareddata/xcschemes/CakeMania-AppStore.xcscheme +0 -91
- data/example/app/CakeMania/CakeMania.xcodeproj/xcshareddata/xcschemes/CakeMania-Debug.xcscheme +0 -91
- data/example/app/CakeMania/CakeMania.xcodeproj/xcshareddata/xcschemes/CakeMania-Production.xcscheme +0 -91
- data/example/app/CakeMania/CakeMania.xcodeproj/xcshareddata/xcschemes/CakeMania-RC.xcscheme +0 -91
- data/example/app/CakeMania/CakeMania.xcodeproj/xcshareddata/xcschemes/CakeMania-Staging.xcscheme +0 -91
- data/example/app/CakeMania/CakeMania.xcodeproj/xcuserdata/maxim.xcuserdatad/xcschemes/CakeManiaTst.xcscheme +0 -56
- data/example/app/CakeMania/CakeMania.xcodeproj/xcuserdata/maxim.xcuserdatad/xcschemes/CakeManiaUITst.xcscheme +0 -56
- data/example/app/CakeMania/CakeMania.xcodeproj/xcuserdata/maxim.xcuserdatad/xcschemes/xcschememanagement.plist +0 -72
- data/example/app/CakeMania/Cakefile +0 -398
- data/example/app/CakeMania/Info/CakeMania.plist +0 -38
- data/example/app/CakeMania/Info/CakeManiaTst.plist +0 -22
- data/example/app/CakeMania/Info/CakeManiaUITst.plist +0 -22
- data/example/app/CakeMania/Res/CakeMania-test.entitlements +0 -10
- data/example/app/CakeMania/Res/CakeMania.entitlements +0 -10
- data/example/app/CakeMania/Res/CakeMania.xcassets/AppIcon.appiconset/Contents.json +0 -48
- data/example/app/CakeMania/Src/AppDelegate.swift +0 -46
- data/example/app/CakeMania/Src/Base.lproj/LaunchScreen.storyboard +0 -27
- data/example/app/CakeMania/Src/Base.lproj/Main.storyboard +0 -26
- data/example/app/CakeMania/Src/ObjC/CakeMania-Bridging-Header.h +0 -3
- data/example/app/CakeMania/Src/ObjC/Prefix.pch +0 -14
- data/example/app/CakeMania/Src/ViewController.swift +0 -25
- data/example/app/CakeMania/Tst/Main.swift +0 -36
- data/example/app/CakeMania/UITst/Main.swift +0 -36
- data/example/framework/Cakefile +0 -133
- data/gemfiles/Gemfile.xcodeproj-1.3.x +0 -5
- data/gemfiles/Gemfile.xcodeproj-1.4.x +0 -5
- data/gemfiles/Gemfile.xcodeproj-edge +0 -5
@@ -1,38 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
6
|
-
<string>en</string>
|
7
|
-
<key>CFBundleExecutable</key>
|
8
|
-
<string>$(EXECUTABLE_NAME)</string>
|
9
|
-
<key>CFBundleIdentifier</key>
|
10
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
12
|
-
<string>6.0</string>
|
13
|
-
<key>CFBundleName</key>
|
14
|
-
<string>$(PRODUCT_NAME)</string>
|
15
|
-
<key>CFBundlePackageType</key>
|
16
|
-
<string>APPL</string>
|
17
|
-
<key>CFBundleShortVersionString</key>
|
18
|
-
<string>1.0</string>
|
19
|
-
<key>CFBundleVersion</key>
|
20
|
-
<string>1</string>
|
21
|
-
<key>LSRequiresIPhoneOS</key>
|
22
|
-
<true/>
|
23
|
-
<key>UILaunchStoryboardName</key>
|
24
|
-
<string>LaunchScreen</string>
|
25
|
-
<key>UIMainStoryboardFile</key>
|
26
|
-
<string>Main</string>
|
27
|
-
<key>UIRequiredDeviceCapabilities</key>
|
28
|
-
<array>
|
29
|
-
<string>armv7</string>
|
30
|
-
</array>
|
31
|
-
<key>UISupportedInterfaceOrientations</key>
|
32
|
-
<array>
|
33
|
-
<string>UIInterfaceOrientationPortrait</string>
|
34
|
-
<string>UIInterfaceOrientationLandscapeLeft</string>
|
35
|
-
<string>UIInterfaceOrientationLandscapeRight</string>
|
36
|
-
</array>
|
37
|
-
</dict>
|
38
|
-
</plist>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
6
|
-
<string>en</string>
|
7
|
-
<key>CFBundleExecutable</key>
|
8
|
-
<string>$(EXECUTABLE_NAME)</string>
|
9
|
-
<key>CFBundleIdentifier</key>
|
10
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
12
|
-
<string>6.0</string>
|
13
|
-
<key>CFBundleName</key>
|
14
|
-
<string>$(PRODUCT_NAME)</string>
|
15
|
-
<key>CFBundlePackageType</key>
|
16
|
-
<string>BNDL</string>
|
17
|
-
<key>CFBundleShortVersionString</key>
|
18
|
-
<string>1.0</string>
|
19
|
-
<key>CFBundleVersion</key>
|
20
|
-
<string>1</string>
|
21
|
-
</dict>
|
22
|
-
</plist>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
6
|
-
<string>en</string>
|
7
|
-
<key>CFBundleExecutable</key>
|
8
|
-
<string>$(EXECUTABLE_NAME)</string>
|
9
|
-
<key>CFBundleIdentifier</key>
|
10
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
12
|
-
<string>6.0</string>
|
13
|
-
<key>CFBundleName</key>
|
14
|
-
<string>$(PRODUCT_NAME)</string>
|
15
|
-
<key>CFBundlePackageType</key>
|
16
|
-
<string>BNDL</string>
|
17
|
-
<key>CFBundleShortVersionString</key>
|
18
|
-
<string>1.0</string>
|
19
|
-
<key>CFBundleVersion</key>
|
20
|
-
<string>1</string>
|
21
|
-
</dict>
|
22
|
-
</plist>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>com.apple.developer.in-app-payments</key>
|
6
|
-
<array>
|
7
|
-
<string>merchant.com.cakemania</string>
|
8
|
-
</array>
|
9
|
-
</dict>
|
10
|
-
</plist>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>com.apple.developer.in-app-payments</key>
|
6
|
-
<array>
|
7
|
-
<string>merchant.com.cakemania</string>
|
8
|
-
</array>
|
9
|
-
</dict>
|
10
|
-
</plist>
|
@@ -1,48 +0,0 @@
|
|
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
|
-
"info" : {
|
45
|
-
"version" : 1,
|
46
|
-
"author" : "xcode"
|
47
|
-
}
|
48
|
-
}
|
@@ -1,46 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// AppDelegate.swift
|
3
|
-
// CakeMania
|
4
|
-
//
|
5
|
-
// Created by Maxim Khatskevich on 11/25/16.
|
6
|
-
// Copyright © 2016 CakeMania Inc. 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
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
3
|
-
<dependencies>
|
4
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
|
5
|
-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
6
|
-
</dependencies>
|
7
|
-
<scenes>
|
8
|
-
<!--View Controller-->
|
9
|
-
<scene sceneID="EHf-IW-A2E">
|
10
|
-
<objects>
|
11
|
-
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
12
|
-
<layoutGuides>
|
13
|
-
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
|
14
|
-
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
|
15
|
-
</layoutGuides>
|
16
|
-
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
17
|
-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
18
|
-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
19
|
-
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
20
|
-
</view>
|
21
|
-
</viewController>
|
22
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
23
|
-
</objects>
|
24
|
-
<point key="canvasLocation" x="53" y="375"/>
|
25
|
-
</scene>
|
26
|
-
</scenes>
|
27
|
-
</document>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
3
|
-
<dependencies>
|
4
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
|
5
|
-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
6
|
-
</dependencies>
|
7
|
-
<scenes>
|
8
|
-
<!--View Controller-->
|
9
|
-
<scene sceneID="tne-QT-ifu">
|
10
|
-
<objects>
|
11
|
-
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
|
12
|
-
<layoutGuides>
|
13
|
-
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
14
|
-
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
15
|
-
</layoutGuides>
|
16
|
-
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
17
|
-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
18
|
-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
19
|
-
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
20
|
-
</view>
|
21
|
-
</viewController>
|
22
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
23
|
-
</objects>
|
24
|
-
</scene>
|
25
|
-
</scenes>
|
26
|
-
</document>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#import <Availability.h>
|
2
|
-
|
3
|
-
#ifndef __IPHONE_4_0
|
4
|
-
#warning "This project uses features only available in iOS SDK 4.0 and later."
|
5
|
-
#endif
|
6
|
-
|
7
|
-
#ifdef __OBJC__
|
8
|
-
|
9
|
-
@import Foundation;
|
10
|
-
@import UIKit;
|
11
|
-
|
12
|
-
#import "CakeMania-Swift.h" // http://stackoverflow.com/a/27251979
|
13
|
-
|
14
|
-
#endif
|
@@ -1,25 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// ViewController.swift
|
3
|
-
// CakeMania
|
4
|
-
//
|
5
|
-
// Created by Maxim Khatskevich on 11/25/16.
|
6
|
-
// Copyright © 2016 CakeMania Inc. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
import UIKit
|
10
|
-
|
11
|
-
class ViewController: UIViewController {
|
12
|
-
|
13
|
-
override func viewDidLoad() {
|
14
|
-
super.viewDidLoad()
|
15
|
-
// Do any additional setup after loading the view, typically from a nib.
|
16
|
-
}
|
17
|
-
|
18
|
-
override func didReceiveMemoryWarning() {
|
19
|
-
super.didReceiveMemoryWarning()
|
20
|
-
// Dispose of any resources that can be recreated.
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
@@ -1,36 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// CakeManiaTests.swift
|
3
|
-
// CakeManiaTests
|
4
|
-
//
|
5
|
-
// Created by Maxim Khatskevich on 11/25/16.
|
6
|
-
// Copyright © 2016 CakeMania Inc. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
import XCTest
|
10
|
-
@testable import CakeMania
|
11
|
-
|
12
|
-
class CakeManiaTests: 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
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// CakeManiaUITests.swift
|
3
|
-
// CakeManiaUITests
|
4
|
-
//
|
5
|
-
// Created by Maxim Khatskevich on 11/25/16.
|
6
|
-
// Copyright © 2016 CakeMania Inc. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
import XCTest
|
10
|
-
|
11
|
-
class CakeManiaUITests: 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
|
-
}
|
data/example/framework/Cakefile
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
# https://github.com/jcampbell05/xcake
|
2
|
-
# http://www.rubydoc.info/github/jcampbell05/xcake/master/file/docs/Cakefile.md
|
3
|
-
|
4
|
-
iOSdeploymentTarget = "8.0"
|
5
|
-
currentSwiftVersion = "3.0.1" # to set "Use Legacy Swift ..." to "No"
|
6
|
-
companyIdentifier = "com.CakeMania"
|
7
|
-
developmentTeamId = "XYZXYZ" # for automatic debug signing in Xcode 8
|
8
|
-
testSuffix = "Tst"
|
9
|
-
|
10
|
-
#===
|
11
|
-
|
12
|
-
project.name = "CakeFamework"
|
13
|
-
project.class_prefix = "CFW"
|
14
|
-
project.organization = "CakeMania Inc."
|
15
|
-
|
16
|
-
#=== DEFAULT target settings
|
17
|
-
|
18
|
-
project.all_configurations.each do |configuration|
|
19
|
-
|
20
|
-
# for all configurations
|
21
|
-
|
22
|
-
configuration.settings["SDKROOT"] = "iphoneos"
|
23
|
-
configuration.settings["DEBUG_INFORMATION_FORMAT"] = "dwarf"
|
24
|
-
configuration.settings["CODE_SIGN_IDENTITY[sdk=iphoneos*]"] = "iPhone Developer"
|
25
|
-
configuration.settings["TARGETED_DEVICE_FAMILY"] = "1,2"
|
26
|
-
configuration.settings["IPHONEOS_DEPLOYMENT_TARGET"] = iOSdeploymentTarget
|
27
|
-
configuration.settings["VERSIONING_SYSTEM"] = "apple-generic"
|
28
|
-
|
29
|
-
configuration.settings["GCC_NO_COMMON_BLOCKS"] = "YES"
|
30
|
-
configuration.settings["GCC_WARN_ABOUT_RETURN_TYPE"] = "YES_ERROR"
|
31
|
-
configuration.settings["GCC_WARN_UNINITIALIZED_AUTOS"] = "YES_AGGRESSIVE"
|
32
|
-
configuration.settings["CLANG_WARN_DIRECT_OBJC_ISA_USAGE"] = "YES_ERROR"
|
33
|
-
configuration.settings["CLANG_WARN_OBJC_ROOT_CLASS"] = "YES_ERROR"
|
34
|
-
|
35
|
-
configuration.settings["SWIFT_OPTIMIZATION_LEVEL"] = "-Onone"
|
36
|
-
|
37
|
-
configuration.settings["CURRENT_PROJECT_VERSION"] = "1" # just default non-empty value
|
38
|
-
|
39
|
-
configuration.settings["CLANG_WARN_INFINITE_RECURSION"] = "YES" # Xcode 8
|
40
|
-
configuration.settings["CLANG_WARN_SUSPICIOUS_MOVE"] = "YES" # Xcode 8
|
41
|
-
configuration.settings["ENABLE_STRICT_OBJC_MSGSEND"] = "YES" # Xcode 8
|
42
|
-
|
43
|
-
#===
|
44
|
-
|
45
|
-
if configuration.name == "Release"
|
46
|
-
|
47
|
-
configuration.settings["DEBUG_INFORMATION_FORMAT"] = "dwarf-with-dsym"
|
48
|
-
configuration.settings["SWIFT_OPTIMIZATION_LEVEL"] = "-Owholemodule" # Xcode 8
|
49
|
-
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
53
|
-
|
54
|
-
#===
|
55
|
-
|
56
|
-
# Imagine we have project folder structure like this:
|
57
|
-
#
|
58
|
-
# - Cakefile
|
59
|
-
# - Info/
|
60
|
-
# | - CakeFamework.plist
|
61
|
-
# | - CakeFameworkTst.plist
|
62
|
-
# - Src/
|
63
|
-
# | - ...
|
64
|
-
# - Tst/
|
65
|
-
# | - ...
|
66
|
-
#
|
67
|
-
|
68
|
-
#=== TARGETS
|
69
|
-
|
70
|
-
target do |target|
|
71
|
-
|
72
|
-
target.name = project.name
|
73
|
-
target.type = :framework
|
74
|
-
target.language = :swift
|
75
|
-
target.platform = :ios
|
76
|
-
target.deployment_target = iOSdeploymentTarget
|
77
|
-
|
78
|
-
#=== CUSTOM settings for the target
|
79
|
-
|
80
|
-
target.all_configurations.each do |configuration|
|
81
|
-
|
82
|
-
#=== Build Settings - Core
|
83
|
-
|
84
|
-
configuration.product_bundle_identifier = companyIdentifier + "." + target.name
|
85
|
-
|
86
|
-
configuration.settings["INFOPLIST_FILE"] = "Info/" + target.name + ".plist"
|
87
|
-
|
88
|
-
configuration.settings["PRODUCT_NAME"] = "$(TARGET_NAME)"
|
89
|
-
|
90
|
-
# Xcode 8 automati c signing support
|
91
|
-
configuration.settings["CODE_SIGN_IDENTITY[sdk=iphoneos*]"] = "iPhone Developer"
|
92
|
-
configuration.settings["DEVELOPMENT_TEAM"] = developmentTeamId
|
93
|
-
|
94
|
-
configuration.settings["SWIFT_VERSION"] = currentSwiftVersion # Xcode 8
|
95
|
-
|
96
|
-
end
|
97
|
-
|
98
|
-
#=== Source Files
|
99
|
-
|
100
|
-
# assume all source files are located inside "/Src" folder and its subfolders
|
101
|
-
|
102
|
-
target.include_files = ["Src/**/*.*"]
|
103
|
-
|
104
|
-
#=== TEST TARGETS
|
105
|
-
|
106
|
-
unit_tests_for target do |test_target|
|
107
|
-
|
108
|
-
test_target.name = target.name + testSuffix
|
109
|
-
test_target.deployment_target = iOSdeploymentTarget
|
110
|
-
|
111
|
-
test_target.all_configurations.each do |configuration|
|
112
|
-
|
113
|
-
configuration.product_bundle_identifier = companyIdentifier + "." + test_target.name
|
114
|
-
|
115
|
-
configuration.settings["INFOPLIST_FILE"] = "Info/" + test_target.name + ".plist"
|
116
|
-
|
117
|
-
configuration.settings["LD_RUNPATH_SEARCH_PATHS"] = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
|
118
|
-
|
119
|
-
# Xcode 8 automati c signing support
|
120
|
-
configuration.settings["CODE_SIGN_IDENTITY[sdk=iphoneos*]"] = "iPhone Developer"
|
121
|
-
configuration.settings["DEVELOPMENT_TEAM"] = developmentTeamId
|
122
|
-
|
123
|
-
configuration.settings["SWIFT_VERSION"] = currentSwiftVersion # Xcode 8
|
124
|
-
|
125
|
-
end
|
126
|
-
|
127
|
-
#=== Source Files
|
128
|
-
|
129
|
-
test_target.include_files = [testSuffix + "/**/*.*"]
|
130
|
-
|
131
|
-
end
|
132
|
-
|
133
|
-
end
|