react-native-blob-util icon indicating copy to clipboard operation
react-native-blob-util copied to clipboard

Build Failed on MacOS M1

Open taatiq882 opened this issue 2 years ago • 3 comments

After installation its giving this error

duplicate symbol '_bridgeRef' in: /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o) /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o) duplicate symbol '_fsQueue' in: /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o) /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o) duplicate symbol '_commonTaskQueue' in: /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o) /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o) duplicate symbol '_fileStreams' in: /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilFS.o) /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobFS.o) duplicate symbol '_expirationTable' in: /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilNetwork.o) /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Products/Debug-iphoneos/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)

"react-native": "0.67.3", "react-native-blob-util": "^0.16.2",

taatiq882 avatar Jul 09 '22 23:07 taatiq882

@taatiq882 let's remove rn-fetch-blob lib, and just keep only react-native-blob-util

hblab-hungpv avatar Jul 12 '22 10:07 hblab-hungpv

In Xcode, below your ProjectName, you have Pods. Click on Pods, and you will get list of components under TARGETS. Go to Build settings of both the components(react-native-blob-util and rn-fetch-blob) and set No Common Blocks=No

anoopbk1989 avatar Sep 21 '22 14:09 anoopbk1989

Before deleting rn-fetch-blob, you need to search for other package dependencies, otherwise it will be deleted from package.json file but not from node_modules folder.

  1. Press npm list --depth=2 at project root folder and search for packages with dependency on rn-fetch-blob
  2. In my case was redux-persist-filesystem-storage
  3. Update redux-persist-filesystem-storage to latest version which depends on react-native-blob-util
  4. npm uninstall rn-fetch-blob

ManosChr avatar Jan 20 '23 15:01 ManosChr