Duplicate symbols for architecture x86_64 under Xcode
75 duplicate symbols for architecture x86_64
Means that you have loaded same functions twice.
As the issue disappear after removing -ObjC
from Other Linker Flags,
this means that this option result that functions loads twice:
from Technical Q&A
This flag causes the linker to load every object file in the library
that defines an Objective-C class or category. While this option will
typically result in a larger executable (due to additional object code
loaded into the application), it will allow the successful creation of
effective Objective-C static libraries that contain categories on
existing classes.
https://developer.apple.com/library/content/qa/qa1490/_index.html
1 duplicate symbol for architecture x86_64
You need to add necessary framework to your project. Check all third party party framework and search its required framework for support. For e.g. if you add google analytic
then you need to add CoreData
, Foundation
etc framework. There is some framework is missing for which third party framework needs.
Or you can-
- Press
"Cmd + Shift + K"
orshift + cmd + alt + k
to clean up, and quit Xcode. Delete the cache Run
"rm -rf ~/Library/Developer/Xcode/DerivedData"
in terminalOpen the project and re-build it
Linker command failed with exit code 1
- to solve this error press "Cmd + Shift + K"
or shift + cmd + alt + k
this will do the work for you. I also have this same issue but solved by using this line . Hope this will solve your problem.
OUTPUT OF YOUR PROJECT -
Duplicate symbols for architecture x86_64 under Xcode
75 duplicate symbols for architecture x86_64
Means that you have loaded same functions twice.
As the issue disappear after removing -ObjC
from Other Linker Flags,
this means that this option result that functions loads twice:
from Technical Q&A
This flag causes the linker to load every object file in the library
that defines an Objective-C class or category. While this option will
typically result in a larger executable (due to additional object code
loaded into the application), it will allow the successful creation of
effective Objective-C static libraries that contain categories on
existing classes.
https://developer.apple.com/library/content/qa/qa1490/_index.html
Duplicate symbols for architecture x86_64
Adding x86_64
to the Excluded Architectures solved the issue.
duplicate symbols for architecture x86_64 error when building IOS application in ionic
duplicate symbols for architecture x86_64
This means that you have loaded same functions twice. As the issue disappears after removing -ObjC from Other Linker Flags, this means that this option result that functions loads twice:
from Technical Q&A
This flag causes the linker to load every object file in the library
that defines an Objective-C class or category. While this option will
typically result in a larger executable (due to additional object code
loaded into the application), it will allow the successful creation of
effective Objective-C static libraries that contain categories on
existing classes.
https://developer.apple.com/library/content/qa/qa1490/_index.html
Please follow this link for further details
79 duplicate symbols for architecture x86_64 Xcode
There was not CocoaAsyncSocket but there was GCDAsyncSocket.
Solution:
Go to xcode
into project navigator, click on Pods folder
then select TcpSockets in targets
Go to Build Phases > Compile sources
Here remove reference to CocoaAsyncSocket
Or run this command line:rm -rf node_modules/react-native-tcp/ios/CocoaAsyncSocket
More detail: https://github.com/Rapsssito/react-native-tcp-socket/issues/61#issuecomment-653881488
Related Topics
How to Apply Multiple Transforms in Swift
Auto Layout Uiscrollview with Subviews with Dynamic Heights
Reasons for Rejecting iPhone Application by Apple Store
Uiview - How to Get Notified When the View Is Loaded
Auto-Layout: What Creates Constraints Named Uiview-Encapsulated-Layout-Width & Height
How to Remove Cache in Wkwebview
Programmatically Add Centerx/Centery Constraints
Use Didselectrowatindexpath or Prepareforsegue Method for Uitableview
Native Facebook App Does Not Open with Facebook Login in iOS 9
Change Color of Back Button in Navigation Bar
Best Way to Parse Url String to Get Values for Keys
Uitableviewcell Buttons with Action
iPhone Ad Hoc Build Using Xcode 4
Ios: Uibutton Resize According to Text Length
Combine Framework Serialize Async Operations
Send Messages Between iOS and Watchos with Watchconnectivity in Watchos2
Instantiate View Controller from Storyboard VS. Creating New Instance