Good evening guys!!
i have an xcode project that i want to publish on App Store. it`s building and running normally on a external device, but when i try to archive it, the following error occurs:
Ld /Users/Dado/Library/Developer/Xcode/DerivedData/MinhaBibliaOffline-bmkcjpxbesptrhdhnfhpudwgicip/Build/Intermediates/ArchiveIntermediates/MinhaBibliaOffline/InstallationBuildProductsLocation/Applications/MinhaBibliaOffline.app/MinhaBibliaOffline normal armv7
cd /Users/Dado/Dropbox/Sistema/MyWorkspace/Apple/MinhaBibliaOffline
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/Dado/Library/Developer/Xcode/DerivedData/MinhaBibliaOffline-bmkcjpxbesptrhdhnfhpudwgicip/Build/Intermediates/ArchiveIntermediates/MinhaBibliaOffline/BuildProductsPath/Release-iphoneos -L/Users/Dado/Dropbox/Sistema/MyWorkspace/Apple/MinhaBibliaOffline/Pods/build/Debug-iphoneos -L/Users/Dado/Dropbox/Sistema/MyWorkspace/Apple/MinhaBibliaOffline/Pods/build/Release-iphoneos -F/Users/Dado/Library/Developer/Xcode/DerivedData/MinhaBibliaOffline-bmkcjpxbesptrhdhnfhpudwgicip/Build/Intermediates/ArchiveIntermediates/MinhaBibliaOffline/BuildProductsPath/Release-iphoneos -filelist /Users/Dado/Library/Developer/Xcode/DerivedData/MinhaBibliaOffline-bmkcjpxbesptrhdhnfhpudwgicip/Build/Intermediates/ArchiveIntermediates/MinhaBibliaOffline/IntermediateBuildFilesPath/MinhaBibliaOffline.build/Release-iphoneos/MinhaBibliaOffline.build/Objects-normal/armv7/MinhaBibliaOffline.LinkFileList -dead_strip -ObjC -lPods-AFNetworking -lPods-MMDrawerController -lPods-WYPopoverController -framework CoreGraphics -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -lsqlite3 -framework CoreGraphics -framework UIKit -framework Foundation -lPods-MinhaBibliaOffline -Xlinker -dependency_info -Xlinker /Users/Dado/Library/Developer/Xcode/DerivedData/MinhaBibliaOffline-bmkcjpxbesptrhdhnfhpudwgicip/Build/Intermediates/ArchiveIntermediates/MinhaBibliaOffline/IntermediateBuildFilesPath/MinhaBibliaOffline.build/Release-iphoneos/MinhaBibliaOffline.build/Objects-normal/armv7/MinhaBibliaOffline_dependency_info.dat -o /Users/Dado/Library/Developer/Xcode/DerivedData/MinhaBibliaOffline-bmkcjpxbesptrhdhnfhpudwgicip/Build/Intermediates/ArchiveIntermediates/MinhaBibliaOffline/InstallationBuildProductsLocation/Applications/MinhaBibliaOffline.app/MinhaBibliaOffline
ld: warning: directory not found for option '-L/Users/Dado/Dropbox/Sistema/MyWorkspace/Apple/MinhaBibliaOffline/Pods/build/Debug-iphoneos'
ld: warning: directory not found for option '-L/Users/Dado/Dropbox/Sistema/MyWorkspace/Apple/MinhaBibliaOffline/Pods/build/Release-iphoneos'
ld: library not found for -lPods-AFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is my Podfile implementation
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "7.0"
target "MinhaBibliaOffline" do
pod "AFNetworking"
pod "MMDrawerController", "~> 0.5.7"
pod "TAOOverlayHelp"
pod "WYPopoverController", "~> 0.2.2"
end
i have looked for a solution for hours, but still didn`t find one that worked
i've just found an answer that worked for me.. i'll write below because it might be useful to somebody.
In my case, i had to update the "Other Linker Flags" in my project target > Build Settings.
There were wrong references to the projects added via CocoaPods:
For example:
before: -l"Pods-AFNetworking"
i changed to: -l"Pods-MinhaBibliaOffline-AFNetworking"
I hope this answer helps
Cheers
Related
I recently updated XCode to V 11.1, and since updating, for some reason when I run my app in release mode, I'm thrown the following error:
ld: can't link with a main executable file
'/Users/me/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Products/Release-iphoneos/myapp.app/myapp'
for architecture armv7 clang: error: linker command failed with exit
code 1 (use -v to see invocation)
I have absolutely no clue how to resolve this - and I can't run my app in release mode without it (and yes, I'm using a Distribution profile). Help would be much appreciated. I've browsed a few other answers but none seem to solve this issue.
When I navigate to that file path, 'myapp' is simply an icon with a circle and a slash through it (can't be a good sign). This same thing occurs even after I clean the build folder. When I try to rebuild in release mode, the build fails and throws me the above yet again.
See full error:
Ld
/Users/admin/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Intermediates.noindex/myapp.build/Release-iphoneos/myappTests.build/Objects-normal/armv7/Binary/myappTests
normal armv7 (in target 'myappTests' from project 'myapp')
cd /Users/admin/Desktop/myapp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-target armv7-apple-ios8.4 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk
-L/Users/admin/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Products/Release-iphoneos
-F/Users/admin/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Products/Release-iphoneos
-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/Developer/Library/Frameworks
-F/Users/admin/Desktop/myapp/Pods/FirebaseAnalytics/Frameworks -F/Users/admin/Desktop/myapp/Pods/GoogleAppMeasurement/Frameworks -F/Users/admin/Desktop/myapp/Pods/GoogleMaps/Base/Frameworks -F/Users/admin/Desktop/myapp/Pods/GoogleMaps/Maps/Frameworks -F/Users/admin/Desktop/myapp/Pods/GooglePlaces/Frameworks -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib
-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks
-filelist /Users/admin/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Intermediates.noindex/myapp.build/Release-iphoneos/myappTests.build/Objects-normal/armv7/myappTests.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -dead_strip -bundle_loader /Users/admin/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Products/Release-iphoneos/myapp.app/myapp
-Xlinker -object_path_lto -Xlinker /Users/admin/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Intermediates.noindex/myapp.build/Release-iphoneos/myappTests.build/Objects-normal/armv7/myappTests_lto.o
-fobjc-arc -fobjc-link-runtime -lc++ -licucore -lsqlite3 -lz -framework Accelerate -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreImage -framework CoreLocation -framework CoreTelephony -framework CoreText -framework Foundation -framework GLKit -framework ImageIO -framework OpenGLES -framework QuartzCore -framework Security -framework StoreKit -framework
SystemConfiguration -framework UIKit -framework XCTest
-lPods-myappTests -Xlinker -dependency_info -Xlinker /Users/admin/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Intermediates.noindex/myapp.build/Release-iphoneos/myappTests.build/Objects-normal/armv7/myappTests_dependency_info.dat
-o /Users/admin/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Intermediates.noindex/myapp.build/Release-iphoneos/myappTests.build/Objects-normal/armv7/Binary/myappTests
ld: can't link with a main executable file
'/Users/admin/Library/Developer/Xcode/DerivedData/myapp-btokobigvkxtgwgcjrapocxlexno/Build/Products/Release-iphoneos/myapp.app/myapp'
for architecture armv7 clang: error: linker command failed with exit
code 1 (use -v to see invocation)
Finally found the fix in my case. Hopefully this answer is helpful to others.
Product > Scheme > Edit Scheme, and then tap the 'Build' category on
the left hand side.
Under your appTests targets, uncheck "Run".
Problem solved.
Could you say where do you find the slashed icon - it may be a sign Xcode tries to look at a wrong path. You may easily verify it with right-click on the project from Project Navigator, show in Finder.
I recommend Changing deployment target to 8.4.
A solution might be going to Product > Scheme > Edit Scheme, choose Build and uncheck 'Run'
I was getting the ld: can't link with a main executable file error because the Build Settings between my app target and the test app were different, mainly the iOS Deployment Target.
Ensuring that these two were the same allowed the build to succeed.
So I've added some Cocoapods to a project, and now when I build, I'm getting the following error:
Ld Build/Products/Debug-iphonesimulator/[AppName].app/[AppName] normal x86_64
cd /Users/[username]/Developer/[AppName]
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/[username]/Developer/[AppName]/Build/Products/Debug-iphonesimulator -L/Users/[username]/Developer/[AppName] -F/Users/[username]/Developer/[AppName]/Build/Products/Debug-iphonesimulator -filelist /Users/[username]/Developer/[AppName]/Build/Intermediates/[AppName].build/Debug-iphonesimulator/[AppName].build/Objects-normal/x86_64/[AppName].LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lCMDQueryStringSerialization -lISO8601 -lReactiveCocoa -lSimpleAuth -lc++ -lpop -framework Foundation -framework UIKit -lPods-CMDQueryStringSerialization -lPods-ISO8601 -lPods-ReactiveCocoa -lPods-SimpleAuth -framework Foundation -framework UIKit -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.0 -framework MapKit -framework CoreLocation -lPods -Xlinker -dependency_info -Xlinker /Users/[username]/Developer/[AppName]/Build/Intermediates/[AppName].build/Debug-iphonesimulator/[AppName].build/Objects-normal/x86_64/[AppName]_dependency_info.dat -o /Users/[username]/Developer/[AppName]/Build/Products/Debug-iphonesimulator/[AppName].app/[AppName]
ld: library not found for -lPods-CMDQueryStringSerialization
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've uninstalled and reinstalled all the Cocoapods in the workspace several times to no avail. I've also seen so many other similar errors and done what those answers said to do, but I'm still getting the error.
Also, as a side note, earlier I was not getting this error but instead a '233 duplicate symbols for architecture x86_64' error pointing to some (read: a lot of) Objective-C files in some of the pods (i.e. ReactiveCocoa). It seems like these errors came after I added Facebook's Pop pod to my Podfile, but I'm not pointing any fingers because I'm pretty sure that didn't cause all these problems.
Please and thanks for any help!
EDIT:
Here is the Podfile:
pod 'SimpleAuth/LinkedInWeb'
pod 'SimpleAuth/GoogleWeb'
pod 'pop', '~> 1.0'
inhibit_all_warnings!
UPDATE & FIX:
Ok, so I've fixed the problem. Here's what I did:
Remove any pods that are causing the error.
Delete Derived Data sub-folders.
Remove any explicit '-lPods-[Pod]' linker flags in Build Settings -> Other Linker Flags.
Quit/Restart Xcode.
Add back pods and run pod install.
Open .xcworkspace and build. Hopefully it should be fixed!
I'm not sure how necessary all of these steps are, but that's what I did to fix it for me.
Add pod 'SimpleAuth' to your Podfile and run pod install, see if that helps.
I have an iOS project with Google AdMob SDK installed using cocoa pods. When I started the project, the name of the project is called MAPPER. Then I renamed the project to GLITTER in Xcode. Xcode changed the name in almost all places except for cocoa pods. I had to rename in manually as in
target 'Glitters' do
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
end
target 'GlittersTests' do
end
I have to manually rename it. Then POD INSTALL worked fine. But my compile is failing with linker error as below
ld: library not found for -lPods-Mapper
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Full log message
Ld /Users/BharathMBA/Library/Developer/Xcode/DerivedData/Glitters-fakjqrbepxlfnzcvhrerurokbtzs/Build/Products/Debug-iphonesimulator/Glitters.app/Glitters normal x86_64
cd /Users/BharathMBA/iOS/Swift/Mapper
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/BharathMBA/Library/Developer/Xcode/DerivedData/Glitters-fakjqrbepxlfnzcvhrerurokbtzs/Build/Products/Debug-iphonesimulator -F/Users/BharathMBA/Library/Developer/Xcode/DerivedData/Glitters-fakjqrbepxlfnzcvhrerurokbtzs/Build/Products/Debug-iphonesimulator -F/Users/BharathMBA/iOS/Swift/Mapper/Pods/Google-Mobile-Ads-SDK/GoogleMobileAdsSdkiOS-7.0.0 -filelist /Users/BharathMBA/Library/Developer/Xcode/DerivedData/Glitters-fakjqrbepxlfnzcvhrerurokbtzs/Build/Intermediates/Glitters.build/Debug-iphonesimulator/Glitters.build/Objects-normal/x86_64/Glitters.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lPods-Glitters-Google-Mobile-Ads-SDK -framework AVFoundation -framework AudioToolbox -framework CoreGraphics -framework CoreTelephony -framework EventKit -framework EventKitUI -framework GoogleMobileAds -framework MessageUI -framework StoreKit -framework SystemConfiguration -weak_framework AdSupport -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -force_load -Xlinker /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a -Xlinker -add_ast_path -Xlinker /Users/BharathMBA/Library/Developer/Xcode/DerivedData/Glitters-fakjqrbepxlfnzcvhrerurokbtzs/Build/Intermediates/Glitters.build/Debug-iphonesimulator/Glitters.build/Objects-normal/x86_64/Glitters.swiftmodule -mios-simulator-version-min=7.0 -lPods-Mapper -lPods-Glitters -Xlinker -dependency_info -Xlinker /Users/BharathMBA/Library/Developer/Xcode/DerivedData/Glitters-fakjqrbepxlfnzcvhrerurokbtzs/Build/Intermediates/Glitters.build/Debug-iphonesimulator/Glitters.build/Objects-normal/x86_64/Glitters_dependency_info.dat -o /Users/BharathMBA/Library/Developer/Xcode/DerivedData/Glitters-fakjqrbepxlfnzcvhrerurokbtzs/Build/Products/Debug-iphonesimulator/Glitters.app/Glitters
In the log I could see -Pods-Mapper is called for linking in line
-Xlinker -add_ast_path -Xlinker /Users/BharathMBA/Library/Developer/Xcode/DerivedData/Glitters-fakjqrbepxlfnzcvhrerurokbtzs/Build/Intermediates/Glitters.build/Debug-iphonesimulator/Glitters.build/Objects-normal/x86_64/Glitters.swiftmodule -mios-simulator-version-min=7.0 -lPods-Mapper -lPods-Glitters -Xlinker -dependency_info
I am not sure how to get rid of this issue.
Thanks
Go to the General tab of your target and scroll to section named Linked Frameworks and Libraries.
Here, you should see 2 references to your Pods' framework:
one with the name Pods_<previous-target-name>.framework
a second with the name Pods_<current-target-name>.framework
Delete the reference to pod Pods_<previous-target-name>.framework.
I had the same issue and found that some paths were not changed by xcode. I ended up doing the following:
Select your project file (top most entry in your xcode workspace)
Select the target you use to build your app
Switch to the build phases tab
Find the [CP] Embed Pods Frameworks and the [CP] Copy Pods Frameworks phase
Open them and you will see that they still have the old file path in there.
Change the file paths so they fit your new project name
However, this only gave me more errors. I selected the project itself this time and expanded the Configurations section. Here I saw that a lot of old references were used. Instead of manually changing them I decided that it was easier to deintegrate and install the pods again by using pod deintegrate and pod install which then solved the problem.
I guess the first steps are unnecessary when deintegrating but I think it's good to know that they exist.
I've been trying to get my app up and running. From what I could tell the app was missing Cocoapods as a dependency. So. I installed and added Cocoapods. But I'm still getting the same error for whatever reason. I'm an inexperienced developer trying to teach himself I must add.
Ld
/Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator/Umbrella.app/Umbrella
normal i386
cd "/Users/bfarag/Desktop/The Nerdery/BRAVO.iOS.CodeChallenge"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk
-L/Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator
-F/Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator
-filelist /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Intermediates/Umbrella.build/Debug-iphonesimulator/Umbrella.build/Objects-normal/i386/Umbrella.LinkFileList
-Xlinker -objc_abi_version -Xlinker 2 -ObjC -lPods-Umbrella-AFNetworking -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration
-fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -framework Accelerate -framework UIKit -framework Foundation -framework CoreGraphics -lPods -lPods-Umbrella -Xlinker -dependency_info -Xlinker /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Intermediates/Umbrella.build/Debug-iphonesimulator/Umbrella.build/Objects-normal/i386/Umbrella_dependency_info.dat
-o /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator/Umbrella.app/Umbrella
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This error usually occurs either when you don't have the correct frameworks (might be missing one) or when you don't have the right thing in linker flags.
Go to the main page for the app (on the navigation thing on the left click on your apps name or the top section) -> Build Settings and under Linker Flags, make sure there is nothing in your Other Linker Flags. I had this same error when I had -ObjC in my other Linker Flags.
You might also want to try adding -lPods to your Other Linker Flags or adding the CoreGraphics framework if you don't already have it.
Good luck
Open workspace file, not project file. Cocoapods automatically creates a xcworkspace file on the same directory as xcproject file.
Xcode started displaying this message and I tried pretty much everything to solve it. What finally did the trick for me was deleting all content from ~/Library/Developer/Xcode/DerivedData/
I'm trying to integrate Google Analytics in my iOS App. However unable to build after adding the Google Analytics sdk (v 3.01) which is the latest version in Xcode 5.
I have included all the dependent libraries/frameworks but still no go.
Below is the Activity Log:
Ld /Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Products/Debug-iphoneos/RamLeela.app/RamLeela normal armv7
cd /Users/yashsoni/Documents/NetProjects/Draft-MovieApp
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Products/Debug-iphoneos -F/Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Products/Debug-iphoneos -F/Users/yashsoni/Documents/NetProjects/Draft-MovieApp -filelist /Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Intermediates/Draft-MovieApp.build/Debug-iphoneos/Ramleela.build/Objects-normal/armv7/RamLeela.LinkFileList -dead_strip -fobjc-link-runtime -miphoneos-version-min=6.0 -lGoogleAnalyticsServices -framework CoreData -framework SystemConfiguration -lsqlite3 -framework CFNetwork -framework AdSupport -lz -lsqlite3.0 -framework Twitter -framework CoreLocation -framework Security -framework Accounts -framework Social -framework MessageUI -framework FacebookSDK -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Intermediates/Draft-MovieApp.build/Debug-iphoneos/Ramleela.build/Objects-normal/armv7/RamLeela_dependency_info.dat -o /Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Products/Debug-iphoneos/RamLeela.app/RamLeela
ld: library not found for -lGoogleAnalyticsServices
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I suggest you to use xcode 5.02 or Xcode 5.1 (stable version) and then add google analytic accordingly then hopefully these errors will be resolved.
Same problems I am facing too before installing xcode 5.02.Hopefully it will help you too.
Have you added your library in "LIBRARY_SEARCH_PATHS"?
Sorry to have ans so late,It was a architecture problem. Ther error was only for iPhone 5s 64 bit Architecture. After updating the Google analytics framework got it working..!!
Let me know if that helps.
Make sure that you update the project settings as recommended by XCode , If its showing, This should solve this kind of issues most of times.