Giter VIP home page Giter VIP logo

objc-runtime's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

objc-runtime's Issues

How to set debug point

When I run debug-objc binary e.g. id obj = [[NSObject alloc] init];

the debug point +alloc is not triggering in NSObject.mm
Mac version:10.14.6 Xcode: Version 11.3.1

Do you know why and how I can fix it? Thanks.

在最新的Xcode Version 12.4 (12D4e) 及系统 macOS 11.2.3 上报错 dyld: Symbol not found: _sel_hash

麻烦博主更新到最新的 objc4-818.2 版本吧,麻烦了,谢谢了~


dyld: Symbol not found: _sel_hash
Referenced from: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Expected in: /Users/yumu/Library/Developer/Xcode/DerivedData/objc-eqtajswswqnllsdtitmgkdoikmzo/Build/Products/Debug/libobjc.A.dylib
in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
(lldb)

class_copyIvarList中为什么malloc要使用count+1

if ((ivars = cls->data()->ro->ivars) && ivars->count) {
result = (Ivar *)malloc((ivars->count+1) * sizeof(Ivar));

    for (auto& ivar : *ivars) {
        if (!ivar.offset) continue;  // anonymous bitfield
        result[count++] = &ivar;
    }
    result[count] = nil;
}

这里为什么要使用ivars->count+1,以及后面的result[count] = nil;呢?
直接使用ivars->count不行吗?

Request for MacOS Big Sur support

I am new here and can not build the project on MacOS Big Sur 11.0.1, Xcode 12.1.

Can anyone give some help or hint on the issue?

Thank you very much.

Undefined symbol: _objc_opt_class

macosOS Catalina 10.15 (19a582a)版本 objc-My Mac 编译,想得到libobjc.A.dylib 文件
Undefined symbol: _objc_opt_class
请问这个大概什么地方出问题了?

run debug-objc error

System: 10.14
Xcode version: 10.0

log:

dyld: Symbol not found: _objc_debug_taggedpointer_obfuscator
  Referenced from: /usr/lib/system/libxpc.dylib
  Expected in: /Users/Broccoli/Library/Developer/Xcode/DerivedData/objc-ggxyshopfnvlkucfncktchujxfnx/Build/Products/Debug/libobjc.A.dylib
 in /usr/lib/system/libxpc.dylib

demo crash

i download you project and run it,my scheme is debug-objc,and in My Mac,it crashed。the log is dyld: Symbol not found: __object_getExternalHash
Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Expected in: /Users/chenpeng/Library/Developer/Xcode/DerivedData/objc-exdgpjmktzxpjsfjdmdwwchlrjuq/Build/Products/Debug/libobjc.A.dylib
in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 。
i find answear in website.almot said import library in Build Phases->Link Binary with Libraries,and changed the library in Optional Status。i tried,however the crash is still exist.

Symbol not found: _sel_hash

dyld: Symbol not found: _sel_hash
Referenced from: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Expected in: /Users/kv/Library/Developer/Xcode/DerivedData/objc-dhysxkizblskplbiwqtviqdmfcvm/Build/Products/Debug/libobjc.A.dylib
in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

how to fix it

Supplement my question

Supplement my previous question,when the demo run in 0x7fff5fc01075 <+1>: not,it shows Thread1:EXC_BREAKPOINT(code=EXC_I386_BPT,subcode=0x0)。however i didn't set any breakpoint,then i clicked continue program execution, in 0x7fff5fc011ec <+374>: cmpq $0x0, (%rbx),it shows Thread1:EXC_BAD_ACCESS(code=1,address=0x10).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.