Permalink
Browse files

Resolve an issue with Xcode 3.2.4 and building Three20 with LLVM 1.5.

All precompiled headers now use the Xcode 3.2.4 fix if necessary to
resolve errors when compiling with LLVM 1.5.

If you would like to build Three20 with LLVM 1.5, simply edit
src/common/Configurations/Library.xcconfig
and uncomment the necessary lines.

The next change will resolve warnings associated with building Three20
with LLVM 1.5.
  • Loading branch information...
1 parent b6b34ae commit fe58271145646e8e88d89d45501e79ef0f27e798 @jverkoey jverkoey committed Oct 14, 2010
Showing with 99 additions and 57 deletions.
  1. +1 −0 samples/TTFacebook/TTFacebook.xcodeproj/project.pbxproj
  2. +0 −17 src/Analyzer/Xcode324SimulatorWorkaround.pch
  3. +2 −0 src/Three20/Headers/Three20_Prefix.pch
  4. +7 −1 src/Three20/Three20.xcodeproj/project.pbxproj
  5. +2 −0 src/Three20Core/Headers/Three20Core_Prefix.pch
  6. +4 −4 src/Three20Core/Three20Core.xcodeproj/project.pbxproj
  7. +2 −0 src/Three20Network/Headers/Three20Network_Prefix.pch
  8. +4 −4 src/Three20Network/Three20Network.xcodeproj/project.pbxproj
  9. +2 −0 src/Three20Style/Headers/Three20Style_Prefix.pch
  10. +6 −4 src/Three20Style/Three20Style.xcodeproj/project.pbxproj
  11. +2 −0 src/Three20UI/Headers/Three20UI_Prefix.pch
  12. +4 −4 src/Three20UI/Three20UI.xcodeproj/project.pbxproj
  13. +2 −0 src/Three20UICommon/Headers/Three20UICommon_Prefix.pch
  14. +4 −4 src/Three20UICommon/Three20UICommon.xcodeproj/project.pbxproj
  15. +2 −0 src/Three20UINavigator/Headers/Three20UINavigator_Prefix.pch
  16. +4 −4 src/Three20UINavigator/Three20UINavigator.xcodeproj/project.pbxproj
  17. +7 −0 src/common/Configurations/Library.xcconfig
  18. +18 −0 src/common/Xcode324iOS41Fix.pch
  19. +2 −0 src/extThree20CSSStyle/Headers/extThree20CSSStyle_Prefix.pch
  20. +5 −4 src/extThree20CSSStyle/extThree20CSSStyle.xcodeproj/project.pbxproj
  21. +3 −1 src/extThree20JSON/Headers/extThree20JSON+SBJSON_Prefix.pch
  22. +3 −1 src/extThree20JSON/Headers/extThree20JSON+YAJL_Prefix.pch
  23. +5 −5 src/extThree20JSON/extThree20JSON.xcodeproj/project.pbxproj
  24. +2 −0 src/extThree20XML/Headers/extThree20XML_Prefix.pch
  25. +6 −4 src/extThree20XML/extThree20XML.xcodeproj/project.pbxproj
View
1 samples/TTFacebook/TTFacebook.xcodeproj/project.pbxproj
@@ -1160,6 +1160,7 @@
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "TTFacebook" */;
compatibilityVersion = "Xcode 3.1";
+ developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
View
17 src/Analyzer/Xcode324SimulatorWorkaround.pch
@@ -1,17 +0,0 @@
-// This workaround fixes the static analyzer for Xcode 3.2.4 Internal Simulator
-// builds.
-//
-// See https://devforums.apple.com/thread/66169?start=25&tstart=0 for details.
-//
-
-#import <TargetConditionals.h>
-#if TARGET_IPHONE_SIMULATOR
-#ifndef __IPHONE_OS_VERSION_MIN_REQUIRED
-#define __IPHONE_OS_VERSION_MIN_REQUIRED 040100
-#endif
-#endif
-
-#if __IPHONE_OS_VERSION_MAX_ALLOWED != __IPHONE_4_1
-#error Remove above workaround, it was to allow the static analyzer to parse things correctly.
-#endif
-
View
2 src/Three20/Headers/Three20_Prefix.pch
@@ -2,6 +2,8 @@
// Prefix header for all source files of the 'Three20' target in the 'Three20' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
View
8 src/Three20/Three20.xcodeproj/project.pbxproj
@@ -1881,7 +1881,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
PRODUCT_NAME = "$(BASE_PRODUCT_NAME)";
@@ -1899,6 +1899,8 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
PRODUCT_NAME = "$(BASE_PRODUCT_NAME)";
@@ -1968,6 +1970,8 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
PRODUCT_NAME = "$(BASE_PRODUCT_NAME)";
@@ -1984,6 +1988,8 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
PREBINDING = NO;
PRODUCT_NAME = "$(BASE_PRODUCT_NAME)";
SDKROOT = iphoneos4.1;
View
2 src/Three20Core/Headers/Three20Core_Prefix.pch
@@ -2,6 +2,8 @@
// Prefix header for all source files of the 'Three20Core' target in the 'Three20Core' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
View
8 src/Three20Core/Three20Core.xcodeproj/project.pbxproj
@@ -1052,7 +1052,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
RUN_CLANG_STATIC_ANALYZER = YES;
@@ -1070,7 +1070,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1138,7 +1138,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1154,7 +1154,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
PREBINDING = NO;
SDKROOT = iphoneos4.1;
ZERO_LINK = NO;
View
2 src/Three20Network/Headers/Three20Network_Prefix.pch
@@ -2,6 +2,8 @@
// Prefix header for all source files of the 'Three20Core' target in the 'Three20Core' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
View
8 src/Three20Network/Three20Network.xcodeproj/project.pbxproj
@@ -1264,7 +1264,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
RUN_CLANG_STATIC_ANALYZER = YES;
@@ -1282,7 +1282,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1349,7 +1349,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1365,7 +1365,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
PREBINDING = NO;
SDKROOT = iphoneos4.1;
ZERO_LINK = NO;
View
2 src/Three20Style/Headers/Three20Style_Prefix.pch
@@ -2,6 +2,8 @@
// Prefix header for all source files of the 'Three20Core' target in the 'Three20Core' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
View
10 src/Three20Style/Three20Style.xcodeproj/project.pbxproj
@@ -591,6 +591,7 @@
/* Begin PBXFileReference section */
662D82C412639CDE005851C2 /* Xcode324iOS41TestSuiteWorkaround.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Xcode324iOS41TestSuiteWorkaround.m; path = ../UnitTests/Xcode324iOS41TestSuiteWorkaround.m; sourceTree = SOURCE_ROOT; };
+ 66313A7D1267B4E800C09C9F /* Three20Style_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Three20Style_Prefix.pch; path = Headers/Three20Style_Prefix.pch; sourceTree = "<group>"; };
66846C7812639EE5001D2CF9 /* libThree20Style-Xcode3.2.2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libThree20Style-Xcode3.2.2.a"; sourceTree = BUILT_PRODUCTS_DIR; };
66846C9612639F29001D2CF9 /* StyleUnitTests-Xcode3.2.2.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "StyleUnitTests-Xcode3.2.2.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
66C16BE912639E2700A7825A /* libThree20Style-Xcode3.2.5.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libThree20Style-Xcode3.2.5.a"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -804,6 +805,7 @@
children = (
6EE738C11184AE4A00A35176 /* Three20Style.h */,
6E64548F1184D3BC00F08CB1 /* Three20Style+Additions.h */,
+ 66313A7D1267B4E800C09C9F /* Three20Style_Prefix.pch */,
6EE737001184A1D500A35176 /* Source */,
6E08B743118397FA00DA1579 /* Dependencies */,
6EE7364D11849B4200A35176 /* Configurations */,
@@ -2271,7 +2273,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
RUN_CLANG_STATIC_ANALYZER = YES;
@@ -2294,7 +2296,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -2367,7 +2369,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -2389,7 +2391,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
HEADER_SEARCH_PATHS = .;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
View
2 src/Three20UI/Headers/Three20UI_Prefix.pch
@@ -2,6 +2,8 @@
// Prefix header for all source files of the 'Three20' target in the 'Three20' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
View
8 src/Three20UI/Three20UI.xcodeproj/project.pbxproj
@@ -4306,7 +4306,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
RUN_CLANG_STATIC_ANALYZER = YES;
@@ -4324,7 +4324,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -4392,7 +4392,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -4409,7 +4409,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
PREBINDING = NO;
SDKROOT = iphoneos4.1;
WRAPPER_EXTENSION = octest;
View
2 src/Three20UICommon/Headers/Three20UICommon_Prefix.pch
@@ -2,6 +2,8 @@
// Prefix header for all source files of the 'Three20UICommon' target in the 'Three20UICommon' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
View
8 src/Three20UICommon/Three20UICommon.xcodeproj/project.pbxproj
@@ -1050,7 +1050,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
RUN_CLANG_STATIC_ANALYZER = YES;
@@ -1068,7 +1068,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1136,7 +1136,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1153,7 +1153,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
PREBINDING = NO;
SDKROOT = iphoneos4.1;
WRAPPER_EXTENSION = octest;
View
2 src/Three20UINavigator/Headers/Three20UINavigator_Prefix.pch
@@ -2,6 +2,8 @@
// Prefix header for all source files of the 'Three20UINavigator' target in the 'Three20UINavigator' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
View
8 src/Three20UINavigator/Three20UINavigator.xcodeproj/project.pbxproj
@@ -1551,7 +1551,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
RUN_CLANG_STATIC_ANALYZER = YES;
@@ -1569,7 +1569,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1637,7 +1637,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1654,7 +1654,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
PREBINDING = NO;
SDKROOT = iphoneos4.1;
WRAPPER_EXTENSION = octest;
View
7 src/common/Configurations/Library.xcconfig
@@ -22,6 +22,13 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES
GCC_PREFIX_HEADER = $(SRCROOT)/Headers/$(BASE_PRODUCT_NAME)_Prefix.pch
RUN_CLANG_STATIC_ANALYZER = NO
+// Uncomment this flags to build the modules with LLVM compiler 1.5
+//GCC_VERSION = com.apple.compilers.llvm.clang.1_0
+
+// We frequently use self.view; in Three20UI and LLVM compiler 1.5 raises warnings.
+// This flag turns them off.
+//WARNING_CFLAGS = -Wno-unused-value
+
FRAMEWORK_SEARCH_PATHS = "$(SDKROOT)/Developer/Library/Frameworks"
IPHONEOS_DEPLOYMENT_TARGET = 3.0
SDKROOT = iphoneos4.1
View
18 src/common/Xcode324iOS41Fix.pch
@@ -0,0 +1,18 @@
+// This workaround fixes the static analyzer and LLVM compiler 1.5
+// for Xcode 3.2.4 Simulator builds.
+//
+// See https://devforums.apple.com/thread/66169?start=25&tstart=0 for details.
+// and http://stackoverflow.com/questions/3677879/strange-issue-after-upgrading-to-ios-4-1-sdk
+//
+
+#ifdef __OBJC__
+ #if __IPHONE_OS_VERSION_MAX_ALLOWED == __IPHONE_4_1
+ #import <TargetConditionals.h>
+ #if TARGET_IPHONE_SIMULATOR
+ #ifndef __IPHONE_OS_VERSION_MIN_REQUIRED
+ #define __IPHONE_OS_VERSION_MIN_REQUIRED 040100
+ #endif
+ #endif
+ #endif
+#endif
+
View
2 src/extThree20CSSStyle/Headers/extThree20CSSStyle_Prefix.pch
@@ -2,6 +2,8 @@
// Prefix header for all source files of the 'Three20Core' target in the 'Three20Core' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
View
9 src/extThree20CSSStyle/extThree20CSSStyle.xcodeproj/project.pbxproj
@@ -339,6 +339,7 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
+ 66313D671267BFCF00C09C9F /* extThree20CSSStyle_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = extThree20CSSStyle_Prefix.pch; path = Headers/extThree20CSSStyle_Prefix.pch; sourceTree = "<group>"; };
663DB00712661D6F00CF8CEA /* Xcode324iOS41TestSuiteWorkaround.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Xcode324iOS41TestSuiteWorkaround.m; path = ../UnitTests/Xcode324iOS41TestSuiteWorkaround.m; sourceTree = SOURCE_ROOT; };
66C34B1D12661C0600489E9A /* libextThree20CSSStyle-Xcode3.2.5.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libextThree20CSSStyle-Xcode3.2.5.a"; sourceTree = BUILT_PRODUCTS_DIR; };
66C34B3312661C0600489E9A /* extCSSStyleUnitTests-Xcode3.2.5.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "extCSSStyleUnitTests-Xcode3.2.5.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -452,6 +453,7 @@
children = (
6E036B3611B38A420025E8EE /* README.mdown */,
6E646518118805EB00F08CB1 /* extThree20CSSStyle.h */,
+ 66313D671267BFCF00C09C9F /* extThree20CSSStyle_Prefix.pch */,
6EB4609C1183D1E000685649 /* Source */,
6ED118E41183C38A0096AEBF /* Configurations */,
6E645A4311876CFE00F08CB1 /* Dependencies */,
@@ -1490,7 +1492,6 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
EXTJSON_SBJSON,
DEBUG,
@@ -1510,7 +1511,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = ../common/Xcode324iOS41Fix.pch;
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1581,7 +1582,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = ../common/Xcode324iOS41Fix.pch;
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1596,7 +1597,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = ../common/Xcode324iOS41Fix.pch;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
ZERO_LINK = NO;
View
4 src/extThree20JSON/Headers/extThree20JSON+SBJSON_Prefix.pch
@@ -1,7 +1,9 @@
//
-// Prefix header for all source files of the 'Three20Core' target in the 'Three20Core' project
+// Prefix header for all source files of the 'extThree20JSON+SBJSON' target in the 'extThree20JSON' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
View
4 src/extThree20JSON/Headers/extThree20JSON+YAJL_Prefix.pch
@@ -1,7 +1,9 @@
//
-// Prefix header for all source files of the 'Three20Core' target in the 'Three20Core' project
+// Prefix header for all source files of the 'extThree20JSON+YAJL' target in the 'extThree20JSON' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
View
10 src/extThree20JSON/extThree20JSON.xcodeproj/project.pbxproj
@@ -1918,7 +1918,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
EXTJSON_YAJL,
DEBUG,
@@ -1962,7 +1962,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
EXTJSON_SBJSON,
DEBUG,
@@ -1983,7 +1983,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -2055,7 +2055,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -2071,7 +2071,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
PREBINDING = NO;
SDKROOT = iphoneos4.1;
ZERO_LINK = NO;
View
2 src/extThree20XML/Headers/extThree20XML_Prefix.pch
@@ -2,6 +2,8 @@
// Prefix header for all source files of the 'Three20Core' target in the 'Three20Core' project
//
+#import "../../common/Xcode324iOS41Fix.pch"
+
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
View
10 src/extThree20XML/extThree20XML.xcodeproj/project.pbxproj
@@ -233,6 +233,7 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
+ 66313DC61267C0CB00C09C9F /* extThree20XML_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = extThree20XML_Prefix.pch; path = Headers/extThree20XML_Prefix.pch; sourceTree = "<group>"; };
663DB1A5126625B400CF8CEA /* Xcode324iOS41TestSuiteWorkaround.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Xcode324iOS41TestSuiteWorkaround.m; path = ../UnitTests/Xcode324iOS41TestSuiteWorkaround.m; sourceTree = SOURCE_ROOT; };
66C34C99126625E000489E9A /* libextThree20XML-Xcode3.2.5.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libextThree20XML-Xcode3.2.5.a"; sourceTree = BUILT_PRODUCTS_DIR; };
66C34CAF126625E000489E9A /* extJSONUnitTests-Xcode3.2.5.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "extJSONUnitTests-Xcode3.2.5.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -327,6 +328,7 @@
isa = PBXGroup;
children = (
6E646518118805EB00F08CB1 /* extThree20XML.h */,
+ 66313DC61267C0CB00C09C9F /* extThree20XML_Prefix.pch */,
6EB4609C1183D1E000685649 /* Source */,
6E645A4311876CFE00F08CB1 /* Dependencies */,
6ED118E41183C38A0096AEBF /* Configurations */,
@@ -1185,7 +1187,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
EXTJSON_SBJSON,
DEBUG,
@@ -1206,7 +1208,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1279,7 +1281,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos4.1;
@@ -1295,7 +1297,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SRCROOT)/../Analyzer/Xcode324SimulatorWorkaround.pch";
+ GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
PREBINDING = NO;
SDKROOT = iphoneos4.1;
ZERO_LINK = NO;

0 comments on commit fe58271

Please sign in to comment.