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

pod install create libReact-4072a36b.a which results in duplicate libraries #23199

Closed
Vakil-Parth opened this issue Jan 29, 2019 · 4 comments
Closed
Labels
Bug Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@Vakil-Parth
Copy link

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
Memory: 185.16 MB / 8.00 GB
Shell: 3.2.57 - /bin/sh
Binaries:
Node: 8.11.3 - /usr/local/bin/node
Yarn: 1.9.2 - /usr/local/bin/yarn
npm: 5.6.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 23.0.1, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.2, 27.0.3, 28.0.1, 28.0.2
System Images: android-25 | Google APIs ARM EABI v7a, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.58.2 => 0.58.2
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

Description

pod install commmand creates libReact-4072a36b.a i also inserted pod install script to remove it but did not work.

**Even if i remove it manually, pod install command creates with libReact-xxxxxx.a **

here is my pod file

  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge',
    'DevSupport',
    'RCTText',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTSettings',
    'RCTNetwork',
    'RCTWebSocket',
    'RCTAnimation',
  ]
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod 'Firebase/Core'
  pod 'Firebase/MLVision'
  pod 'Firebase/MLVisionTextModel'

  pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

  pod 'RNImageCropPicker', :path =>  '../node_modules/react-native-image-crop-picker'
  pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

  target 'new_mays_translation-tvOSTests' do
    inherit! :search_paths
    pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
  end

  target 'new_mays_translationTests' do
    inherit! :search_paths
  end

end
post_install do |installer|
    installer.pods_project.targets.each do |target|
      targets_to_ignore = %w(React yoga)
      if targets_to_ignore.include? target.name
        target.remove_from_project
      end
    end
  end```

@Vakil-Parth
Copy link
Author

steps to reproduce error

  1. create new project - react-native init NewDemo

  2. add dependencies to package.json
    "@okgrow/react-native-copilot": "^2.4.1", "moment": "^2.22.2", "native-base": "^2.8.2", "react-native-camera": "^1.9.2", "react-native-event-listeners": "^1.0.3", "react-native-firebase-mlkit": "^0.6.2", "react-native-fs": "^2.13.3", "react-native-gesture-handler": "^1.0.14", "react-native-image-crop-picker": "^0.21.3", "react-native-image-cropping": "^1.0.0", "react-native-loading-spinner-overlay": "^1.0.1", "react-native-modal": "^7.0.2", "react-native-power-translator": "^1.1.1", "react-native-svg": "^9.0.0", "react-native-vector-icons": "^6.0.2", "react-navigation": "^3.0.8", "rn-fetch-blob": "^0.10.15"

  3. install dependencies by - npm install

  4. go inside ios folder - cd ios

  5. initialise pod - pod init

  6. add pod dependencies `pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge',
    'DevSupport',
    'RCTText',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTSettings',
    'RCTNetwork',
    'RCTWebSocket',
    'RCTAnimation',
    ]
    pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

pod 'Firebase/Core'
pod 'Firebase/MLVision'
pod 'Firebase/MLVisionTextModel'

pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'
pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

target 'new_mays_translation-tvOSTests' do
inherit! :search_paths
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
end

target 'new_mays_translationTests' do
inherit! :search_paths
end

end
post_install do |installer|
installer.pods_project.targets.each do |target|
targets_to_ignore = %w(React yoga)
if targets_to_ignore.include? target.name
target.remove_from_project
end
end
end`

  1. install pod

we will get additional react-native dependency from pod

@roshangm1
Copy link
Contributor

roshangm1 commented Apr 12, 2019

Any workarounds for this ? Need guidance here, please ? @hramos @cpojer

@stale
Copy link

stale bot commented Aug 4, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 4, 2019
@stale
Copy link

stale bot commented Aug 11, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Aug 11, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

4 participants