Skip to content

NSArray is not recognized in the generated file #1268

Closed
@HosamHasanRamadan

Description

@HosamHasanRamadan

Issue:
one of NSTimeZone.h functions returns NSObject instead of NSArray in the generted code.
@property (class, readonly, copy) NSArray<NSString *> *knownTimeZoneNames;

Actual:
static objc.NSObject getKnownTimeZoneNames() {}
Expected:
static objc.NSArray getKnownTimeZoneNames() {}

ffigen config file
name: NSTimeZone
description: NSTimeZone bindings
language: objc
output: "lib/timezone_bindings.dart"
exclude-all-by-default: true
objc-interfaces:
  include:
    - NSTimeZone
headers:
  entry-points:
    - "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTimeZone.h"

NSTimeZone.h:
https://pastebin.com/raw/rPNs3mTH

Generated dart file:
https://pastebin.com/raw/KFqpTjd6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions