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 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.
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 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
Related Topics
Nsoperation VS Grand Central Dispatch
Submit to App Store Issues: Unsupported Architecture X86
How to Use Scnetworkreachability in Swift
How to Change the Background Color of a Uibutton While It's Highlighted
Setting Action For Back Button in Navigation Controller
How to Add Uitableview Within a Uitableviewcell
Having a Uitextfield in a Uitableviewcell
Starting Iphone App Development in Linux
How to Intercept Touches Events on a Mkmapview or Uiwebview Objects
How to Get Current Location from User in Ios
How to Count Occurrences of an Element in a Swift Array
Returning Method Object from Inside Block
React-Native, How to Get File-Asset Image Absolute Path
How to Prevent Tableview Section Head from Sticking While Scrolling
How to Develop For Iphone Using a Windows Development Machine