I am trying to read text from Image and I have used pod 'TesseractOCRiOS', '4.0.0' this library when I run this app in Simulator its working fine but in real device I got compile time error:
ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have also change ENABLE_BITCODE=False but problem is not resolved
I am following this video: https://www.youtube.com/watch?v=DTQ1z_8KXZo&t=286s
If you have any other idea for doing this please share with me
Related
In 02/08/2022
I am trying to make an IPA file in my React Native project.
I can build it and test in a ios simulator, or build on my external device, but when I try to archive, I am getting this error:
ld: framework not found Base64
clang: error: linker command failed with exit code 1
My configuration is:
"react": "16.9.0"
"react-native": "0.61.3"
Xcode version: 13.4.1
In 04/08/2022
I understood that this lib is used with my react-native-code-push library and testing, I removed the code push from package.json and pod install on my iOS. Result? The error changed to:
ld: framework not found FBLPromises
clang: error: linker command failed with exit code 1
I think this is related to the pods not installing properly the node_modules library
I'm using Xcode 12.4 on Catalina 10.15.7 intel based chip. I created a sample react native project with this 'https://reactnative.dev/docs/environment-setup' and it build and ran perfectly.
Now after further working on the project I installed react native navigation and stack navigator and styled components and vector icon dependencies. Now I run into this issue. Plz help me to resolve this. Thanks.
error on Xcode build
ld: warning: directory not found for option '-L-L/Users/ahyanawaz/Library/Developer/Xcode/DerivedData/Store-bekhqxqflgsqtyheijdxkrbwrksk/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket'
ld: library not found for -lCocoaAsyncSocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Maybe try npm install or yarn then cd ios && pod install
I recently updated XCode version to XCode 12 and started to encounter this error
ld: in /project_path/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o),
building for iOS Simulator, but linking in object file built for iOS,
file '/project_path/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am unable to run or archive the project
I have tried the following to fix this error with no success
deleted pods folder and reinstalled
updated pods
Excluded arm64 architecture for debug
I am not sure what is causing the error.
Please help
I am getting this error after installing a CocoaPod and I don't understand why:
Apple Mach-O Linker Error Group
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can somebody give me an answer?
My guess is that you are using the Xcode Project (.xcodeproj) that you where using before.
When you install a pod, you need to use the Xcode Workspace (.xcworkspace) that CocoaPods automatically creates for you:
On an iOS project, when I compile my project to run it, it works fine.
But if I archive it, it fails with the following error:
ld: file not found: /Users/xxxxx/Work/xxxxx/codes/xxxxx/DerivedData/xxxxx/Build/Intermediates/ArchiveIntermediates/xxxxx/InstallationBuildProductsLocation/Applications/libPods.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using Xcode 4.6 and iOS 5.0.
I searched for a long time and finally got something and solved the same problem for me. For anyone who still needs:
In Build Setting > Other Linker Flag:
Probably the flag is different for Debug and others.
Try to change wherever $(TARGET_BUILD_DIR) to $(BUILT_PRODUCTS_DIR).
For me, I changed $(TARGET_BUILD_DIR)/libPods.a to $(BUILT_PRODUCTS_DIR)/libPods.a, and problem solved.