The React Native 0.66.3 app on macOS Big Sur started to throw below when build in Xcode 13 yesterday without change I am aware of. The package is in app's package.json. Tried to yarn add and pod install a few times and the error remains.
Here is the module in package.json:
"aliyun-oss-react-native": "^1.0.0-alpha.7",
The module is under project's node-modules. Here is the build error in Xcode:
ld: library not found for -lAliyunOSSiOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is the module files listed under iOS of aliyun-oss-react-native :
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:
I am trying to compile and run the following application (Swift Chat App using Alamofire).
https://github.com/huyouare/SwiftParseChat
I am using ruby-2.0.0 , cocoapods 0.37.1, xcode 6.3, Alamofire 1.2.0
I am installing it using the normal <pod install> command. No errors or warnings during the process.
However, when compiling, I get:
No such Module 'Alamofire'
If I install Alamofire manually, however, when compiling I get an Apple Match-O Linker Error :
ld: warning: directory not found for option '-F/Users/cristian/Library/Developer/Xcode/DerivedData/SwiftParseChat-btvjczpwjlekftetblbfrbposakh/Build/Products/Debug-iphoneos/Pods'
ld: framework not found Pods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What is behind this??
Thanks !
If everything is setup correctly, errors such as
No such Module 'Alamofire'
occur when you build your project from .xcodeproj.
By default you need to build project integrating CocoaPods from .xcworkspace.