Permalink
Browse files

Added xcode 4 project template

  • Loading branch information...
1 parent 5b9d5fd commit 07e3e203cb02389821d9533036ce2e81f12ac192 Roger Chapman committed Jul 29, 2011
View
@@ -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
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
Oops, something went wrong.

0 comments on commit 07e3e20

Please sign in to comment.