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

[iOS] Cannot create an archive when using Pods #8534

Closed
alwx opened this issue Jul 2, 2016 · 2 comments
Closed

[iOS] Cannot create an archive when using Pods #8534

alwx opened this issue Jul 2, 2016 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@alwx
Copy link
Contributor

alwx commented Jul 2, 2016

Kinda strange problem. My Podfile contains this line:
pod 'React', :path => '../node_modules/react-native', :subspecs => ['Core', 'RCTImage', 'RCTNetwork', 'RCTText', 'RCTWebSocket']
and seems like everything works (I can easily run my application), but when I try to create an archive (to upload my application to AppStore) I see the error that my application contains duplicate symbols. Somthing like that:
ld: 227 duplicate symbols for architecture x86_64

screen shot 2016-07-02 at 14 16 28

If I remove the libraries that are in my Podfile from _Link binary with libraries_ list, I am able to create an archive, but when I run this application, I see another error: it runs but closes immediately showing something like "Native module cannot be null".

Is there something missing in the documentation? Should Pods be integrated some other way?

@alloy
Copy link
Contributor

alloy commented Jul 3, 2016

You should not add those libraries to the Link Phase in your Xcode project. The linkage should be done by the xcconfigs that CocoaPods generates for you.

I can't say much about the problem without having more information. Can you provide an example project that reproduces the problem?

@alloy
Copy link
Contributor

alloy commented Sep 14, 2016

This can probably be closed due to inactivity.

/cc @bestander @brentvatne

@ide ide closed this as completed Sep 14, 2016
@facebook facebook locked as resolved and limited conversation to collaborators Jul 19, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
react-one pushed a commit to react-one/react-native that referenced this issue Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants