Native plugins in custom packages

Is it possible to add a native plugin to a custom package? I’m developing a custom package and would like to add an iOS specific plugin. This plugin works fine if I put the files in the Assets, but Xcode won’t recognize it if I put it inside my package. The structure of my package is somewhat as follows:

  • MyPackage
    – Editor
    – Runtime
    ---- MyPackage.asmdf
    ---- PluginCaller.cs
    – Plugins
    ---- iOS
    -------- MyPlugin
    ---------------- MyPluginDef.m
    ---------------- MyPluginDef.h

I take one random package (GitHub) from the mobile category of OpenUPM. Could you try it?

I didn’t see much differences there, except the one without a subfolder of iOS.

It should be possible, we even have internal packages where we use this functionality, so double check if those native files are marked as compatible with iOS platform