xcoder 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/Gemfile +2 -1
  2. data/README.md +46 -5
  3. data/lib/xcode/builder.rb +21 -11
  4. data/lib/xcode/info_plist.rb +3 -3
  5. data/lib/xcode/project.rb +9 -2
  6. data/lib/xcode/scheme.rb +3 -0
  7. data/lib/xcode/version.rb +1 -1
  8. data/lib/xcode/workspace.rb +7 -0
  9. data/spec/TestProject/TestProject.xcodeproj/project.pbxproj +426 -0
  10. data/spec/TestProject/TestProject.xcodeproj/xcuserdata/ray.xcuserdatad/xcschemes/TestProject.xcscheme +94 -0
  11. data/spec/TestProject/TestProject.xcodeproj/xcuserdata/ray.xcuserdatad/xcschemes/xcschememanagement.plist +27 -0
  12. data/spec/TestProject/TestProject/AppDelegate.h +15 -0
  13. data/spec/TestProject/TestProject/AppDelegate.m +69 -0
  14. data/spec/TestProject/TestProject/TestProject-Info.plist +47 -0
  15. data/spec/TestProject/TestProject/TestProject-Prefix.pch +14 -0
  16. data/spec/TestProject/TestProject/en.lproj/InfoPlist.strings +2 -0
  17. data/spec/TestProject/TestProject/main.m +18 -0
  18. data/spec/TestProject/TestProjectTests/TestProjectTests-Info.plist +22 -0
  19. data/spec/TestProject/TestProjectTests/TestProjectTests.h +13 -0
  20. data/spec/TestProject/TestProjectTests/TestProjectTests.m +32 -0
  21. data/spec/TestProject/TestProjectTests/en.lproj/InfoPlist.strings +2 -0
  22. data/spec/TestProject/build/Debug-iphoneos/TestProject-Debug-1.0.dSYM.zip +0 -0
  23. data/spec/TestProject/build/Debug-iphoneos/TestProject-Debug-1.0.ipa +0 -0
  24. data/spec/TestProject/build/Debug-iphoneos/TestProject.app.dSYM/Contents/Info.plist +20 -0
  25. data/spec/TestProject/build/Debug-iphoneos/TestProject.app.dSYM/Contents/Resources/DWARF/TestProject +0 -0
  26. data/spec/TestProject/build/Debug-iphoneos/TestProject.app/Info.plist +0 -0
  27. data/spec/TestProject/build/Debug-iphoneos/TestProject.app/PkgInfo +1 -0
  28. data/spec/TestProject/build/Debug-iphoneos/TestProject.app/ResourceRules.plist +25 -0
  29. data/spec/TestProject/build/Debug-iphoneos/TestProject.app/TestProject +0 -0
  30. data/spec/TestProject/build/Debug-iphoneos/TestProject.app/_CodeSignature/CodeResources +40 -0
  31. data/spec/TestProject/build/Debug-iphoneos/TestProject.app/embedded.mobileprovision +0 -0
  32. data/spec/TestProject/build/Debug-iphoneos/TestProject.app/en.lproj/InfoPlist.strings +0 -0
  33. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/Objects-normal/armv7/AppDelegate.d +3 -0
  34. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/Objects-normal/armv7/AppDelegate.o +0 -0
  35. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/Objects-normal/armv7/TestProject.LinkFileList +2 -0
  36. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/Objects-normal/armv7/main.d +3 -0
  37. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/Objects-normal/armv7/main.o +0 -0
  38. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/TestProject-all-target-headers.hmap +0 -0
  39. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/TestProject-generated-files.hmap +0 -0
  40. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/TestProject-own-target-headers.hmap +0 -0
  41. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/TestProject-project-headers.hmap +0 -0
  42. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/TestProject.dep +12 -0
  43. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/TestProject.hmap +0 -0
  44. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/TestProject.xcent +20 -0
  45. data/spec/TestProject/build/TestProject.build/Debug-iphoneos/TestProject.build/build-state.dat +254 -0
  46. data/spec/TestWorkspace.xcworkspace/contents.xcworkspacedata +7 -0
  47. data/spec/TestWorkspace.xcworkspace/xcuserdata/ray.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  48. data/spec/configuration_spec.rb +29 -0
  49. data/spec/project_spec.rb +43 -0
  50. data/spec/scheme_spec.rb +29 -0
  51. data/spec/target_spec.rb +25 -0
  52. data/spec/workspace_spec.rb +33 -0
  53. data/xcoder.gemspec +1 -0
  54. metadata +96 -8
@@ -0,0 +1,94 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ version = "1.3">
4
+ <BuildAction
5
+ parallelizeBuildables = "YES"
6
+ buildImplicitDependencies = "YES">
7
+ <BuildActionEntries>
8
+ <BuildActionEntry
9
+ buildForTesting = "YES"
10
+ buildForRunning = "YES"
11
+ buildForProfiling = "YES"
12
+ buildForArchiving = "YES"
13
+ buildForAnalyzing = "YES">
14
+ <BuildableReference
15
+ BuildableIdentifier = "primary"
16
+ BlueprintIdentifier = "7165D44F146B4EA100DE2F0E"
17
+ BuildableName = "TestProject.app"
18
+ BlueprintName = "TestProject"
19
+ ReferencedContainer = "container:TestProject.xcodeproj">
20
+ </BuildableReference>
21
+ </BuildActionEntry>
22
+ </BuildActionEntries>
23
+ </BuildAction>
24
+ <TestAction
25
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
26
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
27
+ shouldUseLaunchSchemeArgsEnv = "YES"
28
+ buildConfiguration = "Debug">
29
+ <Testables>
30
+ <TestableReference
31
+ skipped = "NO">
32
+ <BuildableReference
33
+ BuildableIdentifier = "primary"
34
+ BlueprintIdentifier = "7165D46A146B4EA100DE2F0E"
35
+ BuildableName = "TestProjectTests.octest"
36
+ BlueprintName = "TestProjectTests"
37
+ ReferencedContainer = "container:TestProject.xcodeproj">
38
+ </BuildableReference>
39
+ </TestableReference>
40
+ </Testables>
41
+ <MacroExpansion>
42
+ <BuildableReference
43
+ BuildableIdentifier = "primary"
44
+ BlueprintIdentifier = "7165D44F146B4EA100DE2F0E"
45
+ BuildableName = "TestProject.app"
46
+ BlueprintName = "TestProject"
47
+ ReferencedContainer = "container:TestProject.xcodeproj">
48
+ </BuildableReference>
49
+ </MacroExpansion>
50
+ </TestAction>
51
+ <LaunchAction
52
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
53
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
54
+ launchStyle = "0"
55
+ useCustomWorkingDirectory = "NO"
56
+ buildConfiguration = "Debug"
57
+ debugDocumentVersioning = "YES"
58
+ allowLocationSimulation = "YES">
59
+ <BuildableProductRunnable>
60
+ <BuildableReference
61
+ BuildableIdentifier = "primary"
62
+ BlueprintIdentifier = "7165D44F146B4EA100DE2F0E"
63
+ BuildableName = "TestProject.app"
64
+ BlueprintName = "TestProject"
65
+ ReferencedContainer = "container:TestProject.xcodeproj">
66
+ </BuildableReference>
67
+ </BuildableProductRunnable>
68
+ <AdditionalOptions>
69
+ </AdditionalOptions>
70
+ </LaunchAction>
71
+ <ProfileAction
72
+ shouldUseLaunchSchemeArgsEnv = "YES"
73
+ savedToolIdentifier = ""
74
+ useCustomWorkingDirectory = "NO"
75
+ buildConfiguration = "Release"
76
+ debugDocumentVersioning = "YES">
77
+ <BuildableProductRunnable>
78
+ <BuildableReference
79
+ BuildableIdentifier = "primary"
80
+ BlueprintIdentifier = "7165D44F146B4EA100DE2F0E"
81
+ BuildableName = "TestProject.app"
82
+ BlueprintName = "TestProject"
83
+ ReferencedContainer = "container:TestProject.xcodeproj">
84
+ </BuildableReference>
85
+ </BuildableProductRunnable>
86
+ </ProfileAction>
87
+ <AnalyzeAction
88
+ buildConfiguration = "Debug">
89
+ </AnalyzeAction>
90
+ <ArchiveAction
91
+ buildConfiguration = "Release"
92
+ revealArchiveInOrganizer = "YES">
93
+ </ArchiveAction>
94
+ </Scheme>
@@ -0,0 +1,27 @@
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>SchemeUserState</key>
6
+ <dict>
7
+ <key>TestProject.xcscheme</key>
8
+ <dict>
9
+ <key>orderHint</key>
10
+ <integer>0</integer>
11
+ </dict>
12
+ </dict>
13
+ <key>SuppressBuildableAutocreation</key>
14
+ <dict>
15
+ <key>7165D44F146B4EA100DE2F0E</key>
16
+ <dict>
17
+ <key>primary</key>
18
+ <true/>
19
+ </dict>
20
+ <key>7165D46A146B4EA100DE2F0E</key>
21
+ <dict>
22
+ <key>primary</key>
23
+ <true/>
24
+ </dict>
25
+ </dict>
26
+ </dict>
27
+ </plist>
@@ -0,0 +1,15 @@
1
+ //
2
+ // AppDelegate.h
3
+ // TestProject
4
+ //
5
+ // Created by Ray Hilton on 10/11/11.
6
+ // Copyright (c) 2011 __MyCompanyName__. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ @interface AppDelegate : UIResponder <UIApplicationDelegate>
12
+
13
+ @property (strong, nonatomic) UIWindow *window;
14
+
15
+ @end
@@ -0,0 +1,69 @@
1
+ //
2
+ // AppDelegate.m
3
+ // TestProject
4
+ //
5
+ // Created by Ray Hilton on 10/11/11.
6
+ // Copyright (c) 2011 __MyCompanyName__. All rights reserved.
7
+ //
8
+
9
+ #import "AppDelegate.h"
10
+
11
+ @implementation AppDelegate
12
+
13
+ @synthesize window = _window;
14
+
15
+ - (void)dealloc
16
+ {
17
+ [_window release];
18
+ [super dealloc];
19
+ }
20
+
21
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
22
+ {
23
+ self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
24
+ // Override point for customization after application launch.
25
+ self.window.backgroundColor = [UIColor whiteColor];
26
+ [self.window makeKeyAndVisible];
27
+ return YES;
28
+ }
29
+
30
+ - (void)applicationWillResignActive:(UIApplication *)application
31
+ {
32
+ /*
33
+ 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.
34
+ Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
35
+ */
36
+ }
37
+
38
+ - (void)applicationDidEnterBackground:(UIApplication *)application
39
+ {
40
+ /*
41
+ 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.
42
+ If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
43
+ */
44
+ }
45
+
46
+ - (void)applicationWillEnterForeground:(UIApplication *)application
47
+ {
48
+ /*
49
+ Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
50
+ */
51
+ }
52
+
53
+ - (void)applicationDidBecomeActive:(UIApplication *)application
54
+ {
55
+ /*
56
+ 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.
57
+ */
58
+ }
59
+
60
+ - (void)applicationWillTerminate:(UIApplication *)application
61
+ {
62
+ /*
63
+ Called when the application is about to terminate.
64
+ Save data if appropriate.
65
+ See also applicationDidEnterBackground:.
66
+ */
67
+ }
68
+
69
+ @end
@@ -0,0 +1,47 @@
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>CFBundleDisplayName</key>
8
+ <string>${PRODUCT_NAME}</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>${EXECUTABLE_NAME}</string>
11
+ <key>CFBundleIconFiles</key>
12
+ <array/>
13
+ <key>CFBundleIdentifier</key>
14
+ <string>au.com.rayh.xcoder.${PRODUCT_NAME:rfc1034identifier}</string>
15
+ <key>CFBundleInfoDictionaryVersion</key>
16
+ <string>6.0</string>
17
+ <key>CFBundleName</key>
18
+ <string>${PRODUCT_NAME}</string>
19
+ <key>CFBundlePackageType</key>
20
+ <string>APPL</string>
21
+ <key>CFBundleShortVersionString</key>
22
+ <string>1.0</string>
23
+ <key>CFBundleSignature</key>
24
+ <string>????</string>
25
+ <key>CFBundleVersion</key>
26
+ <string>1.0</string>
27
+ <key>LSRequiresIPhoneOS</key>
28
+ <true/>
29
+ <key>UIRequiredDeviceCapabilities</key>
30
+ <array>
31
+ <string>armv7</string>
32
+ </array>
33
+ <key>UISupportedInterfaceOrientations</key>
34
+ <array>
35
+ <string>UIInterfaceOrientationPortrait</string>
36
+ <string>UIInterfaceOrientationLandscapeLeft</string>
37
+ <string>UIInterfaceOrientationLandscapeRight</string>
38
+ </array>
39
+ <key>UISupportedInterfaceOrientations~ipad</key>
40
+ <array>
41
+ <string>UIInterfaceOrientationPortrait</string>
42
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
43
+ <string>UIInterfaceOrientationLandscapeLeft</string>
44
+ <string>UIInterfaceOrientationLandscapeRight</string>
45
+ </array>
46
+ </dict>
47
+ </plist>
@@ -0,0 +1,14 @@
1
+ //
2
+ // Prefix header for all source files of the 'TestProject' target in the 'TestProject' project
3
+ //
4
+
5
+ #import <Availability.h>
6
+
7
+ #ifndef __IPHONE_3_0
8
+ #warning "This project uses features only available in iOS SDK 3.0 and later."
9
+ #endif
10
+
11
+ #ifdef __OBJC__
12
+ #import <UIKit/UIKit.h>
13
+ #import <Foundation/Foundation.h>
14
+ #endif
@@ -0,0 +1,2 @@
1
+ /* Localized versions of Info.plist keys */
2
+
@@ -0,0 +1,18 @@
1
+ //
2
+ // main.m
3
+ // TestProject
4
+ //
5
+ // Created by Ray Hilton on 10/11/11.
6
+ // Copyright (c) 2011 __MyCompanyName__. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ #import "AppDelegate.h"
12
+
13
+ int main(int argc, char *argv[])
14
+ {
15
+ @autoreleasepool {
16
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17
+ }
18
+ }
@@ -0,0 +1,22 @@
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>au.com.rayh.xcoder.${PRODUCT_NAME:rfc1034identifier}</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundlePackageType</key>
14
+ <string>BNDL</string>
15
+ <key>CFBundleShortVersionString</key>
16
+ <string>1.0</string>
17
+ <key>CFBundleSignature</key>
18
+ <string>????</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>1</string>
21
+ </dict>
22
+ </plist>
@@ -0,0 +1,13 @@
1
+ //
2
+ // TestProjectTests.h
3
+ // TestProjectTests
4
+ //
5
+ // Created by Ray Hilton on 10/11/11.
6
+ // Copyright (c) 2011 __MyCompanyName__. All rights reserved.
7
+ //
8
+
9
+ #import <SenTestingKit/SenTestingKit.h>
10
+
11
+ @interface TestProjectTests : SenTestCase
12
+
13
+ @end
@@ -0,0 +1,32 @@
1
+ //
2
+ // TestProjectTests.m
3
+ // TestProjectTests
4
+ //
5
+ // Created by Ray Hilton on 10/11/11.
6
+ // Copyright (c) 2011 __MyCompanyName__. All rights reserved.
7
+ //
8
+
9
+ #import "TestProjectTests.h"
10
+
11
+ @implementation TestProjectTests
12
+
13
+ - (void)setUp
14
+ {
15
+ [super setUp];
16
+
17
+ // Set-up code here.
18
+ }
19
+
20
+ - (void)tearDown
21
+ {
22
+ // Tear-down code here.
23
+
24
+ [super tearDown];
25
+ }
26
+
27
+ - (void)testExample
28
+ {
29
+ STFail(@"Unit tests are not implemented yet in TestProjectTests");
30
+ }
31
+
32
+ @end
@@ -0,0 +1,2 @@
1
+ /* Localized versions of Info.plist keys */
2
+
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple Computer//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>English</string>
7
+ <key>CFBundleIdentifier</key>
8
+ <string>com.apple.xcode.dsym.au.com.rayh.xcoder.TestProject</string>
9
+ <key>CFBundleInfoDictionaryVersion</key>
10
+ <string>6.0</string>
11
+ <key>CFBundlePackageType</key>
12
+ <string>dSYM</string>
13
+ <key>CFBundleSignature</key>
14
+ <string>????</string>
15
+ <key>CFBundleShortVersionString</key>
16
+ <string>1.0</string>
17
+ <key>CFBundleVersion</key>
18
+ <string>1.0</string>
19
+ </dict>
20
+ </plist>
@@ -0,0 +1,25 @@
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>rules</key>
6
+ <dict>
7
+ <key>.*</key>
8
+ <true/>
9
+ <key>Info.plist</key>
10
+ <dict>
11
+ <key>omit</key>
12
+ <true/>
13
+ <key>weight</key>
14
+ <real>10</real>
15
+ </dict>
16
+ <key>ResourceRules.plist</key>
17
+ <dict>
18
+ <key>omit</key>
19
+ <true/>
20
+ <key>weight</key>
21
+ <real>100</real>
22
+ </dict>
23
+ </dict>
24
+ </dict>
25
+ </plist>
@@ -0,0 +1,40 @@
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>files</key>
6
+ <dict>
7
+ <key>PkgInfo</key>
8
+ <data>
9
+ n57qDP4tZfLD1rCS43W0B4LQjzE=
10
+ </data>
11
+ <key>embedded.mobileprovision</key>
12
+ <data>
13
+ Ex8GJc83ST93UvucXr3DbD9/zxQ=
14
+ </data>
15
+ <key>en.lproj/InfoPlist.strings</key>
16
+ <data>
17
+ zmV6UqBSo6r1NOz798vd5O4zTBA=
18
+ </data>
19
+ </dict>
20
+ <key>rules</key>
21
+ <dict>
22
+ <key>.*</key>
23
+ <true/>
24
+ <key>Info.plist</key>
25
+ <dict>
26
+ <key>omit</key>
27
+ <true/>
28
+ <key>weight</key>
29
+ <real>10</real>
30
+ </dict>
31
+ <key>ResourceRules.plist</key>
32
+ <dict>
33
+ <key>omit</key>
34
+ <true/>
35
+ <key>weight</key>
36
+ <real>100</real>
37
+ </dict>
38
+ </dict>
39
+ </dict>
40
+ </plist>