Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed targets to build in Xcode 4 (note that for the static framework…

… target build to succeed you must change the build product location as described here: http://pivotallabs.com/users/amilligan/blog/articles/1651

Updated the README to point out the build product issue.
  • Loading branch information...
commit 0c16f2c0c266082b9747af05743fd612c2aaa09c 1 parent d96b053
Kevin Fitzpatrick & Matthew DuVall authored
Showing with 21 additions and 8 deletions.
  1. +4 −2 .gitignore
  2. +13 −6 Cedar.xcodeproj/project.pbxproj
  3. +4 −0 README.markdown
View
6 .gitignore
@@ -1,4 +1,6 @@
-Cedar.xcodeproj/*.mode1v3
-Cedar.xcodeproj/*.pbxuser
+*.mode1v3
+*.pbxuser
+*.xcworkspace
+xcuserdata
build
.DS_Store
View
19 Cedar.xcodeproj/project.pbxproj
@@ -705,7 +705,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "xcodebuild -project ${PROJECT_NAME}.xcodeproj -sdk iphonesimulator4.2 -target ${PROJECT_NAME}-StaticLib -configuration ${CONFIGURATION} clean build\nxcodebuild -project ${PROJECT_NAME}.xcodeproj -sdk iphoneos4.2 -target ${PROJECT_NAME}-StaticLib -configuration ${CONFIGURATION} clean build";
+ shellScript = "xcodebuild -project ${PROJECT_NAME}.xcodeproj -sdk iphonesimulator -target ${PROJECT_NAME}-StaticLib -configuration ${CONFIGURATION} clean build\nxcodebuild -project ${PROJECT_NAME}.xcodeproj -sdk iphoneos -target ${PROJECT_NAME}-StaticLib -configuration ${CONFIGURATION} clean build";
};
AEEE225A11DC2C0200029872 /* Build universal static lib */ = {
isa = PBXShellScriptBuildPhase;
@@ -834,7 +834,10 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = c99;
- GCC_VERSION = com.apple.compilers.llvmgcc42;
+ GCC_TREAT_WARNINGS_AS_ERRORS = YES;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
+ WARNING_CFLAGS = "-Wno-idiomatic-parentheses";
};
name = Debug;
};
@@ -844,7 +847,10 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
+ WARNING_CFLAGS = "-Wno-idiomatic-parentheses";
};
name = Release;
};
@@ -966,7 +972,7 @@
GCC_OPTIMIZATION_LEVEL = 0;
PREBINDING = NO;
PRODUCT_NAME = "Cedar-StaticLib";
- SDKROOT = iphonesimulator4.2;
+ SDKROOT = iphonesimulator;
};
name = Debug;
};
@@ -980,7 +986,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
PREBINDING = NO;
PRODUCT_NAME = "Cedar-StaticLib";
- SDKROOT = iphonesimulator4.2;
+ SDKROOT = iphonesimulator;
ZERO_LINK = NO;
};
name = Release;
@@ -1039,7 +1045,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = iPhoneSpecs;
- SDKROOT = iphonesimulator4.2;
+ SDKROOT = iphonesimulator;
};
name = Debug;
};
@@ -1047,6 +1053,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
@@ -1075,7 +1082,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = iPhoneSpecs;
- SDKROOT = iphonesimulator4.2;
+ SDKROOT = iphonesimulator;
ZERO_LINK = NO;
};
name = Release;
View
4 README.markdown
@@ -62,6 +62,10 @@ BDD-style testing using Objective-C
will sometimes not copy all of the header files appropriately. If after you
build the Headers directory under the built framework is empty, try deleting
the built framework and building again.
+ NOTE #2: Xcode 4 has changed the location of build products, except for command
+ line builds. Since the static framework build includes scripts that depend on
+ command line builds, it will fail when using the default Xcode 4 build settings.
+ See [this post](http://pivotallabs.com/users/amilligan/blog/articles/1651) for solutions.
* Create a Cocoa Touch executable target for your tests in your project. Name
this target UISpecs, or something similar.
* Open the Info.plist file for your project and remove the "Main nib file base
Please sign in to comment.
Something went wrong with that request. Please try again.