Skip to content

Commit 3971bea

Browse files
authored
Fix build warning for Example project (AFNetworking#4617)
* Set IPHONEOS_DEPLOYMENT_TARGET = 9.0 * Add CURRENT_PROJECT_VERSION Fixed warning: The CFBundleVersion of an app extension ('1') must match that of its containing parent app ('1.0.0'). * Add 1024x1024 app store icon Fixed warning: A 1024x1024 app store icon is required for iOS apps * Update project files for Xcode 12
1 parent 3afc782 commit 3971bea

File tree

13 files changed

+75
-83
lines changed

13 files changed

+75
-83
lines changed

AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworking iOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1140"
3+
LastUpgradeVersion = "1200"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworking macOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1140"
3+
LastUpgradeVersion = "1200"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworking tvOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1140"
3+
LastUpgradeVersion = "1200"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworking watchOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1140"
3+
LastUpgradeVersion = "1200"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/AFNetworking Example.xcodeproj/project.pbxproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
29E6F16B1BB9DA2E00A4466C /* Project object */ = {
501501
isa = PBXProject;
502502
attributes = {
503-
LastUpgradeCheck = 0930;
503+
LastUpgradeCheck = 1200;
504504
TargetAttributes = {
505505
291BFDB81BB9E85400FFB029 = {
506506
CreatedOnToolsVersion = 7.1;
@@ -1094,6 +1094,7 @@
10941094
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
10951095
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
10961096
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1097+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO;
10971098
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
10981099
CLANG_WARN_STRICT_PROTOTYPES = YES;
10991100
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -1127,6 +1128,7 @@
11271128
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
11281129
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
11291130
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1131+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO;
11301132
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
11311133
CLANG_WARN_STRICT_PROTOTYPES = YES;
11321134
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -1166,6 +1168,7 @@
11661168
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
11671169
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
11681170
COPY_PHASE_STRIP = NO;
1171+
CURRENT_PROJECT_VERSION = 1;
11691172
DEBUG_INFORMATION_FORMAT = dwarf;
11701173
ENABLE_STRICT_OBJC_MSGSEND = YES;
11711174
ENABLE_TESTABILITY = YES;
@@ -1184,7 +1187,7 @@
11841187
GCC_WARN_UNUSED_FUNCTION = YES;
11851188
GCC_WARN_UNUSED_VARIABLE = YES;
11861189
INFOPLIST_FILE = "$(PROJECT_DIR)/iOS Example/Info.plist";
1187-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1190+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
11881191
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
11891192
MTL_ENABLE_DEBUG_INFO = YES;
11901193
ONLY_ACTIVE_ARCH = YES;
@@ -1215,6 +1218,7 @@
12151218
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
12161219
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
12171220
COPY_PHASE_STRIP = NO;
1221+
CURRENT_PROJECT_VERSION = 1;
12181222
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
12191223
ENABLE_NS_ASSERTIONS = NO;
12201224
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -1227,7 +1231,7 @@
12271231
GCC_WARN_UNUSED_FUNCTION = YES;
12281232
GCC_WARN_UNUSED_VARIABLE = YES;
12291233
INFOPLIST_FILE = "$(PROJECT_DIR)/iOS Example/Info.plist";
1230-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1234+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
12311235
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
12321236
MTL_ENABLE_DEBUG_INFO = NO;
12331237
PRODUCT_BUNDLE_IDENTIFIER = "com.alamofire.iOS-Example";

Example/AFNetworking Example.xcodeproj/xcshareddata/xcschemes/iOS Example.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1140"
3+
LastUpgradeVersion = "1200"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/AFNetworking Example.xcodeproj/xcshareddata/xcschemes/iOS Today Extension Example.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1140"
3+
LastUpgradeVersion = "1200"
44
wasCreatedForAppExtension = "YES"
55
version = "2.0">
66
<BuildAction

Example/AFNetworking Example.xcodeproj/xcshareddata/xcschemes/macOS Example.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1140"
3+
LastUpgradeVersion = "1200"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/AFNetworking Example.xcodeproj/xcshareddata/xcschemes/tvOS Example.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1140"
3+
LastUpgradeVersion = "1200"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/AFNetworking Example.xcodeproj/xcshareddata/xcschemes/watchOS Example.xcscheme

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1140"
3+
LastUpgradeVersion = "1200"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -94,18 +94,16 @@
9494
debugDocumentVersioning = "YES"
9595
debugServiceExtension = "internal"
9696
allowLocationSimulation = "YES">
97-
<RemoteRunnable
98-
runnableDebuggingMode = "2"
99-
BundleIdentifier = "com.apple.carousel"
100-
RemotePath = "/iOS Example">
97+
<BuildableProductRunnable
98+
runnableDebuggingMode = "0">
10199
<BuildableReference
102100
BuildableIdentifier = "primary"
103101
BlueprintIdentifier = "291BFDB81BB9E85400FFB029"
104102
BuildableName = "watchOS Example.app"
105103
BlueprintName = "watchOS Example"
106104
ReferencedContainer = "container:AFNetworking Example.xcodeproj">
107105
</BuildableReference>
108-
</RemoteRunnable>
106+
</BuildableProductRunnable>
109107
<AdditionalOptions>
110108
<AdditionalOption
111109
key = "NSZombieEnabled"
@@ -120,27 +118,16 @@
120118
savedToolIdentifier = ""
121119
useCustomWorkingDirectory = "NO"
122120
debugDocumentVersioning = "YES">
123-
<RemoteRunnable
124-
runnableDebuggingMode = "2"
125-
BundleIdentifier = "com.apple.carousel"
126-
RemotePath = "/iOS Example">
121+
<BuildableProductRunnable
122+
runnableDebuggingMode = "0">
127123
<BuildableReference
128124
BuildableIdentifier = "primary"
129125
BlueprintIdentifier = "291BFDB81BB9E85400FFB029"
130126
BuildableName = "watchOS Example.app"
131127
BlueprintName = "watchOS Example"
132128
ReferencedContainer = "container:AFNetworking Example.xcodeproj">
133129
</BuildableReference>
134-
</RemoteRunnable>
135-
<MacroExpansion>
136-
<BuildableReference
137-
BuildableIdentifier = "primary"
138-
BlueprintIdentifier = "291BFDB81BB9E85400FFB029"
139-
BuildableName = "watchOS Example.app"
140-
BlueprintName = "watchOS Example"
141-
ReferencedContainer = "container:AFNetworking Example.xcodeproj">
142-
</BuildableReference>
143-
</MacroExpansion>
130+
</BuildableProductRunnable>
144131
</ProfileAction>
145132
<AnalyzeAction
146133
buildConfiguration = "Debug">

Example/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,109 +2,110 @@
22
"images" : [
33
{
44
"idiom" : "iphone",
5-
"size" : "20x20",
6-
"scale" : "2x"
5+
"scale" : "2x",
6+
"size" : "20x20"
77
},
88
{
99
"idiom" : "iphone",
10-
"size" : "20x20",
11-
"scale" : "3x"
10+
"scale" : "3x",
11+
"size" : "20x20"
1212
},
1313
{
14-
"size" : "29x29",
15-
"idiom" : "iphone",
1614
"filename" : "[email protected]",
17-
"scale" : "2x"
15+
"idiom" : "iphone",
16+
"scale" : "2x",
17+
"size" : "29x29"
1818
},
1919
{
20-
"size" : "29x29",
21-
"idiom" : "iphone",
2220
"filename" : "[email protected]",
23-
"scale" : "3x"
21+
"idiom" : "iphone",
22+
"scale" : "3x",
23+
"size" : "29x29"
2424
},
2525
{
26-
"size" : "40x40",
27-
"idiom" : "iphone",
2826
"filename" : "[email protected]",
29-
"scale" : "2x"
27+
"idiom" : "iphone",
28+
"scale" : "2x",
29+
"size" : "40x40"
3030
},
3131
{
32-
"size" : "40x40",
33-
"idiom" : "iphone",
3432
"filename" : "[email protected]",
35-
"scale" : "3x"
33+
"idiom" : "iphone",
34+
"scale" : "3x",
35+
"size" : "40x40"
3636
},
3737
{
38-
"size" : "60x60",
39-
"idiom" : "iphone",
4038
"filename" : "[email protected]",
41-
"scale" : "2x"
39+
"idiom" : "iphone",
40+
"scale" : "2x",
41+
"size" : "60x60"
4242
},
4343
{
44-
"size" : "60x60",
45-
"idiom" : "iphone",
4644
"filename" : "[email protected]",
47-
"scale" : "3x"
45+
"idiom" : "iphone",
46+
"scale" : "3x",
47+
"size" : "60x60"
4848
},
4949
{
5050
"idiom" : "ipad",
51-
"size" : "20x20",
52-
"scale" : "1x"
51+
"scale" : "1x",
52+
"size" : "20x20"
5353
},
5454
{
5555
"idiom" : "ipad",
56-
"size" : "20x20",
57-
"scale" : "2x"
56+
"scale" : "2x",
57+
"size" : "20x20"
5858
},
5959
{
60-
"size" : "29x29",
61-
"idiom" : "ipad",
6260
"filename" : "Icon-Small.png",
63-
"scale" : "1x"
61+
"idiom" : "ipad",
62+
"scale" : "1x",
63+
"size" : "29x29"
6464
},
6565
{
66-
"size" : "29x29",
67-
"idiom" : "ipad",
6866
"filename" : "[email protected]",
69-
"scale" : "2x"
67+
"idiom" : "ipad",
68+
"scale" : "2x",
69+
"size" : "29x29"
7070
},
7171
{
72-
"size" : "40x40",
73-
"idiom" : "ipad",
7472
"filename" : "Icon-40.png",
75-
"scale" : "1x"
73+
"idiom" : "ipad",
74+
"scale" : "1x",
75+
"size" : "40x40"
7676
},
7777
{
78-
"size" : "40x40",
79-
"idiom" : "ipad",
8078
"filename" : "[email protected]",
81-
"scale" : "2x"
79+
"idiom" : "ipad",
80+
"scale" : "2x",
81+
"size" : "40x40"
8282
},
8383
{
84-
"size" : "76x76",
85-
"idiom" : "ipad",
8684
"filename" : "Icon-76.png",
87-
"scale" : "1x"
85+
"idiom" : "ipad",
86+
"scale" : "1x",
87+
"size" : "76x76"
8888
},
8989
{
90-
"size" : "76x76",
91-
"idiom" : "ipad",
9290
"filename" : "[email protected]",
93-
"scale" : "2x"
91+
"idiom" : "ipad",
92+
"scale" : "2x",
93+
"size" : "76x76"
9494
},
9595
{
9696
"idiom" : "ipad",
97-
"size" : "83.5x83.5",
98-
"scale" : "2x"
97+
"scale" : "2x",
98+
"size" : "83.5x83.5"
9999
},
100100
{
101+
"filename" : "Icon-1024.png",
101102
"idiom" : "ios-marketing",
102-
"size" : "1024x1024",
103-
"scale" : "1x"
103+
"scale" : "1x",
104+
"size" : "1024x1024"
104105
}
105106
],
106107
"info" : {
107-
"version" : 1,
108-
"author" : "xcode"
108+
"author" : "xcode",
109+
"version" : 1
109110
}
110-
}
111+
}
Loading

Example/iOS Example/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<key>CFBundleSignature</key>
3333
<string>????</string>
3434
<key>CFBundleVersion</key>
35-
<string>1.0.0</string>
35+
<string>$(CURRENT_PROJECT_VERSION)</string>
3636
<key>LSRequiresIPhoneOS</key>
3737
<true/>
3838
<key>NSAppTransportSecurity</key>

0 commit comments

Comments
 (0)