lgcooci / kcobjc4_debug Goto Github PK
View Code? Open in Web Editor NEW🌈可编译苹果官方源码objc!现在有objc4底层源码,以及libmalloc等可编译版本,大家可以自由LLDB调试!
License: MIT License
🌈可编译苹果官方源码objc!现在有objc4底层源码,以及libmalloc等可编译版本,大家可以自由LLDB调试!
License: MIT License
Assertion failed: (sel_registerName(sel_getName(meth.name())) == meth.name()), function methodizeClass, file objc-runtime-new.mm, line 1536.
warning: could not find Objective-C class data in the process. This may reduce the quality of type information available.
(lldb)
新建 target 需要 关闭 hardened runtime才可以调试 对比你可以调试的配置, 发现了这个解决方案
M1 11.2.1 (20D74) Xcode 12.4 (12D4e). 源码可以断点,但是main函数什么的不能断点。
macOS Ventura 13.3.1 (22E261)
Xcode 14.3 (14E222b)
13-inch, M1, 2020
xcode 11.7、系统macOS Big Sur 11.01运行781那个项目报错:
dyld: Symbol not found: _sel_hash
Referenced from: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Expected in: /Users/zhongguangzhou/Library/Developer/Xcode/DerivedData/objc-dcyrbcipeblzjtdkwzjqupppofta/Build/Products/Debug/libobjc.A.dylib
in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
是最新系统的问题吗?
objc4_debug-master/objc4-781/runtime/objc-runtime-new.h:290:5: error: static_assert failed due to requirement 'bucketsMask >= ((unsigned long long)140737454800896ULL)' "Bucket field doesn't have enough bits for arbitrary pointers."
static_assert(bucketsMask >= MACH_VM_MAX_ADDRESS, "Bucket field doesn't have enough bits for arbitrary pointers.");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings and 1 error generated.
Xcode 12.2
MacOS 11..0.1
objc4-781 编译失败
First thank you for providing this debug version of objc runtime.
OS version: Monterey 12.5.1
MacBook Pro (Retina, 13-inch, Early 2015)
Processor 2.7 GHz Dual-Core Intel Core i5
Xcode Version 14.0.1 (14A400)
Build error is Unexpected character <U+1F92F>
, which is the 🤯 symbol, as below pictures shows.
I tried to replace that symbol with some random integer, but it will cause dyld throw exception at runtime.
Any help is appreciated.
能否讲解一下支持iOS/Mac的objc配置内容
我看是支持了m1,但是在m1 电脑上面依然还是会奔溃哦
比如说我想暴露objc-runtime-new.h,我在objc这个target里把这个头文件拖拽到public的区域。编译不能通过,提示找不到"PointerUnion.h"头文件
运行的是objc4-781工程,报错
mac系统是11.0.1
xcode是12.1
大佬能帮忙分析下是啥问题吗?下面是报错的信息,感谢!
dyld: Symbol not found: _sel_hash Referenced from: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation Expected in: /Users/xxx/Build/Products/Debug/libobjc.A.dylib in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
objc4-818.2 在MaxOS 12.2.1 运行奔溃:
Assertion failed: (sel_registerName(sel_getName(meth.name())) == meth.name()), function methodizeClass, file objc-runtime-new.mm, line 1536.
请问博主如何解决?
你好,感谢提供这么方便的调试工具。
请问下 Xcode 15.0,MacOS 14.0,Mac Studio iOS甄姬无法编译怎么处理?提示
Ad Hoc code signing is not allowed with SDK 'iOS 17.0',
Mac 也crash在这里
void method_list_t::setFixedUp() {
lockdebug::assert_locked(&runtimeLock);
ASSERT(!isFixedUp());
entsizeAndFlags = entsizeAndFlags| fixed_up_method_list;
}
kernel_version : Darwin Kernel Version 20.1.0: Fri Oct 30 00:34:15 PDT 2020; root:xnu-7195.42.3~1/RELEASE_ARM64_T8010
process_name : BaiduBoxApp
process_id : 3421
parent_process_id : 1
Exception Codes: #0 at 0x00000001d94cc1f0
Exception Type: SIGABRT
ExtraInfo:{}
Code Type: arm64
OS Version: iPhone OS 14.2 (18B92)
Hardware Model: iPhone9,1
Launch Time: 2021-02-28 23:46:41
Date/Time: 2021-02-28 23:47:10
Thread 0 Crashed:
0 libsystem_kernel.dylib ___abort_with_payload (in libsystem_kernel.dylib) 8
1 libsystem_kernel.dylib _abort_with_payload_wrapper_internal (in libsystem_kernel.dylib) 0
2 libobjc.A.dylib _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) (in libobjc.A.dylib) 104
3 libobjc.A.dylib _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) (in libobjc.A.dylib) 0
4 libobjc.A.dylib _weak_clear_no_lock (in libobjc.A.dylib) 0
5 libobjc.A.dylib _objc_storeWeak (in libobjc.A.dylib) 348
6 WebKit -[WKScriptMessage _initWithBody:webView:frameInfo:name:world:] (in WebKit) 136
7 WebKit ScriptMessageHandlerDelegate::didPostMessage(WebKit::WebPageProxy&, WebKit::FrameInfoData&&, API::ContentWorld&, WebCore::SerializedScriptValue&) (in WebKit) 204
8 WebKit WebKit::WebUserContentControllerProxy::didPostMessage(WTF::ObjectIdentifierWebKit::WebPageProxyIdentifierType, WebKit::FrameInfoData&&, unsigned long long, IPC::DataReference const&, WTF::CompletionHandler<void (IPC::DataReference const&, WTF::String const&)>&&) (in WebKit) 532
9 WebKit void IPC::handleMessageAsync<Messages::WebUserContentControllerProxy::DidPostMessage, WebKit::WebUserContentControllerProxy, void (WebKit::WebUserContentControllerProxy::)(WTF::ObjectIdentifierWebKit::WebPageProxyIdentifierType, WebKit::FrameInfoData&&, unsigned long long, IPC::DataReference const&, WTF::CompletionHandler<void (IPC::DataReference const&, WTF::String const&)>&&)>(IPC::Connection&, IPC::Decoder&, WebKit::WebUserContentControllerProxy, void (WebKit::WebUserContentControllerProxy::)(WTF::ObjectIdentifierWebKit::WebPageProxyIdentifierType, WebKit::FrameInfoData&&, unsigned long long, IPC::DataReference const&, WTF::CompletionHandler<void (IPC::DataReference const&, WTF::String const&)>&&)) (in WebKit) 3232
10 WebKit WebKit::WebUserContentControllerProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) (in WebKit) 76
11 WebKit IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) (in WebKit) 116
12 WebKit WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) (in WebKit) 36
13 WebKit IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_deleteIPC::Decoder >) (in WebKit) 596
14 WebKit IPC::Connection::dispatchIncomingMessages() (in WebKit) 492
15 JavaScriptCore WTF::RunLoop::performWork() (in JavaScriptCore) 528
16 JavaScriptCore WTF::RunLoop::performWork(void) (in JavaScriptCore) 32
17 CoreFoundation _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION (in CoreFoundation) 24
18 CoreFoundation ___CFRunLoopDoSource0 (in CoreFoundation) 204
19 CoreFoundation ___CFRunLoopDoSources0 (in CoreFoundation) 256
20 CoreFoundation ___CFRunLoopRun (in CoreFoundation) 776
21 CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation) 572
22 GraphicsServices _GSEventRunModal (in GraphicsServices) 160
23 UIKitCore -[UIApplication _run] (in UIKitCore) 1052
24 UIKitCore _UIApplicationMain (in UIKitCore) 164
25 BaiduBoxApp main (in BaiduBoxApp) (main.m:28) 24
26 libdyld.dylib _start (in libdyld.dylib) 4
编译运行的时候找不到这个文件咋办
KCObjcBuild[80175:963663] Hello, World! KCObjcBuild was compiled with optimization - stepping may behave oddly; variables may not be available.
目前无法正确的使用断点,感觉整个是乱的,查过相关配置,是debug模式,并且优化等级为None
Mac 系统 12.0.1 Xcode版本13.2.1
盼望作者早日同步,解决 macOS 12
上无法运行的问题
同样希望博主能加上 CoreFoundation、libdispatch,拜托:
https://github.com/apple/swift-corelibs-foundation (可编译成功)
https://github.com/apple/swift-corelibs-libdispatch (不可编译成功)
Assertion failed: (sel_registerName(sel_getName(meth.name())) == meth.name()), function methodizeClass, file /Users/mu/Desktop/KCCbjc4_debug-master/objc4-818.2/runtime/objc-runtime-new.mm, line 1536.
KCObjcBuild[80175:963663] Hello, World! KCObjcBuild was compiled with optimization - stepping may behave oddly; variables may not be available.
目前无法正确的使用断点,感觉整个是乱的,查过相关配置,是debug模式,并且优化等级为None
在llvm-MathExtras.h文件中出现错误, 不知道什么原因:
Unknown type name 'uint32_t'
Unknown type name 'uint64_t'
dyld: Symbol not found: _sel_hash
Referenced from: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Expected in: /Users/xiuxin/Library/Developer/Xcode/DerivedData/objc-bwlfwhghsmulfudmcqtfprllhkut/Build/Products/Debug/libobjc.A.dylib
in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
有人碰到过这个错误吗
objc4-779.1 , KCObjcTest 中的main.m打断点无效 ,断点被忽略
报错如下:
/objc4_debug/libmalloc/libmalloc-283.100.6可编译/src/vm.c:276:4: Implicit declaration of function 'kdebug_trace' is invalid in C99
老师你好,我这边用750的源码按照网上的教程编译,build没问题,但是运行的时候就会爆栈,请问是什么问题。。。。
http://syxsyxsyx.gitee.io/syx_picture/github/runtime-error/runtime-error.jpg
It doesn't work in MacOS Big Sur
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.