Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include-transitive-objc-categories not working for NSURL categories #1820

Open
stuartmorgan opened this issue Dec 17, 2024 · 0 comments
Open
Labels
lang-objective_c Related to Objective C support package:ffigen

Comments

@stuartmorgan
Copy link

I was missing some NSURL methods, and found that they were in a category in NSURL.h. Based on this comment and the description of #1690 I expected them to automatically be there:

name: FoundationPathProvider
description: Bindings for NSFileManager.
language: objc
output:
  bindings: 'lib/src/ffi_bindings.dart'
headers:
  entry-points:
    - '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h'
exclude-all-by-default: true
objc-interfaces:
  include:
    - 'NSBundle'
    - 'NSFileManager'
    - 'NSURL'

They were not, however (using ffigen 16.0.0). I tried adding include-transitive-objc-categories: true explicitly, and that didn't help. But when I added

objc-categories:
  include:
    - 'NSURLPathUtilities'

they showed up. I would not expect that to be necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-objective_c Related to Objective C support package:ffigen
Projects
Status: Todo
Development

No branches or pull requests

2 participants