question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Naming collision when React Cocoapod is added

See original GitHub issue

I’m currently having an issue where the same file is being added two times to the project (Xcode).

The issue is with the polyfills.js file but it is adding React again. All the files added are already in the project added by npm.

β‹Š> ~/D/P/QueueProject on master β¨― react-native start                              21:25:13
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚  Running packager on port 8081.                                            β”‚
 β”‚                                                                            β”‚
 β”‚  Keep this packager running while developing on any JS projects. Feel      β”‚
 β”‚  free to close this tab and run your own packager instance if you          β”‚
 β”‚  prefer.                                                                   β”‚
 β”‚                                                                            β”‚
 β”‚  https://github.com/facebook/react-native                                  β”‚
 β”‚                                                                            β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Looking for JS files in
   /Users/joanbarros/Development/Projects/QueueProject

[10:21:11 PM] <START> Building Dependency Graph
[10:21:11 PM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot

React packager ready.

[10:21:12 PM] <END>   Crawling File System (1152ms)
[10:21:12 PM] <START> Building in-memory fs for JavaScript
[10:21:12 PM] <END>   Building in-memory fs for JavaScript (640ms)
[10:21:12 PM] <START> Building in-memory fs for Assets
[10:21:13 PM] <END>   Building in-memory fs for Assets (365ms)
[10:21:13 PM] <START> Building Haste Map
[10:21:13 PM] <START> Building (deprecated) Asset Map
[10:21:13 PM] <END>   Building (deprecated) Asset Map (68ms)
Failed to build DependencyGraph: Naming collision detected: /Users/joanbarros/Development/Projects/QueueProject/ios/Pods/React/packager/react-packager/src/DependencyResolver/polyfills/polyfills.js collides with /Users/joanbarros/Development/Projects/QueueProject/node_modules/react-native/packager/react-packager/src/Resolver/polyfills/polyfills.js
Error: Naming collision detected: /Users/joanbarros/Development/Projects/QueueProject/ios/Pods/React/packager/react-packager/src/DependencyResolver/polyfills/polyfills.js collides with /Users/joanbarros/Development/Projects/QueueProject/node_modules/react-native/packager/react-packager/src/Resolver/polyfills/polyfills.js
    at HasteMap._updateHasteMap (HasteMap.js:132:13)
    at HasteMap.js:103:28
    at tryCallOne (/Users/joanbarros/Development/Projects/QueueProject/node_modules/promise/lib/core.js:37:12)
    at /Users/joanbarros/Development/Projects/QueueProject/node_modules/promise/lib/core.js:123:15
    at flush (/Users/joanbarros/Development/Projects/QueueProject/node_modules/asap/raw.js:50:29)
    at _combinedTickCallback (node.js:370:9)
    at process._tickCallback (node.js:401:11)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

1reaction
machourcommented, Feb 14, 2018

@johncblandii we had a similar issue on gitpoint and ended up coming up with this solution: https://github.com/gitpoint/git-point/blob/master/rn-cli.config.js

0reactions
machourcommented, Feb 22, 2018

Closing this as no feedback was provided.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Naming collision detected - react native - Stack Overflow
My CocoaPods version is 0.39.Node version is 5.3.0.React Native version is 0.14.2. When I deleted react-native folder,It's works.
Read more >
Podspec Syntax Reference v1.11.2 - CocoaPods Guides
A specification describes a version of Pod library. It includes details about where the source should be fetched from, what files to use,...
Read more >
Managing Private Pods With CocoaPods - Code - Envato Tuts+
It's key that you use the same name you previously used to add the private specs repository to CocoaPods. The last argument is...
Read more >
Deploying React Native to Bitrise, Fabric, CircleCI - Medium
"name": "react-native-avoid-collision" ... In theory, we can just add add a React Native app and Bitrise can build iOS and Android apps.
Read more >
symbol collision being reported on… | Apple Developer Forums
I was at first very confused because there is actually no file on my system with the name /usr/lib/libauthinstall.dylib. While this makes the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found