Bug 243728 - run time error dyld: Symbol not found: _kIOMainPortDefault
Summary: run time error dyld: Symbol not found: _kIOMainPortDefault
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: ANGLE (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-09 07:47 PDT by jaybhaskar
Modified: 2022-08-25 15:34 PDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jaybhaskar 2022-08-09 07:47:56 PDT
After building Webkit, it is giving the following error 

./Tools/Scripts/run-safari            
Starting SafariForWebKitDevelopment with DYLD_FRAMEWORK_PATH set to point to built WebKit in ~/WebKit/WebKitBuild/Release.
dyld: Symbol not found: _kIOMainPortDefault
  Referenced from: ~/WebKit/WebKitBuild/Release/libANGLE-shared.dylib (which was built for Mac OS X 12.1)
  Expected in: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
Comment 1 jaybhaskar 2022-08-09 07:49:02 PDT
mac os version 11.6.3
Comment 2 Alexey Proskuryakov 2022-08-09 16:20:47 PDT
What version of Xcode do you have? We only support building with the major version that is aligned with macOS, not any newer major version of Xcode.

This is not a great situation, but this is what we have right now.
Comment 3 jaybhaskar 2022-08-09 21:04:17 PDT
Xcode 13.2.1
Build version 13C100
Comment 4 Elliott Williams 2022-08-10 10:00:20 PDT
(In reply to jaybhaskar from comment #3)
> Xcode 13.2.1
> Build version 13C100

Right, so as Alexey is saying, you need an Xcode that includes an SDK for your version of macOS. Xcode 12.5.1 is the latest version which can target macOS 11. So your options are:

- Download and install Xcode 12.5.1
- Upgrade your system to macOS Monterey

The version table here is helpful for matching Xcode versions to SDK versions: https://en.wikipedia.org/wiki/Xcode#Xcode_11.0_-_14.x_(since_SwiftUI_framework)
Comment 5 Radar WebKit Bug Importer 2022-08-16 07:48:14 PDT
<rdar://problem/98722976>