Skip to content
Browse files

Update for iOS5

Switched to using LLVM Compiler and fixed associated warnings
Added armv6 to architectures so can use devices running < iOS5
  • Loading branch information...
1 parent c3ae399 commit 5ff1188a736ccb7cb9fe5aaf0c1fcbc82dc77039 @becka11y committed Oct 26, 2011
View
2 PhoneGapLib/Classes/Contact.m
@@ -1552,7 +1552,7 @@ -(BOOL) testDateValue: (NSString*)testValue forW3CProperty: (NSString*) property
if ([[PGContact defaultW3CtoAB] valueForKeyIsNumber: property ]) {
ABPropertyID propId = [[[PGContact defaultW3CtoAB] objectForKey: property] intValue];
if(ABPersonGetTypeOfProperty(propId) == kABDateTimePropertyType){
- NSDate* date = [(NSString*)ABRecordCopyValue(self.record, propId) autorelease];
+ NSDate* date = [(NSDate*)ABRecordCopyValue(self.record, propId) autorelease];
if (date != nil) {
NSString* dateString = [date descriptionWithLocale:[NSLocale currentLocale]];
NSPredicate *containPred = [NSPredicate predicateWithFormat:@"SELF contains[cd] %@", testValue];
View
1 PhoneGapLib/Classes/Reachability.h
@@ -48,6 +48,7 @@
#import <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
+#import <netinet/in.h>
typedef enum {
NotReachable = 0,
View
50 PhoneGapLib/PhoneGapLib.xcodeproj/project.pbxproj
@@ -870,7 +870,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ ARCHS = (
+ armv6,
+ "$(ARCHS_STANDARD_32_BIT)",
+ );
COPY_PHASE_STRIP = NO;
DSTROOT = /tmp/PhoneGapLib.dst;
GCC_DYNAMIC_NO_PIC = NO;
@@ -880,6 +883,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = PhoneGapLib_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = "";
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INSTALL_PATH = /usr/local/lib;
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
PRODUCT_NAME = PhoneGap;
@@ -891,12 +895,16 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ ARCHS = (
+ armv6,
+ "$(ARCHS_STANDARD_32_BIT)",
+ );
DSTROOT = /tmp/PhoneGapLib.dst;
GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = PhoneGapLib_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = "";
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INSTALL_PATH = /usr/local/lib;
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
PRODUCT_NAME = PhoneGap;
@@ -907,11 +915,14 @@
1DEB922308733DC00010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ ARCHS = (
+ armv6,
+ "$(ARCHS_STANDARD_32_BIT)",
+ );
GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_VERSION = com.apple.compilers.llvmgcc42;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
@@ -932,10 +943,13 @@
1DEB922408733DC00010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ ARCHS = (
+ armv6,
+ "$(ARCHS_STANDARD_32_BIT)",
+ );
GCC_C_LANGUAGE_STANDARD = c99;
GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_VERSION = com.apple.compilers.llvmgcc42;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
@@ -955,6 +969,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = (
+ armv6,
+ "$(ARCHS_STANDARD_32_BIT)",
+ );
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = NO;
@@ -967,6 +985,7 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "";
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
LINK_WITH_STANDARD_LIBRARIES = NO;
@@ -984,6 +1003,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = (
+ armv6,
+ "$(ARCHS_STANDARD_32_BIT)",
+ );
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COPY_PHASE_STRIP = YES;
DEAD_CODE_STRIPPING = NO;
@@ -995,6 +1018,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "";
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
LINK_WITH_STANDARD_LIBRARIES = NO;
@@ -1013,6 +1037,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ "ARCHS[arch=*]" = (
+ armv6,
+ "$(ARCHS_STANDARD_32_BIT)",
+ );
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_OPTIMIZATION_LEVEL = 0;
@@ -1045,6 +1073,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = (
+ armv6,
+ "$(ARCHS_STANDARD_32_BIT)",
+ );
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(DEVELOPER_LIBRARY_DIR)/Frameworks",
@@ -1054,6 +1086,7 @@
GCC_PREFIX_HEADER = "PhoneGapLibTests/PhoneGapLibTests-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "PhoneGapLibTests/PhoneGapLibTests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
OTHER_LDFLAGS = (
@@ -1071,13 +1104,18 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = (
+ armv6,
+ "$(ARCHS_STANDARD_32_BIT)",
+ );
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(DEVELOPER_LIBRARY_DIR)/Frameworks",
);
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PhoneGapLibTests/PhoneGapLibTests-Prefix.pch";
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "PhoneGapLibTests/PhoneGapLibTests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
OTHER_LDFLAGS = (

0 comments on commit 5ff1188

Please sign in to comment.
Something went wrong with that request. Please try again.