Skip to content

Commit 97ee83a

Browse files
committed
Fix build warnings.
1 parent 717b253 commit 97ee83a

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

Sample App/JTSImageVC/JTSImageVC.xcodeproj/project.pbxproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
isa = PBXProject;
254254
attributes = {
255255
CLASSPREFIX = JTS;
256-
LastUpgradeCheck = 0510;
256+
LastUpgradeCheck = 0700;
257257
ORGANIZATIONNAME = "Nice Boy, LLC";
258258
TargetAttributes = {
259259
7F9A791B18E754A7000CAA69 = {
@@ -387,6 +387,7 @@
387387
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
388388
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
389389
COPY_PHASE_STRIP = NO;
390+
ENABLE_TESTABILITY = YES;
390391
GCC_C_LANGUAGE_STANDARD = gnu99;
391392
GCC_DYNAMIC_NO_PIC = NO;
392393
GCC_OPTIMIZATION_LEVEL = 0;
@@ -448,6 +449,7 @@
448449
GCC_PREFIX_HEADER = "JTSImageVC/JTSImageVC-Prefix.pch";
449450
INFOPLIST_FILE = "JTSImageVC/JTSImageVC-Info.plist";
450451
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
452+
PRODUCT_BUNDLE_IDENTIFIER = "com.jaredsinclair.${PRODUCT_NAME:rfc1034identifier}";
451453
PRODUCT_NAME = "$(TARGET_NAME)";
452454
WARNING_CFLAGS = "";
453455
WRAPPER_EXTENSION = app;
@@ -463,6 +465,7 @@
463465
GCC_PREFIX_HEADER = "JTSImageVC/JTSImageVC-Prefix.pch";
464466
INFOPLIST_FILE = "JTSImageVC/JTSImageVC-Info.plist";
465467
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
468+
PRODUCT_BUNDLE_IDENTIFIER = "com.jaredsinclair.${PRODUCT_NAME:rfc1034identifier}";
466469
PRODUCT_NAME = "$(TARGET_NAME)";
467470
WARNING_CFLAGS = "";
468471
WRAPPER_EXTENSION = app;
@@ -474,7 +477,6 @@
474477
buildSettings = {
475478
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/JTSImageVC.app/JTSImageVC";
476479
FRAMEWORK_SEARCH_PATHS = (
477-
"$(SDKROOT)/Developer/Library/Frameworks",
478480
"$(inherited)",
479481
"$(DEVELOPER_FRAMEWORKS_DIR)",
480482
);
@@ -485,6 +487,7 @@
485487
"$(inherited)",
486488
);
487489
INFOPLIST_FILE = "JTSImageVCTests/JTSImageVCTests-Info.plist";
490+
PRODUCT_BUNDLE_IDENTIFIER = "com.niceboy.${PRODUCT_NAME:rfc1034identifier}";
488491
PRODUCT_NAME = "$(TARGET_NAME)";
489492
TEST_HOST = "$(BUNDLE_LOADER)";
490493
WRAPPER_EXTENSION = xctest;
@@ -496,13 +499,13 @@
496499
buildSettings = {
497500
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/JTSImageVC.app/JTSImageVC";
498501
FRAMEWORK_SEARCH_PATHS = (
499-
"$(SDKROOT)/Developer/Library/Frameworks",
500502
"$(inherited)",
501503
"$(DEVELOPER_FRAMEWORKS_DIR)",
502504
);
503505
GCC_PRECOMPILE_PREFIX_HEADER = YES;
504506
GCC_PREFIX_HEADER = "JTSImageVC/JTSImageVC-Prefix.pch";
505507
INFOPLIST_FILE = "JTSImageVCTests/JTSImageVCTests-Info.plist";
508+
PRODUCT_BUNDLE_IDENTIFIER = "com.niceboy.${PRODUCT_NAME:rfc1034identifier}";
506509
PRODUCT_NAME = "$(TARGET_NAME)";
507510
TEST_HOST = "$(BUNDLE_LOADER)";
508511
WRAPPER_EXTENSION = xctest;

Sample App/JTSImageVC/JTSImageVC/JTSImageVC-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>CFBundleExecutable</key>
1010
<string>${EXECUTABLE_NAME}</string>
1111
<key>CFBundleIdentifier</key>
12-
<string>com.jaredsinclair.${PRODUCT_NAME:rfc1034identifier}</string>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>

Sample App/JTSImageVC/JTSImageVC/JTSViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ - (void)viewDidLoad {
2828
self.bigImageButton.layer.cornerRadius = self.bigImageButton.bounds.size.width/2.0f;
2929
}
3030

31-
- (NSUInteger)supportedInterfaceOrientations {
31+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
3232
return UIInterfaceOrientationMaskPortrait;
3333
}
3434

Sample App/JTSImageVC/JTSImageVCTests/JTSImageVCTests-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>${EXECUTABLE_NAME}</string>
99
<key>CFBundleIdentifier</key>
10-
<string>com.niceboy.${PRODUCT_NAME:rfc1034identifier}</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundlePackageType</key>

Source/JTSImageViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ - (void)dealloc {
209209

210210
#pragma mark - UIViewController
211211

212-
- (NSUInteger)supportedInterfaceOrientations {
212+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
213213

214214
/*
215215
iOS 8 changes the behavior of autorotation when presenting a

0 commit comments

Comments
 (0)