Skip to content

Commit 8f5e7f0

Browse files
Fix an issue that apns token is not sent during app fresh install (firebase#9152)
1 parent f620744 commit 8f5e7f0

File tree

14 files changed

+745
-46
lines changed

14 files changed

+745
-46
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
use_frameworks!
2+
3+
source 'https://github.com/firebase/SpecsDev.git'
4+
source 'https://github.com/firebase/SpecsStaging.git'
5+
source 'https://cdn.cocoapods.org/'
6+
7+
target 'SwiftUISample' do
8+
platform :ios, '15.0'
9+
10+
pod 'FirebaseCore', :path => '../../../'
11+
pod 'FirebaseMessaging', :path => '../../../'
12+
pod 'FirebaseCoreDiagnostics', :path => '../../../'
13+
pod 'FirebaseInstallations', :path => '../../../'
14+
15+
end
Lines changed: 372 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,372 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 55;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
5134F860277EAEC600AEE915 /* SwiftUISampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5134F85F277EAEC600AEE915 /* SwiftUISampleApp.swift */; };
11+
5134F862277EAEC600AEE915 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5134F861277EAEC600AEE915 /* ContentView.swift */; };
12+
5134F864277EAEC900AEE915 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5134F863277EAEC900AEE915 /* Assets.xcassets */; };
13+
5134F867277EAEC900AEE915 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5134F866277EAEC900AEE915 /* Preview Assets.xcassets */; };
14+
5134F86E277EAEF800AEE915 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 5134F86D277EAEF800AEE915 /* GoogleService-Info.plist */; };
15+
/* End PBXBuildFile section */
16+
17+
/* Begin PBXFileReference section */
18+
5134F85C277EAEC600AEE915 /* SwiftUISample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftUISample.app; sourceTree = BUILT_PRODUCTS_DIR; };
19+
5134F85F277EAEC600AEE915 /* SwiftUISampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftUISampleApp.swift; sourceTree = "<group>"; };
20+
5134F861277EAEC600AEE915 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
21+
5134F863277EAEC900AEE915 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
22+
5134F866277EAEC900AEE915 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
23+
5134F86D277EAEF800AEE915 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../Shared/GoogleService-Info.plist"; sourceTree = "<group>"; };
24+
5134F86F277EAF0A00AEE915 /* SwiftUISample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SwiftUISample.entitlements; sourceTree = "<group>"; };
25+
5134F870277EAF1600AEE915 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
26+
/* End PBXFileReference section */
27+
28+
/* Begin PBXFrameworksBuildPhase section */
29+
5134F859277EAEC600AEE915 /* Frameworks */ = {
30+
isa = PBXFrameworksBuildPhase;
31+
buildActionMask = 2147483647;
32+
files = (
33+
);
34+
runOnlyForDeploymentPostprocessing = 0;
35+
};
36+
/* End PBXFrameworksBuildPhase section */
37+
38+
/* Begin PBXGroup section */
39+
5134F853277EAEC600AEE915 = {
40+
isa = PBXGroup;
41+
children = (
42+
5134F85E277EAEC600AEE915 /* SwiftUISample */,
43+
5134F85D277EAEC600AEE915 /* Products */,
44+
A18B84A7C0849ACD661DA216 /* Pods */,
45+
);
46+
sourceTree = "<group>";
47+
};
48+
5134F85D277EAEC600AEE915 /* Products */ = {
49+
isa = PBXGroup;
50+
children = (
51+
5134F85C277EAEC600AEE915 /* SwiftUISample.app */,
52+
);
53+
name = Products;
54+
sourceTree = "<group>";
55+
};
56+
5134F85E277EAEC600AEE915 /* SwiftUISample */ = {
57+
isa = PBXGroup;
58+
children = (
59+
5134F870277EAF1600AEE915 /* Info.plist */,
60+
5134F86F277EAF0A00AEE915 /* SwiftUISample.entitlements */,
61+
5134F85F277EAEC600AEE915 /* SwiftUISampleApp.swift */,
62+
5134F86D277EAEF800AEE915 /* GoogleService-Info.plist */,
63+
5134F861277EAEC600AEE915 /* ContentView.swift */,
64+
5134F863277EAEC900AEE915 /* Assets.xcassets */,
65+
5134F865277EAEC900AEE915 /* Preview Content */,
66+
);
67+
path = SwiftUISample;
68+
sourceTree = "<group>";
69+
};
70+
5134F865277EAEC900AEE915 /* Preview Content */ = {
71+
isa = PBXGroup;
72+
children = (
73+
5134F866277EAEC900AEE915 /* Preview Assets.xcassets */,
74+
);
75+
path = "Preview Content";
76+
sourceTree = "<group>";
77+
};
78+
A18B84A7C0849ACD661DA216 /* Pods */ = {
79+
isa = PBXGroup;
80+
children = (
81+
);
82+
path = Pods;
83+
sourceTree = "<group>";
84+
};
85+
/* End PBXGroup section */
86+
87+
/* Begin PBXNativeTarget section */
88+
5134F85B277EAEC600AEE915 /* SwiftUISample */ = {
89+
isa = PBXNativeTarget;
90+
buildConfigurationList = 5134F86A277EAEC900AEE915 /* Build configuration list for PBXNativeTarget "SwiftUISample" */;
91+
buildPhases = (
92+
5134F858277EAEC600AEE915 /* Sources */,
93+
5134F859277EAEC600AEE915 /* Frameworks */,
94+
5134F85A277EAEC600AEE915 /* Resources */,
95+
);
96+
buildRules = (
97+
);
98+
dependencies = (
99+
);
100+
name = SwiftUISample;
101+
productName = SwiftUISample;
102+
productReference = 5134F85C277EAEC600AEE915 /* SwiftUISample.app */;
103+
productType = "com.apple.product-type.application";
104+
};
105+
/* End PBXNativeTarget section */
106+
107+
/* Begin PBXProject section */
108+
5134F854277EAEC600AEE915 /* Project object */ = {
109+
isa = PBXProject;
110+
attributes = {
111+
BuildIndependentTargetsInParallel = 1;
112+
LastSwiftUpdateCheck = 1300;
113+
LastUpgradeCheck = 1300;
114+
TargetAttributes = {
115+
5134F85B277EAEC600AEE915 = {
116+
CreatedOnToolsVersion = 13.0;
117+
};
118+
};
119+
};
120+
buildConfigurationList = 5134F857277EAEC600AEE915 /* Build configuration list for PBXProject "SwiftUISample" */;
121+
compatibilityVersion = "Xcode 13.0";
122+
developmentRegion = en;
123+
hasScannedForEncodings = 0;
124+
knownRegions = (
125+
en,
126+
Base,
127+
);
128+
mainGroup = 5134F853277EAEC600AEE915;
129+
productRefGroup = 5134F85D277EAEC600AEE915 /* Products */;
130+
projectDirPath = "";
131+
projectRoot = "";
132+
targets = (
133+
5134F85B277EAEC600AEE915 /* SwiftUISample */,
134+
);
135+
};
136+
/* End PBXProject section */
137+
138+
/* Begin PBXResourcesBuildPhase section */
139+
5134F85A277EAEC600AEE915 /* Resources */ = {
140+
isa = PBXResourcesBuildPhase;
141+
buildActionMask = 2147483647;
142+
files = (
143+
5134F867277EAEC900AEE915 /* Preview Assets.xcassets in Resources */,
144+
5134F864277EAEC900AEE915 /* Assets.xcassets in Resources */,
145+
5134F86E277EAEF800AEE915 /* GoogleService-Info.plist in Resources */,
146+
);
147+
runOnlyForDeploymentPostprocessing = 0;
148+
};
149+
/* End PBXResourcesBuildPhase section */
150+
151+
/* Begin PBXSourcesBuildPhase section */
152+
5134F858277EAEC600AEE915 /* Sources */ = {
153+
isa = PBXSourcesBuildPhase;
154+
buildActionMask = 2147483647;
155+
files = (
156+
5134F862277EAEC600AEE915 /* ContentView.swift in Sources */,
157+
5134F860277EAEC600AEE915 /* SwiftUISampleApp.swift in Sources */,
158+
);
159+
runOnlyForDeploymentPostprocessing = 0;
160+
};
161+
/* End PBXSourcesBuildPhase section */
162+
163+
/* Begin XCBuildConfiguration section */
164+
5134F868277EAEC900AEE915 /* Debug */ = {
165+
isa = XCBuildConfiguration;
166+
buildSettings = {
167+
ALWAYS_SEARCH_USER_PATHS = NO;
168+
CLANG_ANALYZER_NONNULL = YES;
169+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
170+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
171+
CLANG_CXX_LIBRARY = "libc++";
172+
CLANG_ENABLE_MODULES = YES;
173+
CLANG_ENABLE_OBJC_ARC = YES;
174+
CLANG_ENABLE_OBJC_WEAK = YES;
175+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
176+
CLANG_WARN_BOOL_CONVERSION = YES;
177+
CLANG_WARN_COMMA = YES;
178+
CLANG_WARN_CONSTANT_CONVERSION = YES;
179+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
180+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
181+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
182+
CLANG_WARN_EMPTY_BODY = YES;
183+
CLANG_WARN_ENUM_CONVERSION = YES;
184+
CLANG_WARN_INFINITE_RECURSION = YES;
185+
CLANG_WARN_INT_CONVERSION = YES;
186+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
187+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
188+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
189+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
190+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
191+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
192+
CLANG_WARN_STRICT_PROTOTYPES = YES;
193+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
194+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
195+
CLANG_WARN_UNREACHABLE_CODE = YES;
196+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
197+
COPY_PHASE_STRIP = NO;
198+
DEBUG_INFORMATION_FORMAT = dwarf;
199+
ENABLE_STRICT_OBJC_MSGSEND = YES;
200+
ENABLE_TESTABILITY = YES;
201+
GCC_C_LANGUAGE_STANDARD = gnu11;
202+
GCC_DYNAMIC_NO_PIC = NO;
203+
GCC_NO_COMMON_BLOCKS = YES;
204+
GCC_OPTIMIZATION_LEVEL = 0;
205+
GCC_PREPROCESSOR_DEFINITIONS = (
206+
"DEBUG=1",
207+
"$(inherited)",
208+
);
209+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
210+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
211+
GCC_WARN_UNDECLARED_SELECTOR = YES;
212+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
213+
GCC_WARN_UNUSED_FUNCTION = YES;
214+
GCC_WARN_UNUSED_VARIABLE = YES;
215+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
216+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
217+
MTL_FAST_MATH = YES;
218+
ONLY_ACTIVE_ARCH = YES;
219+
SDKROOT = iphoneos;
220+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
221+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
222+
};
223+
name = Debug;
224+
};
225+
5134F869277EAEC900AEE915 /* Release */ = {
226+
isa = XCBuildConfiguration;
227+
buildSettings = {
228+
ALWAYS_SEARCH_USER_PATHS = NO;
229+
CLANG_ANALYZER_NONNULL = YES;
230+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
231+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
232+
CLANG_CXX_LIBRARY = "libc++";
233+
CLANG_ENABLE_MODULES = YES;
234+
CLANG_ENABLE_OBJC_ARC = YES;
235+
CLANG_ENABLE_OBJC_WEAK = YES;
236+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
237+
CLANG_WARN_BOOL_CONVERSION = YES;
238+
CLANG_WARN_COMMA = YES;
239+
CLANG_WARN_CONSTANT_CONVERSION = YES;
240+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
241+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
242+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
243+
CLANG_WARN_EMPTY_BODY = YES;
244+
CLANG_WARN_ENUM_CONVERSION = YES;
245+
CLANG_WARN_INFINITE_RECURSION = YES;
246+
CLANG_WARN_INT_CONVERSION = YES;
247+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
248+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
249+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
250+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
251+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
252+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
253+
CLANG_WARN_STRICT_PROTOTYPES = YES;
254+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
255+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
256+
CLANG_WARN_UNREACHABLE_CODE = YES;
257+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
258+
COPY_PHASE_STRIP = NO;
259+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
260+
ENABLE_NS_ASSERTIONS = NO;
261+
ENABLE_STRICT_OBJC_MSGSEND = YES;
262+
GCC_C_LANGUAGE_STANDARD = gnu11;
263+
GCC_NO_COMMON_BLOCKS = YES;
264+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
265+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
266+
GCC_WARN_UNDECLARED_SELECTOR = YES;
267+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
268+
GCC_WARN_UNUSED_FUNCTION = YES;
269+
GCC_WARN_UNUSED_VARIABLE = YES;
270+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
271+
MTL_ENABLE_DEBUG_INFO = NO;
272+
MTL_FAST_MATH = YES;
273+
SDKROOT = iphoneos;
274+
SWIFT_COMPILATION_MODE = wholemodule;
275+
SWIFT_OPTIMIZATION_LEVEL = "-O";
276+
VALIDATE_PRODUCT = YES;
277+
};
278+
name = Release;
279+
};
280+
5134F86B277EAEC900AEE915 /* Debug */ = {
281+
isa = XCBuildConfiguration;
282+
buildSettings = {
283+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
284+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
285+
CODE_SIGN_ENTITLEMENTS = SwiftUISample/SwiftUISample.entitlements;
286+
CODE_SIGN_IDENTITY = "Apple Development";
287+
CODE_SIGN_STYLE = Manual;
288+
CURRENT_PROJECT_VERSION = 1;
289+
DEVELOPMENT_ASSET_PATHS = "\"SwiftUISample/Preview Content\"";
290+
DEVELOPMENT_TEAM = "";
291+
ENABLE_PREVIEWS = YES;
292+
GENERATE_INFOPLIST_FILE = YES;
293+
INFOPLIST_FILE = SwiftUISample/Info.plist;
294+
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
295+
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
296+
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
297+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
298+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
299+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
300+
LD_RUNPATH_SEARCH_PATHS = (
301+
"$(inherited)",
302+
"@executable_path/Frameworks",
303+
);
304+
MARKETING_VERSION = 1.0;
305+
PRODUCT_BUNDLE_IDENTIFIER = com.google.firebase.extensions.dev;
306+
PRODUCT_NAME = "$(TARGET_NAME)";
307+
PROVISIONING_PROFILE_SPECIFIER = "";
308+
SWIFT_EMIT_LOC_STRINGS = YES;
309+
SWIFT_VERSION = 5.0;
310+
TARGETED_DEVICE_FAMILY = "1,2";
311+
};
312+
name = Debug;
313+
};
314+
5134F86C277EAEC900AEE915 /* Release */ = {
315+
isa = XCBuildConfiguration;
316+
buildSettings = {
317+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
318+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
319+
CODE_SIGN_ENTITLEMENTS = SwiftUISample/SwiftUISample.entitlements;
320+
CODE_SIGN_IDENTITY = "Apple Development";
321+
CODE_SIGN_STYLE = Manual;
322+
CURRENT_PROJECT_VERSION = 1;
323+
DEVELOPMENT_ASSET_PATHS = "\"SwiftUISample/Preview Content\"";
324+
DEVELOPMENT_TEAM = "";
325+
ENABLE_PREVIEWS = YES;
326+
GENERATE_INFOPLIST_FILE = YES;
327+
INFOPLIST_FILE = SwiftUISample/Info.plist;
328+
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
329+
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
330+
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
331+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
332+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
333+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
334+
LD_RUNPATH_SEARCH_PATHS = (
335+
"$(inherited)",
336+
"@executable_path/Frameworks",
337+
);
338+
MARKETING_VERSION = 1.0;
339+
PRODUCT_BUNDLE_IDENTIFIER = com.google.firebase.extensions.dev;
340+
PRODUCT_NAME = "$(TARGET_NAME)";
341+
PROVISIONING_PROFILE_SPECIFIER = "";
342+
SWIFT_EMIT_LOC_STRINGS = YES;
343+
SWIFT_VERSION = 5.0;
344+
TARGETED_DEVICE_FAMILY = "1,2";
345+
};
346+
name = Release;
347+
};
348+
/* End XCBuildConfiguration section */
349+
350+
/* Begin XCConfigurationList section */
351+
5134F857277EAEC600AEE915 /* Build configuration list for PBXProject "SwiftUISample" */ = {
352+
isa = XCConfigurationList;
353+
buildConfigurations = (
354+
5134F868277EAEC900AEE915 /* Debug */,
355+
5134F869277EAEC900AEE915 /* Release */,
356+
);
357+
defaultConfigurationIsVisible = 0;
358+
defaultConfigurationName = Release;
359+
};
360+
5134F86A277EAEC900AEE915 /* Build configuration list for PBXNativeTarget "SwiftUISample" */ = {
361+
isa = XCConfigurationList;
362+
buildConfigurations = (
363+
5134F86B277EAEC900AEE915 /* Debug */,
364+
5134F86C277EAEC900AEE915 /* Release */,
365+
);
366+
defaultConfigurationIsVisible = 0;
367+
defaultConfigurationName = Release;
368+
};
369+
/* End XCConfigurationList section */
370+
};
371+
rootObject = 5134F854277EAEC600AEE915 /* Project object */;
372+
}

0 commit comments

Comments
 (0)