Xcode swift 3 cocoapods error - xcode

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:

Related

React Native IOS build failed, linker command failed with exit code 1

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

Unable to build iOS app with Tesseract

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

CocoaPods not installing Alamofire in Swift Parse Chat App

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.

Can't archive on Xcode: CocoaPods linking error

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.

Adding new dropbox.framework to xcode giving error

I have tried to add dropbox framework to my xcode 4.5 but I'm getting an error as follows
ld: 14 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So I googled for it and found ,xcode 4.5 no longer supports drop box framework. So I tried to add new 1.3 version of dropbox framework but still it gives the same error.Please help me out. How to overcome this problem
First try to clean the project first and try to run it again. If not, have you looked at this: http://www.mathiastauber.com/integration-o-dropbox-in-your-ios-application/

Resources