From b5309a90b18d3b4149b3f5733b614e958ff7d808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20So=CC=88derqvist?= Date: Wed, 13 Aug 2014 11:06:58 +0200 Subject: [PATCH 1/6] Added podspec --- KTPhotoBrowser.podspec | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 KTPhotoBrowser.podspec diff --git a/KTPhotoBrowser.podspec b/KTPhotoBrowser.podspec new file mode 100644 index 0000000..c4eba80 --- /dev/null +++ b/KTPhotoBrowser.podspec @@ -0,0 +1,12 @@ +Pod::Spec.new do |s| + s.name = "KTPhotoBrowser" + s.version = "0.0.1" + s.summary = "A lightweight photo browser library for the iPhone and iPod touch that looks and behaves like the iPhone Photos app." + s.homepage = "https://github.com/kirbyt/KTPhotoBrowser" + s.license = "MIT" + s.author = "Kirby Turner" + s.source = { :git => "https://github.com/kirbyt/KTPhotoBrowser.git", :commit => "8da811aa1e6b153315334e98abb345a3a67126ad" } + s.platform = :ios, "3.0" + s.source_files = "KTPhotoBrowser/**/*.{h,m}" + s.requires_arc = false +end From 6d355de8747cadc9e38a85a1e15907582ecc58c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20So=CC=88derqvist?= Date: Wed, 13 Aug 2014 11:08:20 +0200 Subject: [PATCH 2/6] Updated pod spec --- KTPhotoBrowser.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KTPhotoBrowser.podspec b/KTPhotoBrowser.podspec index c4eba80..64142d8 100644 --- a/KTPhotoBrowser.podspec +++ b/KTPhotoBrowser.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.homepage = "https://github.com/kirbyt/KTPhotoBrowser" s.license = "MIT" s.author = "Kirby Turner" - s.source = { :git => "https://github.com/kirbyt/KTPhotoBrowser.git", :commit => "8da811aa1e6b153315334e98abb345a3a67126ad" } + s.source = { :git => "https://github.com/mtlhd/KTPhotoBrowser.git", :tag => "0.0.1" } s.platform = :ios, "3.0" s.source_files = "KTPhotoBrowser/**/*.{h,m}" s.requires_arc = false From 32ebc53a477016f5bd14bb7599803d4136b73562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20So=CC=88derqvist?= Date: Wed, 13 Aug 2014 11:22:29 +0200 Subject: [PATCH 3/6] Updated pod spec --- KTPhotoBrowser.podspec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KTPhotoBrowser.podspec b/KTPhotoBrowser.podspec index 64142d8..e132e7f 100644 --- a/KTPhotoBrowser.podspec +++ b/KTPhotoBrowser.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = "KTPhotoBrowser" - s.version = "0.0.1" + s.version = "0.0.2" s.summary = "A lightweight photo browser library for the iPhone and iPod touch that looks and behaves like the iPhone Photos app." s.homepage = "https://github.com/kirbyt/KTPhotoBrowser" s.license = "MIT" s.author = "Kirby Turner" - s.source = { :git => "https://github.com/mtlhd/KTPhotoBrowser.git", :tag => "0.0.1" } + s.source = { :git => "https://github.com/mtlhd/KTPhotoBrowser.git", :tag => "0.0.2" } s.platform = :ios, "3.0" - s.source_files = "KTPhotoBrowser/**/*.{h,m}" + s.source_files = "src/KTPhotoBrowser/**/*.{h,m}" s.requires_arc = false end From 2a2c521a8ee7ad62de7e3c478703f4110dd6304d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20So=CC=88derqvist?= Date: Thu, 14 Aug 2014 14:12:28 +0200 Subject: [PATCH 4/6] Fixed iOS 7 deprecations. --- .../KTPhotoScrollViewController.m | 33 +++++++++++-------- src/KTPhotoBrowser/KTThumbsViewController.m | 7 +++- src/iAdSample/Classes/RootViewController.m | 5 ++- 3 files changed, 29 insertions(+), 16 deletions(-) diff --git a/src/KTPhotoBrowser/KTPhotoScrollViewController.m b/src/KTPhotoBrowser/KTPhotoScrollViewController.m index 81062ac..08ba4f8 100644 --- a/src/KTPhotoBrowser/KTPhotoScrollViewController.m +++ b/src/KTPhotoBrowser/KTPhotoScrollViewController.m @@ -58,20 +58,25 @@ - (void)dealloc - (id)initWithDataSource:(id )dataSource andStartWithPhotoAtIndex:(NSUInteger)index { - if (self = [super init]) { - startWithIndex_ = index; - dataSource_ = [dataSource retain]; - - // Make sure to set wantsFullScreenLayout or the photo - // will not display behind the status bar. - [self setWantsFullScreenLayout:YES]; - - BOOL isStatusbarHidden = [[UIApplication sharedApplication] isStatusBarHidden]; - [self setStatusbarHidden:isStatusbarHidden]; - - self.hidesBottomBarWhenPushed = YES; - } - return self; + if (self = [super init]) { + startWithIndex_ = index; + dataSource_ = [dataSource retain]; + + // Make sure to set wantsFullScreenLayout or the photo + // will not display behind the status bar. +#ifdef __IPHONE_7_0 + self.edgesForExtendedLayout = UIRectEdgeNone; + self.extendedLayoutIncludesOpaqueBars = YES; +#else + [self setWantsFullScreenLayout:YES]; +#endif + BOOL isStatusbarHidden = [[UIApplication sharedApplication] isStatusBarHidden]; + [self setStatusbarHidden:isStatusbarHidden]; + + self.hidesBottomBarWhenPushed = YES; + } + + return self; } - (void)loadView diff --git a/src/KTPhotoBrowser/KTThumbsViewController.m b/src/KTPhotoBrowser/KTThumbsViewController.m index 67018e7..f6ba552 100644 --- a/src/KTPhotoBrowser/KTThumbsViewController.m +++ b/src/KTPhotoBrowser/KTThumbsViewController.m @@ -29,7 +29,12 @@ - (void)dealloc { - (void)loadView { // Make sure to set wantsFullScreenLayout or the photo // will not display behind the status bar. - [self setWantsFullScreenLayout:YES]; +#ifdef __IPHONE_7_0 + self.edgesForExtendedLayout = UIRectEdgeNone; + self.extendedLayoutIncludesOpaqueBars = YES; +#else + [self setWantsFullScreenLayout:YES]; +#endif KTThumbsView *scrollView = [[KTThumbsView alloc] initWithFrame:CGRectZero]; [scrollView setDataSource:self]; diff --git a/src/iAdSample/Classes/RootViewController.m b/src/iAdSample/Classes/RootViewController.m index 907a0ea..aa38a77 100644 --- a/src/iAdSample/Classes/RootViewController.m +++ b/src/iAdSample/Classes/RootViewController.m @@ -42,7 +42,10 @@ - (void)loadView // Build a new view hierarchy. - [self setWantsFullScreenLayout:NO]; +#ifdef __IPHONE_7_0 +#else + [self setWantsFullScreenLayout:NO]; +#endif UIView *newContainerView = [[UIView alloc] initWithFrame:CGRectZero]; [newContainerView setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; From 610dc70df2d03c2a36e5d0f5792b03488a7e8639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20So=CC=88derqvist?= Date: Thu, 14 Aug 2014 14:16:43 +0200 Subject: [PATCH 5/6] Fixed iOS 7 deprecations. --- src/KTPhotoBrowser/KTPhotoScrollViewController.m | 6 +++++- src/Sample/Classes/SampleAppDelegate.m | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/KTPhotoBrowser/KTPhotoScrollViewController.m b/src/KTPhotoBrowser/KTPhotoScrollViewController.m index 08ba4f8..c290748 100644 --- a/src/KTPhotoBrowser/KTPhotoScrollViewController.m +++ b/src/KTPhotoBrowser/KTPhotoScrollViewController.m @@ -225,7 +225,11 @@ - (void)viewWillAppear:(BOOL)animated } // Then ensure translucency. Without it, the view will appear below rather than under it. [navbar setTranslucent:YES]; - [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES]; +#ifdef __IPHONE_7_0 + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES]; +#else + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES]; +#endif // Set the scroll view's content size, auto-scroll to the stating photo, // and setup the other display elements. diff --git a/src/Sample/Classes/SampleAppDelegate.m b/src/Sample/Classes/SampleAppDelegate.m index 9c683cb..2f79a38 100644 --- a/src/Sample/Classes/SampleAppDelegate.m +++ b/src/Sample/Classes/SampleAppDelegate.m @@ -17,7 +17,11 @@ @implementation SampleAppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:NO]; +#ifdef __IPHONE_7_0 + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES]; +#else + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES]; +#endif UINavigationController *newNavController; From 7c6f16e63a1d36adbc86c56d85c51a1f9411bb8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20So=CC=88derqvist?= Date: Mon, 18 Aug 2014 16:17:11 +0200 Subject: [PATCH 6/6] Removed warnings. --- .../project.pbxproj | 10 ++++++---- src/KTPhotoBrowser/KTThumbsView.h | 6 +++--- src/KTPhotoBrowser/KTThumbsView.m | 16 ++++++++-------- .../project.pbxproj | 16 ++++++++++------ src/Sample/Sample.xcodeproj/project.pbxproj | 18 ++++++++++-------- .../TabBarSample.xcodeproj/project.pbxproj | 16 ++++++++++------ .../iAdSample.xcodeproj/project.pbxproj | 12 ++++++++---- 7 files changed, 55 insertions(+), 39 deletions(-) diff --git a/src/Flickr+JSONSample/Flickr+JSONSample.xcodeproj/project.pbxproj b/src/Flickr+JSONSample/Flickr+JSONSample.xcodeproj/project.pbxproj index d984556..6bcaa9d 100644 --- a/src/Flickr+JSONSample/Flickr+JSONSample.xcodeproj/project.pbxproj +++ b/src/Flickr+JSONSample/Flickr+JSONSample.xcodeproj/project.pbxproj @@ -302,6 +302,7 @@ 689D24D11322CF8A00A08DEC /* Project object */ = { isa = PBXProject; attributes = { + LastUpgradeCheck = 0510; ORGANIZATIONNAME = "White Peak Software Inc."; }; buildConfigurationList = 689D24D41322CF8A00A08DEC /* Build configuration list for PBXProject "Flickr+JSONSample" */; @@ -400,7 +401,6 @@ 689D24F31322CF8B00A08DEC /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_OPTIMIZATION_LEVEL = 0; @@ -408,7 +408,8 @@ GCC_VERSION = com.apple.compilers.llvmgcc42; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 4.2; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; + ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; }; name = Debug; @@ -416,13 +417,12 @@ 689D24F41322CF8B00A08DEC /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_VERSION = com.apple.compilers.llvmgcc42; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 4.2; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; SDKROOT = iphoneos; }; @@ -436,6 +436,7 @@ GCC_DYNAMIC_NO_PIC = NO; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Flickr+JSONSample/Prefix.pch"; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; INFOPLIST_FILE = "Flickr+JSONSample/Info.plist"; INSTALL_PATH = "$(LOCAL_APPS_DIR)"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -450,6 +451,7 @@ COPY_PHASE_STRIP = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Flickr+JSONSample/Prefix.pch"; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; INFOPLIST_FILE = "Flickr+JSONSample/Info.plist"; INSTALL_PATH = "$(LOCAL_APPS_DIR)"; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/src/KTPhotoBrowser/KTThumbsView.h b/src/KTPhotoBrowser/KTThumbsView.h index e92ff93..419fc60 100644 --- a/src/KTPhotoBrowser/KTThumbsView.h +++ b/src/KTPhotoBrowser/KTThumbsView.h @@ -25,9 +25,9 @@ // We use the following ivars to keep track of // which thumbnail view indexes are visible. - int firstVisibleIndex_; - int lastVisibleIndex_; - int lastItemsPerRow_; + NSInteger firstVisibleIndex_; + NSInteger lastVisibleIndex_; + NSInteger lastItemsPerRow_; } @property (nonatomic, assign) id dataSource; diff --git a/src/KTPhotoBrowser/KTThumbsView.m b/src/KTPhotoBrowser/KTThumbsView.m index 95591f4..c3abd3a 100644 --- a/src/KTPhotoBrowser/KTThumbsView.m +++ b/src/KTPhotoBrowser/KTThumbsView.m @@ -92,7 +92,7 @@ - (void)layoutSubviews // Do a bunch of math to determine which rows and colums // are visible. - int itemsPerRow = thumbsPerRow_; + NSInteger itemsPerRow = thumbsPerRow_; if (itemsPerRow == NSIntegerMin) { itemsPerRow = floor(visibleWidth / thumbSize_.width); } @@ -113,14 +113,14 @@ - (void)layoutSubviews if (itemsPerRow < 1) itemsPerRow = 1; // Ensure at least one per row. - int spaceWidth = round((visibleWidth - thumbSize_.width * itemsPerRow) / (itemsPerRow + 1)); - int spaceHeight = spaceWidth; + CGFloat spaceWidth = round((visibleWidth - thumbSize_.width * itemsPerRow) / (itemsPerRow + 1)); + CGFloat spaceHeight = spaceWidth; // Calculate content size. - int thumbCount = [dataSource_ thumbsViewNumberOfThumbs:self]; - int rowCount = ceil(thumbCount / (float)itemsPerRow); - int rowHeight = thumbSize_.height + spaceHeight; - CGSize contentSize = CGSizeMake(visibleWidth, (rowHeight * rowCount + spaceHeight)); + NSInteger thumbCount = [dataSource_ thumbsViewNumberOfThumbs:self]; + int rowCount = (int)ceil(thumbCount / (float)itemsPerRow); + CGFloat rowHeight = thumbSize_.height + spaceHeight; + CGSize contentSize = CGSizeMake(visibleWidth, (rowHeight * (CGFloat)rowCount + spaceHeight)); [self setContentSize:contentSize]; NSInteger rowsPerView = visibleHeight / rowHeight; @@ -157,7 +157,7 @@ - (void)layoutSubviews // Iterate through the needed thumbnail views adding // any views that are missing. - for (int index = startAtIndex; index < stopAtIndex; index++) { + for (NSInteger index = startAtIndex; index < stopAtIndex; index++) { // If index is between first and last, then not missing. BOOL isThumbViewMissing = !(index >= firstVisibleIndex_ && index < lastVisibleIndex_); diff --git a/src/ReallyBigPhotoLibrary/ReallyBigPhotoLibrary.xcodeproj/project.pbxproj b/src/ReallyBigPhotoLibrary/ReallyBigPhotoLibrary.xcodeproj/project.pbxproj index adf0acf..fbf89e3 100755 --- a/src/ReallyBigPhotoLibrary/ReallyBigPhotoLibrary.xcodeproj/project.pbxproj +++ b/src/ReallyBigPhotoLibrary/ReallyBigPhotoLibrary.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 46; objects = { /* Begin PBXBuildFile section */ @@ -191,8 +191,11 @@ /* Begin PBXProject section */ 29B97313FDCFA39411CA2CEA /* Project object */ = { isa = PBXProject; + attributes = { + LastUpgradeCheck = 0510; + }; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ReallyBigPhotoLibrary" */; - compatibilityVersion = "Xcode 3.1"; + compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( @@ -281,27 +284,28 @@ C01FCF4F08A954540054247B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; + ONLY_ACTIVE_ARCH = YES; PREBINDING = NO; - SDKROOT = iphoneos4.1; + SDKROOT = iphoneos; }; name = Debug; }; C01FCF5008A954540054247B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; PREBINDING = NO; - SDKROOT = iphoneos4.1; + SDKROOT = iphoneos; }; name = Release; }; diff --git a/src/Sample/Sample.xcodeproj/project.pbxproj b/src/Sample/Sample.xcodeproj/project.pbxproj index 75f3d4a..23f45d9 100755 --- a/src/Sample/Sample.xcodeproj/project.pbxproj +++ b/src/Sample/Sample.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 46; objects = { /* Begin PBXBuildFile section */ @@ -309,8 +309,11 @@ /* Begin PBXProject section */ 29B97313FDCFA39411CA2CEA /* Project object */ = { isa = PBXProject; + attributes = { + LastUpgradeCheck = 0510; + }; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Sample" */; - compatibilityVersion = "Xcode 3.1"; + compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( @@ -416,29 +419,28 @@ C01FCF4F08A954540054247B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 3.0; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; + ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "-DDEBUG=1"; PREBINDING = NO; - SDKROOT = iphoneos4.0; + SDKROOT = iphoneos; }; name = Debug; }; C01FCF5008A954540054247B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 3.0; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; PREBINDING = NO; - SDKROOT = iphoneos4.0; + SDKROOT = iphoneos; }; name = Release; }; diff --git a/src/TabBarSample/TabBarSample.xcodeproj/project.pbxproj b/src/TabBarSample/TabBarSample.xcodeproj/project.pbxproj index 0c07b46..48fa697 100644 --- a/src/TabBarSample/TabBarSample.xcodeproj/project.pbxproj +++ b/src/TabBarSample/TabBarSample.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 46; objects = { /* Begin PBXBuildFile section */ @@ -296,8 +296,11 @@ /* Begin PBXProject section */ 29B97313FDCFA39411CA2CEA /* Project object */ = { isa = PBXProject; + attributes = { + LastUpgradeCheck = 0510; + }; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "TabBarSample" */; - compatibilityVersion = "Xcode 3.1"; + compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( @@ -398,27 +401,28 @@ C01FCF4F08A954540054247B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; + ONLY_ACTIVE_ARCH = YES; PREBINDING = NO; - SDKROOT = iphoneos4.0; + SDKROOT = iphoneos; }; name = Debug; }; C01FCF5008A954540054247B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; PREBINDING = NO; - SDKROOT = iphoneos4.0; + SDKROOT = iphoneos; }; name = Release; }; diff --git a/src/iAdSample/iAdSample.xcodeproj/project.pbxproj b/src/iAdSample/iAdSample.xcodeproj/project.pbxproj index 98e8389..f702386 100755 --- a/src/iAdSample/iAdSample.xcodeproj/project.pbxproj +++ b/src/iAdSample/iAdSample.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 46; objects = { /* Begin PBXBuildFile section */ @@ -204,8 +204,11 @@ /* Begin PBXProject section */ 29B97313FDCFA39411CA2CEA /* Project object */ = { isa = PBXProject; + attributes = { + LastUpgradeCheck = 0510; + }; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "iAdSample" */; - compatibilityVersion = "Xcode 3.1"; + compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( @@ -292,11 +295,12 @@ C01FCF4F08A954540054247B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; + ONLY_ACTIVE_ARCH = YES; PREBINDING = NO; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = 2; @@ -306,11 +310,11 @@ C01FCF5008A954540054247B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; PREBINDING = NO; SDKROOT = iphoneos;