Open whalemare opened 5 years ago
I'm having the same problem... I0m using RN v0.60.5 and my Pod file is
platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'bMark' do
# Pods for bMark
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/React'
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
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'
# Required by RNFirebase
pod 'Firebase/Core', '~> 6.8.0'
pod 'GoogleIDFASupport', '~> 3.14.0'
pod 'Firebase/Auth', '~> 6.8.0'
pod 'Firebase/Firestore', '~> 6.8.0'
pod 'Firebase/Functions', '~> 6.8.0'
pod 'Firebase/Messaging', '~> 6.8.0'
pod 'Fabric', '~> 1.10.2'
pod 'Crashlytics', '~> 3.13.2'
target 'bMarkTests' do
inherit! :search_paths
# Pods for testing
end
use_native_modules!
end
target 'bMark-tvOS' do
# Pods for bMark-tvOS
target 'bMark-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
A solution?
Remove this library from dependency and use another
With the new version it's solved.
This error continues
duplicate symbol '_OBJC_METACLASS_$_SGSheetMenu' in:
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/libRNBottomActionSheet.a(SGSheetMenu.o)
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol '_OBJC_IVAR_$_SGSheetMenu._items' in:
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/libRNBottomActionSheet.a(SGSheetMenu.o)
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol '_OBJC_IVAR_$_SGSheetMenu._subItems' in:
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/libRNBottomActionSheet.a(SGSheetMenu.o)
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol '_OBJC_IVAR_$_SGSheetMenu._titleLabel' in:
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/libRNBottomActionSheet.a(SGSheetMenu.o)
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol '_OBJC_IVAR_$_SGSheetMenu._actionHandle' in:
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/libRNBottomActionSheet.a(SGSheetMenu.o)
/Users/devatomic/Library/Developer/Xcode/DerivedData/atomicagro-bszabupthmkyjrauvoqwifznlkco/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
ld: 43 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Podfile
target 'atomicagro' do
pod 'FBLazyVector', :path => '../node_modules/react-native/Libraries/FBLazyVector'
pod 'FBReactNativeSpec', :path => '../node_modules/react-native/Libraries/FBReactNativeSpec'
pod 'RCTRequired', :path => '../node_modules/react-native/Libraries/RCTRequired'
pod 'RCTTypeSafety', :path => '../node_modules/react-native/Libraries/TypeSafety'
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'ReactCommon/jscallinvoker', :path => '../node_modules/react-native/ReactCommon'
pod 'ReactCommon/turbomodule/core', :path => '../node_modules/react-native/ReactCommon'
# Explicitly include Yoga if you are using RN >= 0.42.0
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps podspec link
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'
# Your 'node_modules' directory is probably in the root of your project,
# but if not, adjust the `:path` accordingly
# pod 'React', :path => '../node_modules/react-native', :subspecs => [
# 'CxxBridge', # Include this for RN >= 0.47
# ]
pod 'ReactNativeNavigation', :path => '../node_modules/react-native-navigation'
pod 'react-native-onesignal', :path => "../node_modules/react-native-onesignal/react-native-onesignal.podspec", :inhibit_warnings => true
pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios'
pod 'Firebase/Core','5.20.1'
pod 'Fabric'
pod 'react-native-camera', path: '../node_modules/react-native-camera'
pod 'react-native-geolocation', :path => '../node_modules/@react-native-community/geolocation'
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
pod 'SGActionView', :git => 'https://github.com/prscX/SGActionView.git'
use_native_modules!
pod 'RNBottomActionSheet', :path => '../node_modules/react-native-bottom-action-sheet/ios'
target 'atomicagroTests' do
inherit! :search_paths
# Pods for testing
end
end
package.json
{
"dependencies": {
"@react-native-community/geolocation": "^2.0.2",
"axios": "^0.18.0",
"eventemitter3": "^3.1.2",
"formik": "^1.3.2",
"immutable": "^4.0.0-rc.12",
"lodash": "^4.17.11",
"moment": "^2.24.0",
"numeral": "^2.0.6",
"react": "16.9.0",
"react-native": "0.61.1",
"react-native-action-button": "^2.8.5",
"react-native-auto-height-image": "^1.0.5",
"react-native-bottom-action-sheet": "^1.0.2",
"react-native-camera": "3.6.0",
"react-native-circular-progress": "^1.0.1",
"react-native-color-matrix-image-filters": "5.2.0",
"react-native-config": "^0.11.5",
"react-native-counter": "git+https://github.com/Kerumen/react-native-counter#8d25ef92488b03e1276e102f81cf5a8051d34157",
"react-native-device-info": "^0.24.3",
"react-native-dropdownalert": "^3.7.1",
"react-native-fbsdk": "1.0.4",
"react-native-firebase": "5.2.3",
"react-native-image-crop-picker": "^0.25.2",
"react-native-image-header-scroll-view": "^0.10.1",
"react-native-image-progress": "^1.1.1",
"react-native-keyboard-aware-scroll-view": "0.9.1",
"react-native-masked-text": "^1.9.2",
"react-native-modal-dropdown": "0.6.2",
"react-native-navigation": "3.2.0",
"react-native-onesignal": "3.4.1",
"react-native-scrollable-tab-view": "https://github.com/jayshooo/react-native-scrollable-tab-view.git#6ac253a078c71b0cf143f3f8bd75aee7b4ddde58",
"react-native-status-bar-height": "^2.3.1",
"react-native-svg": "^8.0.8",
"react-native-video": "5.0.2",
"react-native-webview": "^7.2.5",
"react-redux": "^5.1.1",
"redux": "4.0.1",
"redux-axios-middleware": "^4.0.0",
"redux-thunk": "^2.3.0",
"reduxsauce": "^1.1.0",
"slugify": "^1.3.4",
"typesafe-actions": "^4.4.2",
"yup": "^0.26.6"
}
}
Could you please try latest released version with RN61+ since it has better support for use_framework!
.
Thanks </ Pranav >
Can not run library on my project, because after
react-native link react-native-bottom-action-sheet
and pod install I sow strange output:after that, when I trying to
react-native run-ios
I got tons of errors like this:If I remove this lib from my project all is fine.
My project setup:
Podfile