forcedotcom / SalesforceMobileSDK-Package

BSD 3-Clause "New" or "Revised" License
22 stars 20 forks source link

Salesforce created React Native Project and installed dependencies not Runing #270

Closed ManishPrakharan1 closed 2 years ago

ManishPrakharan1 commented 2 years ago

I am facing issue in creating project using forcereact. I created a new project from command forcereact createwithtemplate --templaterepouri=ReactNativeTemplate and it works fine on both iOS and android which has react native version 0.70.1

I tried to install dependencies of latest version

and when i am trying to build the Xcode i get the following error

error build: 5 duplicate symbols for architecture arm64

    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_fsQueue' in:
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_commonTaskQueue' in:
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_fileStreams' in:
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilFS.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobFS.o)
duplicate symbol '_expirationTable' in:
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilNetwork.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobNetwork.o)
ld: 5 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please get me the permanent solution

my react native info

System:
OS: macOS 12.6
CPU: (8) arm64 Apple M1
Memory: 356.73 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh

Binaries:
Node: 18.9.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.19.1 - /opt/homebrew/bin/npm
Watchman: 2022.09.19.00 - /opt/homebrew/bin/watchman

SDKs: iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK:
API Levels: 31, 32, 33
Build Tools: 29.0.3, 30.0.3, 31.0.0, 33.0.0
System Images: android-30 | Google APIs ATD ARM 64 v8a, android-31 | ARM 64 v8a, android-31 | Google APIs ARM 64 v8a, android-33 | Google APIs ARM 64 v8a, android-33 | Google APIs Intel x86 Atom_64
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 14.0/14A309 - /usr/bin/xcodebuild

npmPackages:
react: 16.9.0 => 16.9.0 react-native: 0.61.3 => 0.61.3

npmGlobalPackages: create-react-native-app: 3.8.0 react-native-cli: 2.0.1