Bug 224605

Summary: MacCatalyst build appears inconsistent: ld: warning: building for Mac Catalyst, but linking in .tbd file (..../System/Library/Frameworks/Cocoa.framework/Cocoa.tbd) built for macOS
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, jbedard, thorton
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 224603, 224602, 224606    

Description Kimmo Kinnunen 2021-04-15 05:40:21 PDT
ld: warning: building for Mac Catalyst, but linking in .tbd file (..../System/Library/Frameworks/Cocoa.framework/Cocoa.tbd) built for macOS

It appears as if the MacCatalyst build is inconsistent, making it hard to understand, for example, why a symbol is missing or why tests assert on NSApplication missing.
Comment 1 Alexey Proskuryakov 2021-04-15 15:13:54 PDT
What project does this?

There is no macCatalyst version of Cocoa.framework, and I think that Catalyst targets must not be linking it at all.
Comment 2 Kimmo Kinnunen 2021-04-18 22:53:54 PDT
TestWebKitAPI if I understand the output correctly
Comment 3 Tim Horton 2021-04-20 15:17:13 PDT
FWIW, this is actually TestWTF; TestWebKitAPI.xcconfig does the right thing (does not link Cocoa in macCatalyst builds), but TestWTF seems to have not gotten the same adjustment.
Comment 4 Tim Horton 2021-04-20 15:39:49 PDT
There's a fix for this in 224606

*** This bug has been marked as a duplicate of bug 224606 ***