WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
238010
Build broken on macOS Monterey 12.3 - PassKitSPI related error
https://bugs.webkit.org/show_bug.cgi?id=238010
Summary
Build broken on macOS Monterey 12.3 - PassKitSPI related error
Nikolas Zimmermann
Reported
2022-03-17 01:27:11 PDT
The Xcode build is broken: PushSubscriptionIdentifier.h is present twice in the Xcode project file, and the "copy phase" fails due to that.
Attachments
Patch, v1
(1.57 KB, patch)
2022-03-17 01:30 PDT
,
Nikolas Zimmermann
no flags
Details
Formatted Diff
Diff
Patch, v1
(2.33 KB, patch)
2022-03-17 03:41 PDT
,
Nikolas Zimmermann
no flags
Details
Formatted Diff
Diff
Patch, v2
(10.78 KB, patch)
2022-03-17 05:09 PDT
,
Nikolas Zimmermann
graouts
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Nikolas Zimmermann
Comment 1
2022-03-17 01:30:09 PDT
Committed
r291394
(
248524@trunk
): <
https://commits.webkit.org/248524@trunk
>
Nikolas Zimmermann
Comment 2
2022-03-17 01:30:27 PDT
Reopening to attach new patch.
Nikolas Zimmermann
Comment 3
2022-03-17 01:30:30 PDT
Created
attachment 454940
[details]
Patch, v1
Nikolas Zimmermann
Comment 4
2022-03-17 01:32:04 PDT
(In reply to Nikolas Zimmermann from
comment #2
)
> Reopening to attach new patch.
Nah, just for reference I wanted to have the patch here as well.
Radar WebKit Bug Importer
Comment 5
2022-03-17 01:32:15 PDT
<
rdar://problem/90417687
>
Nikolas Zimmermann
Comment 6
2022-03-17 02:06:36 PDT
For reference: this was a side problem due to a Xcode setting and is not the real build issue: PassKitSPI.h:309 refers to an unknown type 'PKShippingMethod' on macOS Monterey 12.3 -- upgraded yesterday and can't build WebKit since then: In file included from /Users/nzimmermann/Software/GitRepositories/WebKitVanilla/Source/WebCore/PAL/pal/cocoa/PassKitSoftLink.mm:30: /Users/nzimmermann/Software/GitRepositories/WebKitVanilla/Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h:309:42: error: unknown type name 'PKShippingMethod'; did you mean 'PKShippingMethods'? - (instancetype)initWithMethods:(NSArray<PKShippingMethod *> *)methods defaultMethod:(nullable PKShippingMethod *)defaultMethod; ^~~~~~~~~~~~~~~~ PKShippingMethods /Users/nzimmermann/Software/GitRepositories/WebKitVanilla/Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h:308:12: note: 'PKShippingMethods' declared here @interface PKShippingMethods : NSObject ^ /Users/nzimmermann/Software/GitRepositories/WebKitVanilla/Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h:309:96: error: expected a type - (instancetype)initWithMethods:(NSArray<PKShippingMethod *> *)methods defaultMethod:(nullable PKShippingMethod *)defaultMethod; ^ 2 errors generated.
Nikolas Zimmermann
Comment 7
2022-03-17 03:38:12 PDT
Hmm, if the APPLE_INTERNAL_SDK is not used, then PassKitSPI.h just includes PassKit.h on iOS and for PLATFORM(MAC) it actually contains the definitions of e.g. PKAddressField, ... and also PKShippingMethod. But PKShippingMethod interface is declared after the first usage -- that's causing the build error -- will prepare a fix.
Nikolas Zimmermann
Comment 8
2022-03-17 03:41:30 PDT
Created
attachment 454952
[details]
Patch, v1
Nikolas Zimmermann
Comment 9
2022-03-17 05:09:46 PDT
Created
attachment 454961
[details]
Patch, v2
Nikolas Zimmermann
Comment 10
2022-03-17 05:10:27 PDT
Tried to from-scratch release / debug builds -- now works flawlessly on macOS 12.3.
Nikolas Zimmermann
Comment 11
2022-03-17 06:02:57 PDT
Committed
r291403
(
248533@trunk
): <
https://commits.webkit.org/248533@trunk
>
Ryan Haddad
Comment 12
2022-03-17 10:28:43 PDT
***
Bug 237991
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug