Since the tvOS simulator bot was updated to the tvOS 14 SDK, the build has been failing with the following: ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.0.sdk/System/Library/Frameworks/Quartz.framework/Frameworks' ld: warning: building for tvOS Simulator, but linking in .tbd built for iOS Simulator, 'TestWTFAlwaysMissing-iOS-v2' ld: warning: Could not find or use auto-linked library 'TestWTFAlwaysMissing-iOS-v2' Undefined symbols for architecture x86_64: "_TestWTFAlwaysMissing", referenced from: TestWebKitAPI::WeakLinking_WeakImport_Test::TestBody() in libTestWTF.a(WeakLinking.o) "_TestWTFAlwaysMissingWithoutAttributeWeakImport", referenced from: TestWebKitAPI::WeakLinking_WeakImport_Test::TestBody() in libTestWTF.a(WeakLinking.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) https://build.webkit.org/builders/Apple-tvOS-Simulator-14-Release-Build/builds/1/steps/compile-webkit/logs/stdio The tvOS device build seems OK.
<rdar://problem/69724742>
My bet is that we're somehow missing Tools/TestWebKitAPI/Tests/WTF/darwin/libTestWTFAlwaysMissing-iOS.tbd in the tvOS Simulator build.
Created attachment 410011 [details] Patch
Looks like the rules for platform specifiers in tbd has gotten a bit more strict, I was able to reproduce this locally and this change fixes the problem. I'm pretty much certain that watchOS needs it as well.
rs=me if EWS passes.
Created attachment 410031 [details] Patch
Committed r267757: <https://trac.webkit.org/changeset/267757> All reviewed patches have been landed. Closing bug and clearing flags on attachment 410031 [details].