Skip to content

addStaticLibrary problem #91

@aylarov

Description

@aylarov

Hi, I've been trying to use the addStaticLibrary func and had some issues with it:

  1. I'm not sure about if (this.hasFile(file.path)) return false; code, since if the lib exists the function just returns false , if I change it to if (!this.hasFile(file.path)) return false; then
  2. In addToLibrarySearchPaths function there is the following code:
    if (unquote(buildSettings['PRODUCT_NAME']) != this.productName) continue;

in case of React Native iOS project (I've added fhe file) , this.productName is always $(TARGET_NAME) and continue doesn't happen only for the test target, while happens for the main target, so library isn't added to the main target Library Search Path.

project.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions