Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track of macOS 14.4 + Xcode 15.2 build issue #27

Open
Kyle-Ye opened this issue Mar 12, 2024 · 0 comments
Open

Track of macOS 14.4 + Xcode 15.2 build issue #27

Kyle-Ye opened this issue Mar 12, 2024 · 0 comments

Comments

@Kyle-Ye
Copy link

Kyle-Ye commented Mar 12, 2024

  1. We need the following patch to make it compile on the latest Xcode.
// objc-os.h
+ #include <utility>
  1. Once we run objc-inspect, we'll get a crash on _objc_init -> _dyld_objc_notify_register.
img_v3_028t_e7d94619-93c1-4999-9abe-fd651232166g

The abort message is "_dyld_objc_notify_register is unsupported"

Checking the latest dyld's source code, the API is still there and suggesting we move to use "_dyld_objc_register_callbacks".

https://github.com/apple-oss-distributions/dyld/blob/d1a0f6869ece370913a3f749617e457f3b4cd7c4/dyld/DyldAPIs.cpp#L876-L877
// FIXME: Remove this once libobjc moves to _dyld_objc_register_callbacks()

The latest SDK's dyld has changed it and make it abort here.

Checking the latest objc code, they did change to use _dyld_objc_register_callbacks here.

https://github.com/apple-oss-distributions/objc4/blob/196363c165b175ed925ef6b9b99f558717923c47/runtime/objc-os.mm#L934

So the final answer is we need to update the objc source to debug it on the latest OS due to the API change in dylb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant