How to resolve Apple - o link error - ios

I am having one apple - o link error in my project, I have searched in Google but it's not helping me, below is my error
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode 2.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
what is this error and how to fix it, please any one help me.

1.Try avoid arm64 from valid architecture.
2.Try Set Build for Active Architecture to "NO"
3.Also check framework search path
# build settings.

You can solve this by following this steps:
Select the Pods project
Click on build settings
Change Build Active Architecture Only to 'No'

Related

ld: library not found for -lPods-Google-Maps-iOS-SDK iOS

I install googlemap pod file that time i got an error and unable to solved this .. please help me
I am getting this error:
ld: library not found for -lPods-Google-Maps-iOS-SDK clang: error:
linker command failed with exit code 1 (use -v to see invocation)
This is the error because u didn't integerate sdk using podfile correctly so the sdk files are missing in your project
Use this link https://developers.google.com/maps/documentation/ios-sdk/start it will help.Thanks
follow this link properly https://developers.google.com/maps/documentation/ios-sdk/start
and make sure you have set YES in BUILD ACTIVE ARCHITECTURE ONLY in build settings (in target).

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).

Put Xcode files into new folder. Since then, I encounter the following errors when building project in simulator

I encounter the following errors
ld: warning: directory not found for option '- L/Users/andrecowardjr/Desktop/Parley/Parley/Google Analytics
ld: library not found for -lGoogleAnalytics
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Cant find out what the error is. Help needed.
Go into your project settings, check out the field 'Library Search Paths', and edit it so that it reflects where you moved your code/libraries. The error you're running into here is the linker can't find the Google Analytics library that your app is set up to link against (because you moved it).

Mach O Link Error- linker command failed with exit code 1 (use -v to see invocation)

When I try building for archiving for my app in Xcode (version 4.5) I get an error that says:
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/[myrealname]/Downloads/[myappname]/BT_Objects/TwitterOAuth/SAOAuthTwitterEngine/libOAuth.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It then says under it:
(null): File is universal (3 slices) but does not contain a(n) armv7s slice: /Users/shakerite/Downloads/shakeritetestnotrealone_v15_iOS/BT_Objects/TwitterOAuth/SAOAuthTwitterEngine/libOAuth.a for architecture armv7s
Does anyone know how to solve this?
I received a very similar message just the other day when I tried running my app on my iPad after several successful attempts on the simulator. I found out that under the build settings I had to make "build active architecture only" to yes. Then my app would compile on my device. Hope this helps.
Yeah, I had this same exact problem. Click on your project in xcode. Then, click on the target. Go to build settings and look for valid architectures. Delete armv7s from the list of valid architectures and just leave armv7.
Let me know if you have any questions!
here I provide you one temporary solution that can solve this error hope its help you,
go to Project->Build Settings->Build Active Architecture Only->yes
thats it.

Apple Mach-O Linker Error armv7s & libGoogleAdMobAds.a

I've just upgraded my app to run on the new iPhone5 simulator, however when I try to build it for my iPhone 4S device, I get this Apple Mach-O Liner error.
ld: file is universal (3 slices) but does not contain a(n) armv7s
slice: /Users/Darren/Documents/Dev stuff/My
App/GoogleAdMobAdsSDKiOS-5.0.5/libGoogleAdMobAds.a for architecture
armv7s clang: error: linker command failed with exit code 1 (use -v to
see invocation)
Can someone shed some light on what this error it and how to fix it?
I am using adWhirl with AdMob.
Thanks
EDIT ---
I am also getting this error in another project for the file libfacebook_ios_sdk.a
The same answer as I gave in this thread:
If you want to remove the support for any architecture, try this:
Project -> Build Settings -> remove the architecture from "valid architectures"
You can use this as a temporary solution until the library has been updated. You have to remove the flag from your own project.
iPhone5's cpu is A6(armv7s).
The existing Admob sdk does not support it.
We have to wait for admob to update the sdk.
Update to Admob 6.2.0 or later.
See this post: http://googleadsdeveloper.blogspot.com/2012/09/migrating-to-admob-v62-for-ios.html.
Also, include the AdSupport framework and remove the -all_load flag.
You've got to use the -ObjC flag however.
This works for me, finally!!
Try this:
This article copy an armv7 lib code as an armv7s and build into the original lib. so xcode will see that lib has an armv7s code/arch
http://www.galloway.me.uk/2012/09/hacking-up-an-armv7s-library/

Resources