File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,9 @@ - (BOOL)followURLWithContinueUserActivity:(NSURL *)url {
175
175
FIRLogDebug (kFIRLoggerInAppMessaging , @" I-IAM240004" ,
176
176
@" App delegate responds to application:continueUserActivity:restorationHandler:."
177
177
" Simulating action url opening from a web browser." );
178
- NSUserActivity *userActivity =
179
- [[NSUserActivity alloc ] initWithActivityType: NSUserActivityTypeBrowsingWeb ];
178
+ // Use string literal to ensure compatibility with Xcode 26 and iOS 18
179
+ NSString *browsingWebType = @" NSUserActivityTypeBrowsingWeb" ;
180
+ NSUserActivity *userActivity = [[NSUserActivity alloc ] initWithActivityType: browsingWebType];
180
181
userActivity.webpageURL = url;
181
182
BOOL handled = [self .appDelegate application: self .mainApplication
182
183
continueUserActivity: userActivity
Original file line number Diff line number Diff line change @@ -84,8 +84,9 @@ - (void)testUniversalLinkHandlingReturnYES {
84
84
continueUserActivity: [OCMArg checkWithBlock: ^BOOL (id userActivity) {
85
85
// verifying the type and url field for the userActivity object
86
86
NSUserActivity *activity = (NSUserActivity *)userActivity;
87
- return [activity.activityType
88
- isEqualToString: NSUserActivityTypeBrowsingWeb ] &&
87
+ // Use string literal to ensure compatibility with Xcode 26 and iOS 18
88
+ NSString *browsingWebType = @" NSUserActivityTypeBrowsingWeb" ;
89
+ return [activity.activityType isEqualToString: browsingWebType] &&
89
90
[activity.webpageURL isEqual: url];
90
91
}]
91
92
restorationHandler: [OCMArg any ]])
Original file line number Diff line number Diff line change
1
+ # 12.1.0
2
+ - [ fixed] Fix Xcode 26 crash from missing ` NSUserActivityTypeBrowsingWeb `
3
+ symbol. Note that this fix isn't in the 12.1.0 zip and Carthage
4
+ distributions, but will be included from 12.2.0 onwards. (#15159 )
5
+
1
6
# 11.14.0
2
7
- [ fixed] Fix a potential SQL injection issue. (#14846 ).
3
8
Original file line number Diff line number Diff line change @@ -400,8 +400,9 @@ - (void)handleIncomingLinkIfNeededFromMessage:(NSDictionary *)message {
400
400
// if they haven't implemented it.
401
401
if ([NSUserActivity class ] != nil &&
402
402
[appDelegate respondsToSelector: continueUserActivitySelector]) {
403
- NSUserActivity *userActivity =
404
- [[NSUserActivity alloc ] initWithActivityType: NSUserActivityTypeBrowsingWeb ];
403
+ // Use string literal to ensure compatibility with Xcode 26 and iOS 18
404
+ NSString *browsingWebType = @" NSUserActivityTypeBrowsingWeb" ;
405
+ NSUserActivity *userActivity = [[NSUserActivity alloc ] initWithActivityType: browsingWebType];
405
406
userActivity.webpageURL = url;
406
407
[appDelegate application: application
407
408
continueUserActivity: userActivity
You can’t perform that action at this time.
0 commit comments