Skip to content

Error when calling function with BOOL result on iOS #147

@shkatulo

Description

@shkatulo

There are bugs in PluginUtilsIOS::callOCBoolFunctionWithName_oneParam and PluginUtilsIOS::callOCBoolFunctionWithName functions.

Instead of:

BOOL* pRet = (BOOL*)callRetFunction...(...);
if (nil != pRet) {
ret = pRet;
}

There should be:

NSNumber* pRet = (NSNumber*)callRetFunction...(...);
if (nil != pRet) {
ret = [pRet boolValue];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions