Duplicate Symbols For Architecture X86_64 Under Xcode

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.

Sample Image

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-

  1. Press "Cmd + Shift + K" or shift + cmd + alt + k to clean up, and quit Xcode.
  2. Delete the cache Run "rm -rf ~/Library/Developer/Xcode/DerivedData"
    in terminal

  3. Open 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 -

Sample Image

Sample Image

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



Leave a reply



Submit