Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added xcode 4 project template

  • Loading branch information...
commit 07e3e203cb02389821d9533036ce2e81f12ac192 1 parent 5b9d5fd
@rogchap rogchap authored
View
9 templates/install
@@ -37,8 +37,17 @@ copy_xcode3_file_templates(){
cp -r xcode3/source/ "${TEMPLATE_DIR}"
}
+# Installs the xcode 4 project templates. Overwrites any existing files.
+copy_xcode4_project_templates(){
+ echo "Installing xcode 4 project templates"
+ TEMPLATE_DIR="${XCODE4_BASE_TEMPLATE_DIR}/Project Templates/Nimbus Application"
+ mkdir -p "${TEMPLATE_DIR}"
+ cp -r xcode4/projects/ "${TEMPLATE_DIR}"
+}
+
copy_xcode3_project_templates
copy_xcode3_file_templates
+copy_xcode4_project_templates
#mkdir -p ~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/Nimbus\ Application
#cp -r projects/ ~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/Nimbus\ Application
View
76 templates/xcode4/projects/Base.xctemplate/TemplateInfo.plist
@@ -0,0 +1,76 @@
+<?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>Identifier</key>
+ <string>com.nimbus.base</string>
+ <key>Kind</key>
+ <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
+ <key>Options</key>
+ <array>
+ <dict>
+ <key>Description</key>
+ <string>Your new product&apos;s name.</string>
+ <key>EmptyReplacement</key>
+ <string>ProductName</string>
+ <key>Identifier</key>
+ <string>productName</string>
+ <key>Name</key>
+ <string>Product Name</string>
+ <key>NotPersisted</key>
+ <true/>
+ <key>Required</key>
+ <true/>
+ <key>Type</key>
+ <string>text</string>
+ </dict>
+ </array>
+ <key>Project</key>
+ <dict>
+ <key>Configurations</key>
+ <dict>
+ <key>Debug</key>
+ <dict>
+ <key>GCC_OPTIMIZATION_LEVEL</key>
+ <string>0</string>
+ <key>GCC_PREPROCESSOR_DEFINITIONS</key>
+ <string>DEBUG</string>
+ <key>GCC_SYMBOLS_PRIVATE_EXTERN</key>
+ <string>NO</string>
+ </dict>
+ <key>Release</key>
+ <dict/>
+ </dict>
+ <key>SharedSettings</key>
+ <dict>
+ <key>GCC_C_LANGUAGE_STANDARD</key>
+ <string>gnu99</string>
+ <key>GCC_WARN_ABOUT_RETURN_TYPE</key>
+ <string>YES</string>
+ <key>GCC_WARN_UNUSED_VARIABLE</key>
+ <string>YES</string>
+ </dict>
+ </dict>
+ <key>Targets</key>
+ <array>
+ <dict>
+ <key>Configurations</key>
+ <dict>
+ <key>Debug</key>
+ <dict/>
+ <key>Release</key>
+ <dict/>
+ </dict>
+ <key>Name</key>
+ <string>___PACKAGENAME___</string>
+ <key>SharedSettings</key>
+ <dict>
+ <key>ALWAYS_SEARCH_USER_PATHS</key>
+ <string>NO</string>
+ <key>PRODUCT_NAME</key>
+ <string>$(TARGET_NAME)</string>
+ </dict>
+ </dict>
+ </array>
+</dict>
+</plist>
View
57 templates/xcode4/projects/Bundle Base.xctemplate/TemplateInfo.plist
@@ -0,0 +1,57 @@
+<?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>Ancestors</key>
+ <array>
+ <string>com.nimbus.base</string>
+ </array>
+ <key>Identifier</key>
+ <string>com.nimbus.bundleBase</string>
+ <key>Kind</key>
+ <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
+ <key>Options</key>
+ <array>
+ <dict>
+ <key>Description</key>
+ <string>Your company&apos;s bundle identifier prefix.</string>
+ <key>EmptyReplacement</key>
+ <string>com.yourcompany</string>
+ <key>Identifier</key>
+ <string>bundleIdentifierPrefix</string>
+ <key>Name</key>
+ <string>Company Identifier</string>
+ <key>Required</key>
+ <true/>
+ <key>Type</key>
+ <string>text</string>
+ </dict>
+ <dict>
+ <key>Default</key>
+ <string>___VARIABLE_bundleIdentifierPrefix:bundleIdentifier___.___VARIABLE_productName:RFC1034Identifier___</string>
+ <key>Description</key>
+ <string>Your new product&apos;s bundle identifier.</string>
+ <key>Identifier</key>
+ <string>bundleIdentifier</string>
+ <key>Name</key>
+ <string>Bundle Identifier</string>
+ <key>Type</key>
+ <string>static</string>
+ </dict>
+ </array>
+ <key>Targets</key>
+ <array>
+ <dict>
+ <key>SharedSettings</key>
+ <dict>
+ <key>GCC_PRECOMPILE_PREFIX_HEADER</key>
+ <string>YES</string>
+ <key>GCC_PREFIX_HEADER</key>
+ <string>___PACKAGENAME___/src/___PROJECTNAMEASIDENTIFIER____Prefix.pch</string>
+ <key>INFOPLIST_FILE</key>
+ <string>___PACKAGENAME___/resources/___PROJECTNAMEASIDENTIFIER___-Info.plist</string>
+ </dict>
+ </dict>
+ </array>
+</dict>
+</plist>
View
50 templates/xcode4/projects/Cocoa Touch Application.xctemplate/TemplateInfo.plist
@@ -0,0 +1,50 @@
+<?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>Ancestors</key>
+ <array>
+ <string>com.nimbus.objectiveCApplication</string>
+ <string>com.nimbus.iPhoneBase</string>
+ </array>
+ <key>Identifier</key>
+ <string>com.nimbus.cocoaTouchApplication</string>
+ <key>Kind</key>
+ <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
+ <key>Project</key>
+ <dict>
+ <key>Configurations</key>
+ <dict>
+ <key>Release</key>
+ <dict>
+ <key>OTHER_CFLAGS</key>
+ <string>-DNS_BLOCK_ASSERTIONS=1</string>
+ </dict>
+ </dict>
+ <key>SharedSettings</key>
+ <dict>
+ <key>CODE_SIGN_IDENTITY[sdk=iphoneos*]</key>
+ <string>iPhone Developer</string>
+ </dict>
+ </dict>
+ <key>Targets</key>
+ <array>
+ <dict>
+ <key>Configurations</key>
+ <dict>
+ <key>Release</key>
+ <dict>
+ <key>VALIDATE_PRODUCT</key>
+ <string>YES</string>
+ </dict>
+ </dict>
+ <key>Frameworks</key>
+ <array>
+ <string>UIKit</string>
+ <string>Foundation</string>
+ <string>CoreGraphics</string>
+ </array>
+ </dict>
+ </array>
+</dict>
+</plist>
View
56 templates/xcode4/projects/Objective-C Application.xctemplate/TemplateInfo.plist
@@ -0,0 +1,56 @@
+<?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>Ancestors</key>
+ <array>
+ <string>com.nimbus.bundleBase</string>
+ </array>
+ <key>Identifier</key>
+ <string>com.nimbus.objectiveCApplication</string>
+ <key>Kind</key>
+ <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
+ <key>Targets</key>
+ <array>
+ <dict>
+ <key>BuildPhases</key>
+ <array>
+ <dict>
+ <key>Class</key>
+ <string>Sources</string>
+ </dict>
+ <dict>
+ <key>Class</key>
+ <string>Frameworks</string>
+ </dict>
+ <dict>
+ <key>Class</key>
+ <string>Resources</string>
+ </dict>
+ </array>
+ <key>Configurations</key>
+ <dict>
+ <key>Debug</key>
+ <dict>
+ <key>COPY_PHASE_STRIP</key>
+ <string>NO</string>
+ <key>GCC_DYNAMIC_NO_PIC</key>
+ <string>NO</string>
+ </dict>
+ <key>Release</key>
+ <dict>
+ <key>COPY_PHASE_STRIP</key>
+ <string>YES</string>
+ </dict>
+ </dict>
+ <key>ProductType</key>
+ <string>com.apple.product-type.application</string>
+ <key>SharedSettings</key>
+ <dict>
+ <key>WRAPPER_EXTENSION</key>
+ <string>app</string>
+ </dict>
+ </dict>
+ </array>
+</dict>
+</plist>
View
81 templates/xcode4/projects/Skeleton App (Apache 2.0 Licensed).xctemplate/TemplateInfo.plist
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Ancestors</key>
+ <array>
+ <string>com.nimbus.cocoaTouchApplication</string>
+ </array>
+ <key>Concrete</key>
+ <true/>
+ <key>Definitions</key>
+ <dict>
+ <key>___PROJECTNAMEASIDENTIFIER____Prefix.pch</key>
+ <dict>
+ <key>Path</key>
+ <string>src/___PROJECTNAMEASIDENTIFIER____Prefix.pch</string>
+ <key>TargetIndices</key>
+ <array/>
+ </dict>
+ <key>src/AppDelegate.h</key>
+ <dict>
+ <key>Group</key>
+ <string>Source</string>
+ <key>Path</key>
+ <string>src/AppDelegate.h</string>
+ <key>TargetIndices</key>
+ <array/>
+ </dict>
+ <key>src/AppDelegate.m</key>
+ <dict>
+ <key>Group</key>
+ <string>Source</string>
+ <key>Path</key>
+ <string>src/AppDelegate.m</string>
+ </dict>
+ <key>src/main.m</key>
+ <dict>
+ <key>Group</key>
+ <string>Source</string>
+ <key>Path</key>
+ <string>src/main.m</string>
+ </dict>
+ <key>nimbus</key>
+ <dict>
+ <key>Group</key>
+ <string>Nimbus</string>
+ </dict>
+ <key>resources/___PROJECTNAMEASIDENTIFIER___-Info.plist</key>
+ <dict>
+ <key>Group</key>
+ <string>Resources</string>
+ <key>Path</key>
+ <string>resources/___PROJECTNAMEASIDENTIFIER___-Info.plist</string>
+ <key>TargetIndices</key>
+ <array/>
+ </dict>
+ </dict>
+ <key>Description</key>
+ <string>This is a simple skeleton application licensed under the Apache 2.0 open source license. It programmatically sets up the UIWindow, does not use nibs, and only has one entry point for both the iPhone and iPad.</string>
+ <key>Identifier</key>
+ <string>com.nimbus.skeletonApplicationApache2</string>
+ <key>Kind</key>
+ <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
+ <key>Nodes</key>
+ <array>
+ <string>src/___PROJECTNAMEASIDENTIFIER____Prefix.pch</string>
+ <string>src/AppDelegate.h</string>
+ <string>src/AppDelegate.m</string>
+ <string>src/main.m</string>
+ <string>resources/___PROJECTNAMEASIDENTIFIER___-Info.plist</string>
+ </array>
+ <key>Project</key>
+ <dict>
+ <key>SharedSettings</key>
+ <dict>
+ <key>TARGETED_DEVICE_FAMILY</key>
+ <string>1,2</string>
+ </dict>
+ </dict>
+</dict>
+</plist>
View
39 ...rojects/Skeleton App (Apache 2.0 Licensed).xctemplate/resources/___PROJECTNAMEASIDENTIFIER___-Info.plist
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
View
26 templates/xcode4/projects/Skeleton App (Apache 2.0 Licensed).xctemplate/src/AppDelegate.h
@@ -0,0 +1,26 @@
+//
+// Copyright ___YEAR___ ___ORGANIZATIONNAME___
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : NSObject <UIApplicationDelegate> {
+ UIWindow* _window;
+}
+
+@property (nonatomic, readwrite, retain) UIWindow* window;
+
+@end
+
View
53 templates/xcode4/projects/Skeleton App (Apache 2.0 Licensed).xctemplate/src/AppDelegate.m
@@ -0,0 +1,53 @@
+//
+// Copyright ___YEAR___ ___ORGANIZATIONNAME___
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+#import "AppDelegate.h"
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////////////////////////
+@implementation AppDelegate
+
+@synthesize window = _window;
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+- (void)dealloc {
+ [_window release];
+ _window = nil;
+
+ [super dealloc];
+}
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////////////////////////
+#pragma mark -
+#pragma mark Application lifecycle
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+- (BOOL) application:(UIApplication *)application
+ didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+ self.window = [[[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds] autorelease];
+ [self.window makeKeyAndVisible];
+
+ return YES;
+}
+
+
+@end
View
20 ...ode4/projects/Skeleton App (Apache 2.0 Licensed).xctemplate/src/___PROJECTNAMEASIDENTIFIER____Prefix.pch
@@ -0,0 +1,20 @@
+//
+// Copyright ___YEAR___ ___ORGANIZATIONNAME___
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+#ifdef __OBJC__
+ #import <Foundation/Foundation.h>
+ #import <UIKit/UIKit.h>
+#endif
View
24 templates/xcode4/projects/Skeleton App (Apache 2.0 Licensed).xctemplate/src/main.m
@@ -0,0 +1,24 @@
+//
+// Copyright ___YEAR___ ___ORGANIZATIONNAME___
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+#import <UIKit/UIKit.h>
+
+int main(int argc, char *argv[]) {
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+ int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
+ [pool release];
+ return retVal;
+}
View
28 templates/xcode4/projects/iPhone Base.xctemplate/TemplateInfo.plist
@@ -0,0 +1,28 @@
+<?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>Identifier</key>
+ <string>com.nimbus.iPhoneBase</string>
+ <key>Kind</key>
+ <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
+ <key>Platforms</key>
+ <array>
+ <string>com.apple.platform.iphoneos</string>
+ </array>
+ <key>Project</key>
+ <dict>
+ <key>SDK</key>
+ <string>iphoneos</string>
+ <key>SharedSettings</key>
+ <dict>
+ <key>ARCHS</key>
+ <string>$(ARCHS_STANDARD_32_BIT)</string>
+ <key>GCC_VERSION</key>
+ <string>com.apple.compilers.llvmgcc42</string>
+ <key>IPHONEOS_DEPLOYMENT_TARGET</key>
+ <string>latest_iphoneos</string>
+ </dict>
+ </dict>
+</dict>
+</plist>
Please sign in to comment.
Something went wrong with that request. Please try again.