Giter Site home page Giter Site logo

这个是什么错误? about jspatch HOT 3 CLOSED

simman avatar simman commented on May 28, 2024
这个是什么错误?

from jspatch.

Comments (3)

bang590 avatar bang590 commented on May 28, 2024

用的是哪个版本的 JSPatch ? 可以把 JPEngine.m:441 这一行贴出来

from jspatch.

simman avatar simman commented on May 28, 2024

应该是最新的,我是昨天clone的。

JPEngine.m:432-442

            case '@': {
                __unsafe_unretained id arg;
                [invocation getArgument:&arg atIndex:i];
                static const char *blockType = @encode(typeof(^{}));
                if (!strcmp(argumentType, blockType)) {
                    [argList addObject:(arg ? [arg copy]: _nilObj)];
                } else {
                    [argList addObject:(arg ? arg: _nilObj)];
                }
                break;
            }

工程文件:https://www.dropbox.com/s/r1h7rnw05nb04y7/TestJsPatch.zip?dl=0

from jspatch.

bang590 avatar bang590 commented on May 28, 2024

Protocols that are declared but not used (except for type checking as described below) aren’t represented by protocol objects at runtime.

没有用过的 protocol 在 runtime 里是取不到的,项目里 LCActionSheetDelegate 这个 protocol 在 OC 上没用过,在 JS 里取不到它的信息,导致 actionSheet_didClickedButtonAtIndex() 这个方法类型不正确 crash。

from jspatch.

Related Issues (20)

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.