Skip to content

Consuming static library on iOS doesn't work #2811

@ivanbuhov

Description

@ivanbuhov

it seems that after removing the lib/iOS directory we fail to consume plugins containing a static libraries. According to the doc a plugin containing a static library should have the following structure:

my-plugin/
├── ...
└── platforms/
    └── ios/
        ├── MyStaticiOSLibrary.a
        └── include/
            └── MyStaticiOSLibrary/
                └── Header1.h
                └── Header2.h
                └── ...

When processing such a plugin the CLI should add the path to MyStaticiOSLibrary.a binary to the project library search paths but it doesn't happen. As a result the build fails with:

ld: library not found for -lMyStaticiOSLibrary

Environment:

CLI, tns-core-modules, ios-runtime -> 3.0.0

Steps to reproduce:

  1. Create a blank app -> tns create MyApp
  2. Create a plugin with the folder structure described above
  3. Add the plugin to the app -> tns plugin add my-plugin
  4. Run the app: tns run ios

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions