Skip to content

Commit d781378

Browse files
author
Jett Farmer
committed
Updated to recommended project settings.
1 parent 719786f commit d781378

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

Example/AMResizingTextView.xcodeproj/project.pbxproj

+15-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
isa = PBXProject;
214214
attributes = {
215215
LastSwiftUpdateCheck = 0710;
216-
LastUpgradeCheck = 0630;
216+
LastUpgradeCheck = 0800;
217217
ORGANIZATIONNAME = CocoaPods;
218218
TargetAttributes = {
219219
607FACCF1AFB9204008FA782 = {
@@ -421,14 +421,17 @@
421421
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
422422
CLANG_WARN_EMPTY_BODY = YES;
423423
CLANG_WARN_ENUM_CONVERSION = YES;
424+
CLANG_WARN_INFINITE_RECURSION = YES;
424425
CLANG_WARN_INT_CONVERSION = YES;
425426
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
427+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
426428
CLANG_WARN_UNREACHABLE_CODE = YES;
427429
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
428430
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
429431
COPY_PHASE_STRIP = NO;
430432
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
431433
ENABLE_STRICT_OBJC_MSGSEND = YES;
434+
ENABLE_TESTABILITY = YES;
432435
GCC_C_LANGUAGE_STANDARD = gnu99;
433436
GCC_DYNAMIC_NO_PIC = NO;
434437
GCC_NO_COMMON_BLOCKS = YES;
@@ -465,8 +468,10 @@
465468
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
466469
CLANG_WARN_EMPTY_BODY = YES;
467470
CLANG_WARN_ENUM_CONVERSION = YES;
471+
CLANG_WARN_INFINITE_RECURSION = YES;
468472
CLANG_WARN_INT_CONVERSION = YES;
469473
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
474+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
470475
CLANG_WARN_UNREACHABLE_CODE = YES;
471476
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
472477
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -485,6 +490,7 @@
485490
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
486491
MTL_ENABLE_DEBUG_INFO = NO;
487492
SDKROOT = iphoneos;
493+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
488494
VALIDATE_PRODUCT = YES;
489495
};
490496
name = Release;
@@ -493,10 +499,12 @@
493499
isa = XCBuildConfiguration;
494500
baseConfigurationReference = 18A280E0F58169C9E8A56E40 /* Pods-AMResizingTextView_Abstract_Target-AMResizingTextView_Example.debug.xcconfig */;
495501
buildSettings = {
502+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
496503
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
497504
INFOPLIST_FILE = AMResizingTextView/Info.plist;
498505
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
499506
MODULE_NAME = ExampleApp;
507+
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
500508
PRODUCT_NAME = "$(TARGET_NAME)";
501509
SWIFT_VERSION = 3.0;
502510
};
@@ -506,10 +514,12 @@
506514
isa = XCBuildConfiguration;
507515
baseConfigurationReference = C1C2ECD423B43C1A80957575 /* Pods-AMResizingTextView_Abstract_Target-AMResizingTextView_Example.release.xcconfig */;
508516
buildSettings = {
517+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
509518
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
510519
INFOPLIST_FILE = AMResizingTextView/Info.plist;
511520
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
512521
MODULE_NAME = ExampleApp;
522+
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
513523
PRODUCT_NAME = "$(TARGET_NAME)";
514524
SWIFT_VERSION = 3.0;
515525
};
@@ -519,6 +529,7 @@
519529
isa = XCBuildConfiguration;
520530
baseConfigurationReference = 7D1175058CB83FE539479FEE /* Pods-AMResizingTextView_Abstract_Target-AMResizingTextView_Tests.debug.xcconfig */;
521531
buildSettings = {
532+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
522533
BUNDLE_LOADER = "$(TEST_HOST)";
523534
FRAMEWORK_SEARCH_PATHS = (
524535
"$(SDKROOT)/Developer/Library/Frameworks",
@@ -530,6 +541,7 @@
530541
);
531542
INFOPLIST_FILE = Tests/Info.plist;
532543
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
544+
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
533545
PRODUCT_NAME = "$(TARGET_NAME)";
534546
SWIFT_VERSION = 3.0;
535547
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AMResizingTextView_Example.app/AMResizingTextView_Example";
@@ -540,13 +552,15 @@
540552
isa = XCBuildConfiguration;
541553
baseConfigurationReference = BE1FCDCE68D5E08B1AD9D94A /* Pods-AMResizingTextView_Abstract_Target-AMResizingTextView_Tests.release.xcconfig */;
542554
buildSettings = {
555+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
543556
BUNDLE_LOADER = "$(TEST_HOST)";
544557
FRAMEWORK_SEARCH_PATHS = (
545558
"$(SDKROOT)/Developer/Library/Frameworks",
546559
"$(inherited)",
547560
);
548561
INFOPLIST_FILE = Tests/Info.plist;
549562
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
563+
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
550564
PRODUCT_NAME = "$(TARGET_NAME)";
551565
SWIFT_VERSION = 3.0;
552566
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AMResizingTextView_Example.app/AMResizingTextView_Example";

Example/AMResizingTextView.xcodeproj/xcshareddata/xcschemes/AMResizingTextView-Example.xcscheme

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0630"
3+
LastUpgradeVersion = "0800"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -37,10 +37,10 @@
3737
</BuildActionEntries>
3838
</BuildAction>
3939
<TestAction
40+
buildConfiguration = "Debug"
4041
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4142
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42-
shouldUseLaunchSchemeArgsEnv = "YES"
43-
buildConfiguration = "Debug">
43+
shouldUseLaunchSchemeArgsEnv = "YES">
4444
<Testables>
4545
<TestableReference
4646
skipped = "NO">
@@ -62,15 +62,18 @@
6262
ReferencedContainer = "container:AMResizingTextView.xcodeproj">
6363
</BuildableReference>
6464
</MacroExpansion>
65+
<AdditionalOptions>
66+
</AdditionalOptions>
6567
</TestAction>
6668
<LaunchAction
69+
buildConfiguration = "Debug"
6770
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
6871
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
6972
launchStyle = "0"
7073
useCustomWorkingDirectory = "NO"
71-
buildConfiguration = "Debug"
7274
ignoresPersistentStateOnLaunch = "NO"
7375
debugDocumentVersioning = "YES"
76+
debugServiceExtension = "internal"
7477
allowLocationSimulation = "YES">
7578
<BuildableProductRunnable
7679
runnableDebuggingMode = "0">
@@ -86,10 +89,10 @@
8689
</AdditionalOptions>
8790
</LaunchAction>
8891
<ProfileAction
92+
buildConfiguration = "Release"
8993
shouldUseLaunchSchemeArgsEnv = "YES"
9094
savedToolIdentifier = ""
9195
useCustomWorkingDirectory = "NO"
92-
buildConfiguration = "Release"
9396
debugDocumentVersioning = "YES">
9497
<BuildableProductRunnable
9598
runnableDebuggingMode = "0">

Example/AMResizingTextView/Info.plist

+1-1
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>org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>

Example/Tests/Info.plist

+1-1
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>org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>

0 commit comments

Comments
 (0)