Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: expose config-plugin and add blank swift file #213

Merged
merged 3 commits into from
May 14, 2021

Conversation

cruzach
Copy link
Collaborator

@cruzach cruzach commented May 13, 2021

When I tested this library via installing by npm, I realized the app.plugin.js was not being distributed with the package 😱

Also added another plugin that will add a blank, no-op Swift file to the xcode project to avoid the "undefined symbols for architecture..." errors described here- https://github.com/stripe/stripe-react-native#troubleshooting - although it is not clear to me yet what the best solution for LIBRARY_SEARCH_PATHS is.

However, it doesn't look like you need to clear out all LIBRARY_SEARCH_PATHS. In particular, it looks like "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"" causes the problem. (I'm not sure what side effects removing that will cause, so I'm not doing that in the plugin yet)

/**
* Add a blank Swift file to the Xcode project for Swift compatibility.
*/
export const withNoopSwiftFile: ConfigPlugin = (config) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cruzach does this add the needed bridging header?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the bridging header is added by default by Expo 👍

@thorsten-stripe thorsten-stripe merged commit f7ab2d1 into master May 14, 2021
@thorsten-stripe thorsten-stripe deleted the @cruzach/pluginfixes branch May 14, 2021 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants