2500+ Duplicate Symbols for architecture armv7 - Xcode 8 - ios

I just got this interesting error by upgrading to Xcode 8. It worked fine in Xcode 7. However, in Xcode 8 it gives me a linker error:
ld: 2562 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Frameworks I'm using:
Frameworks search path:
$(PROJECT_DIR)/My\ App
Linker Flags: (Obj-C)
$(inherited)
I'm not using pods. I've just copied over the frameworks to the project directory.

Xcode recommended to use warning flags and set GCC_NO_COMMON_BLOCKS to YES.
Setting it back to NO solved the problem!

Related

Xcode build error after swift 4 migration

I have migrated my old working iOS project from Swift 2.3 to Swift 4, I am getting build failed with the error below:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and the warning below:
missing required architecture x86_64 in file ISHPullUp.framework/ISHPullUp
Note that:
I have updated the project's carthage to the latest versions of frameworks.
the framework I'm using and mentioned is ISHPullUp
I am getting this warning and error only when building for iPhone simulator unlike using iPhone physical device.
Am I missing something?
thanks in advance

armv 7 has no pc-rel bx thumb instruction in ObjectiveC Xcode

I get the following error when integrating a (.a) library into my iOS project:
ld: armv7 has no pc-rel bx thumb instruction. Can't fix up branch to
NO BINDING in _cvGetTickCount in '_cvGetTickCount' from
/Volumes/work/project/ThirdParties/Lib/mylib.a(cxswitcher.o)
for architecture armv7 clang: error: linker command failed with exit
code 1 (use -v to see invocation)
The library was built with armv7 for iOS 8.1 and the project's build is with armv7 for iOS 8.1 also, xcode version 8.
I don't have any clue regarding this issue and didn't found a solution. What seem to be the problem here? Any hint will help. Thanks

Xcode 8: linker command failed with exit code 1 (use -v to see invocation)

I am developing a hybrid application on Worklight. After upgrade from Xcode 7.3.1. to Xcode 8, I started getting the following error messages when tried to generate the XCarchive or Build and run the App on the Simulator.
MobileFirst Platform 6.3.0
Configurations used:
Architectures: Standard architectures (armv7, arm64) - $(ARCHS_STANDARD)
Valid Architectures: armv7, armv7s, arm64
Error Log from Xcode:
ld: warning: directory not found for option '-L"/Users/hjimenez/Documents/eclipseKepler - Build 3.1.0/ITS/apps/ITS/iphone/native/WorklightSDK"'
ld: warning: directory not found for option '-L"/Users/hjimenez/Documents/eclipseKepler - Build 3.1.0/ITS/apps/ITS/iphone/native/Tealeaf"'
ld: library not found for -lWorklightStaticLibProject
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I fixed the issue adding the following Resources into "Build Phases" tab:
UIKit.Framework
libstdc++.6.tbd
Also is probable that you need to remove the following resources from "Build Phases" tab, (but first try the fix above):
libc++.dylib
libstdc++.dylib

Getting error after updating xcode 5.0 to 5.1

I have updated the xcode 5.0 to 5.1 today. I run the existed project but getting the error now. I had no issues while running that project on 5.0 version. The error is below :
ld: library not found for -lIOKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please someone help.
I re-added the frameworks but now I get another error which is below
ld: 62 duplicate symbols for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Try going to your project configuration -> Build Settings -> Architechtures -> Valid architectures
Check if you've got the armv7s label duplicated.
You can also try to set to YES the Build Architechtures Only.
Please Check:- goto build setting, writing in search bar "GCC", check weather compiler is setup or not (LLMV 5.xx).

Xcode 4.5 Update (Project Error)

I updated Xcode and I ran into a project error:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/joe/Desktop/AdMob/libGoogleAdMobAds.a for architecture armv7s
This worked fine in the older version of Xcode, but not now. I know it has something to do with the file named: libGoogleAdMobAds.a
Which is used for AdMob ads...
Here is a screenshot:
UPDATE:
Check that you are using the latest AdMob SDK for iOS as that error implies the library doesn't have the iOS 6 added architecture (armv7s).
You can select
project settings->Build-settings->Compiler for C/C++/Objective C
select Apple LLVM Compiler 4.1
and build the projects

Resources