Using static linking in Podfile causes undefined symbol error when building
Opened this issue · 0 comments
iamluisg commented
Checklist
- The issue can be reproduced in the react-native-auth0 sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
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
- Add
use_frameworks! :linkage => :static
to a React Native project Podfile that relies on A0Auth0. - 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+