Xcode archive failed with error exit code 1 - ios

when I'm trying to publish my React native application, I first try to build an app and it builds successfully. Then when product ยป archive I get the following error:
ld: 513 duplicate symbols for architecture arm64 clang:
error: linker command failed with exit code 1
(use -v to see invocation)
note: I'm using the .xcworkspace file

You probably have React Native included in your project file, and also installed a CocoaPod which includes React Native as a dependency, so you have 2 copies of React Native. Delete one.

Related

How to resolve Framework not found JitsiMeetSDK.xcframework error

I want to integrate JitsiMeetSDK framework for iOS project. but it gives me error:
ld: framework not found JitsiMeetSDK.xcframework
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have set all the info as per link : https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-ios-sdk
I have used cocoapods, Xcode 12.4, Swift project. Any suggestions?

Xcode Linker command failed with exit code 1 AFNetworking

I am trying to build an already existing iOS project. And I get this error:
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried deleting Library Search Paths, installing pods with pod install, running .workspace but nothing is working.
Try following:
1. Go build setting
2. Find other linker command
3. Delete lAFNetworking from there
4. Clean and build

Apple Mach-O Linker Error - Xcode (Swift)

I'm trying to use a cocoapod with my Xcode project (Swift).
When I try to Build the project it fails with:
Apple Mach-O Linker Error Group
- "_OBJC_CLASS_$_FSCalendar", referenced from:
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
Errors
Any ideas what could be causing this?
(The cocoapod I am using is: https://github.com/WenchaoD/FSCalendar
UPDATE
I have added the frameworks and now I am just getting "clang: error: linker command failed with exit code 1 (use -v to see invocation)"
UPDATE
Full error:
ld: warning: directory not found for option '-F/Users/me/Documents/APP/build/Debug-iphoneos/FSCalendar'
ld: warning: directory not found for option '-F/Users/me/Documents/APP/build/Debug-iphoneos'
ld: framework not found FSCalendar
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried everything suggested on the internet for the same issue and nothing resolved this. I fully re-installed Xcode and Cocoapods, set up the project exactly the same as before and it is now working.
After I ran pod install on the new name I changed my project to, I had this error cause the pod framework was not linking to NEW project name and was still looking for OLD name.
I resolved by going into my projects 'Linked Frameworks and Libraries' in the Targets section and removing the OLD framework that has the OLD project name.
Targets > General > Linked Frameworks and Libraries > -(Pods_OLD_PROJECT_NAME.framework)

Linker fails after initialize Mixpanel library in Xcode

I am working on a mobile app using Unity3D and Mixpanel. The app runs successfully on an iPhone6, after I import the Mixpanel library it fails in Xcode with the following message:
ld: warning: directory not found for option '-L#(inherited)'
ld: library not found for -lMixpanel
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
How can I fix this?

Apple Mach-0 Linker Error when building iOS app

I am making an iOS and I just installed CocoaPods with RESTKit. I also have JSON files. The Apple Mach-O Linker Error happens when I build and only started when I installed the CocoaPods with RESTKit.
Here is part of the error report.
ld: 586 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have a similar symptom occur when I have added a static library that included another library that I already had in the project. It may be that you already have a library included in your project that is also included int the CocoaPods with RESTKit.

Resources