I'm getting this error after updating the Firebase pods on Xcode 12.5.1, everything was working fine before clang: error: no such file or directory: 'FirebaseAnalytics'
It started after I deleted the linker flag as described below. Initially I was getting a Framework not found FIRAnalyticsConnector error, so I followed the solution from here (with image below): Framework not found FIRAnalyticsConnector from Xcode 12.4
So I deleted the FIRAnalyticsConnector Linker flag as described, it got rid of the previous error but then after that I get the clang: error: no such file or directory: 'FirebaseAnalytics' error.
Here's my targets:
And when I click on add dependencies the FirebaseAnalytics is greyed out:
So my question is how do I fix the clang: error: no such file or directory: 'FirebaseAnalytics' error? Thanks.
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 use Xcode 11.3.1.
I receive an Xcode project from a coworker that is using Xcode 12.4.
I open the project and try to build it.
I receive the following error:
Library not found for ISO8601DateFormatterValueTransformer
Inside Xcode there are some details:
ld: warning: directory not found for option '-L/Users/catalina/Library/Developer/Xcode/DerivedData/CDA-chskvgcrkhxpgnghuarozjoeymbq/Build/Products/Debug-iphonesimulator/ISO8601DateFormatterValueTransformer'
ld: warning: directory not found for option '-L/Users/catalina/Library/Developer/Xcode/DerivedData/CDA-chskvgcrkhxpgnghuarozjoeymbq/Build/Products/Debug-iphonesimulator/RKValueTransformers'
ld: warning: directory not found for option '-L/Users/catalina/Library/Developer/Xcode/DerivedData/CDA-chskvgcrkhxpgnghuarozjoeymbq/Build/Products/Debug-iphonesimulator/RestKit'
ld: warning: directory not found for option '-L/Users/catalina/Library/Developer/Xcode/DerivedData/CDA-chskvgcrkhxpgnghuarozjoeymbq/Build/Products/Debug-iphonesimulator/SOCKit'
ld: warning: directory not found for option '-L/Users/catalina/Library/Developer/Xcode/DerivedData/CDA-chskvgcrkhxpgnghuarozjoeymbq/Build/Products/Debug-iphonesimulator/TransitionKit'
ld: warning: directory not found for option '-L/Users/catalina/Library/Developer/Xcode/DerivedData/CDA-chskvgcrkhxpgnghuarozjoeymbq/Build/Products/Debug-iphonesimulator/ZBarSDK'
ld: library not found for -lISO8601DateFormatterValueTransformer
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My coworker said to me to delete the Pods folder and run the pod install command. After running the command some libraries are installed on the project.
But when I try to build the project, it fails.
This problem could be related to my Xcode version? I mean, I was trying to compile a project using an old version of Xcode
Or
this is a problem related to not importing correctly the Library?
I find out what was causing the problem.
I open the xcproject file. The correct file to open the project is the xcworkspace file.
The problem is fixed now.
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 added Firebase to my Xcode project using cocoapods. I can build and it succeeds, I only get this warning:
ld: warning: directory not found for option '-F/Users/.../Library/Developer/Xcode/DerivedData/game-dwgqybwtgjx..../Build/Intermediates/ArchiveIntermediates/game/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-F/Users/.../Library/Developer/Xcode/DerivedData/game-dwgqybwtgj..../Build/Intermediates/ArchiveIntermediates/game/BuildProductsPath/Release-iphoneos/Protobuf'
The build succeeds but the archive doesn't.
When I click archive I get these warnings and errors:
/Users/..../Library/Developer/Xcode/DerivedData/game-dwgqybwtg.../Build/Intermediates/ArchiveIntermediates/game/InstallationBuildProductsLocation/Applications/game.app/Frameworks/GoogleToolboxForMac.framework: No such file or directory
Managed to fix the problem by updating macOS and Xcode
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.