react-native link adds duplicated lines to ios project.pbxproj file
See original GitHub issueSay you link 2 or more native modules, it will result in a file with these lines or something similar, which is weird:
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 9.7.1
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.0 => 0.52.0
Expected Behavior
if the required line exists, don’t add new duplicated lines
Actual Behavior
it adds repeating lines
Steps to Reproduce
just link 2 or more native modules
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:9 (2 by maintainers)
Top Results From Across the Web
React Native XCode Project Product Archive Fails with ...
The answer is that there is two copies of React Native in the Xcode ... the link above: the app may become larger...
Read more >react-native-camera-document - npm
Rename the new folder to "Frameworks". Right click on "Frameworks" and select "add files to 'YOUR_PROJECT'". Select all content from the folder ...
Read more >How to add and remove custom fonts in React Native - Medium
1. First step. Collect all fonts you want to use for IOS and Android and place it in the directory inside your project....
Read more >Demystifying react-native modules linking - Brigad Engineering
Using react-native link package-name will edit your .pbxproj file (and you ... Open your project inside Xcode using the .xcworkspace .
Read more >Easier React Native upgrades with rn-diff | by Nicolas Cuillery
That is the worst part: some files in the ios directory are not even supposed to be read by a human… The project.pbxproj...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sounds like the same thing I’m seeing on android, duplicate additions to
android/gradle.properties
and.../MainApplication.java
each timelink
is run. I don’t think it did that before.I reported this issue in react-native-cli since I could not find that it had been reported in their repo
https://github.com/react-native-community/react-native-cli/issues/236