Skip to content

Using static linking in Podfile causes undefined symbol error when building #986

@iamluisg

Description

@iamluisg

Checklist

Description

As part of a project I am working on, it is necessary for me to use use_frameworks! :linkage => :static in the Podfile in order to create static frameworks and link to them.
But when I added this use_frameworks! :linkage => :static to the Podfile and attempted to build, I am getting the following linking error:

ld: Undefined symbols: _OBJC_CLASS_$__TtC7A0Auth024CredentialsManagerBridge, referenced from: in A0Auth0[3](A0Auth0.o)

Reproduction

  1. Add use_frameworks! :linkage => :static to a React Native project Podfile that relies on A0Auth0.
  2. Attempt to build the project and linking error occurs

Additional context

No response

react-native-auth0 version

A0Auth0 (2.17.4)

React Native version

0.67.5

Expo version

No response

Platform

iOS

Platform version(s)

15+

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions