Add .a dependency when you are using pod - ios

I have a project that has a pod dependency 'GoogleMap'. now I want to use ZbarSDK too.
ZBarSDK has two .a file that I add them to 'LinkBinaryWithLibraries' section of my project and also add the library headers too. but I still receive below error when want to run the app:
Ld /Users/rad/Library/Developer/Xcode/DerivedData/APMB-fbbvbbebzyjbwgaaoqaanlaiftor/Build/Products/Debug-iphoneos/APMB.app/APMB normal armv7
cd "/Users/rad/Documents/GIT Repo/iOS-APMB"
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/local/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/iPhoneOS9.3.sdk -L/Users/rad/Library/Developer/Xcode/DerivedData/APMB-fbbvbbebzyjbwgaaoqaanlaiftor/Build/Products/Debug-iphoneos -F/Users/rad/Library/Developer/Xcode/DerivedData/APMB-fbbvbbebzyjbwgaaoqaanlaiftor/Build/Products/Debug-iphoneos -F/Users/rad/Documents/GIT\ Repo/iOS-APMB/Pods/GoogleMaps/Frameworks -filelist /Users/rad/Library/Developer/Xcode/DerivedData/APMB-fbbvbbebzyjbwgaaoqaanlaiftor/Build/Intermediates/APMB.build/Debug-iphoneos/APMB.build/Objects-normal/armv7/APMB.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=7.0 -dead_strip -Xlinker -no_deduplicate -fembed-bitcode-marker -ObjC -lc++ -licucore -lz -framework AVFoundation -framework Accelerate -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreText -framework GLKit -framework GoogleMaps -framework ImageIO -framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -force_load -Xlinker /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a -Xlinker -add_ast_path -Xlinker /Users/rad/Library/Developer/Xcode/DerivedData/APMB-fbbvbbebzyjbwgaaoqaanlaiftor/Build/Intermediates/APMB.build/Debug-iphoneos/APMB.build/Objects-normal/armv7/APMB.swiftmodule -lPods -lzbar -lzbar-sim -Xlinker -dependency_info -Xlinker /Users/rad/Library/Developer/Xcode/DerivedData/APMB-fbbvbbebzyjbwgaaoqaanlaiftor/Build/Intermediates/APMB.build/Debug-iphoneos/APMB.build/Objects-normal/armv7/APMB_dependency_info.dat -o /Users/rad/Library/Developer/Xcode/DerivedData/APMB-fbbvbbebzyjbwgaaoqaanlaiftor/Build/Products/Debug-iphoneos/APMB.app/APMB
ld: library not found for -lzbar
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does someone knows what is the problem?

Try checking your HEADER_SEARCH_PATH and LIBRARY_SEARCH_PATH build settings. Those tell the linker where to search for the .a files, and .h files for your #import/#include statements. You may need to enter the paths to the necessary files.
If you open the popup window for either setting, you should be able to drag the directory containing the .a or .h files, respectively, from Finder into the Xcode popover, and it will figure out the relative path for you using something like ${SRCROOT}.

Related

Xcode displayed error while compiler start to compile

I constructed one project. The dependency is managed via CocoaPods.
When ran the project. It occurred errors as below:
Ld
/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/iXueXi.app/iXueXi
normal x86_64
cd /Users/zhaoxinqiang/Desktop/iXueXi
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/local/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/iPhoneSimulator10.3.sdk
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/ACAlertController
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/AFNetworking
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/AliyunOSSiOS
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/BACustomAlertView
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/MBProgressHUD
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/MJRefresh
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/Mantle
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/Masonry
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/Reachability
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/ReactiveObjC
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/SDAutoLayout
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/SDCycleScrollView
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/SDWebImage
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/TYPagerController
-L/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/TZImagePickerController
-L/Users/zhaoxinqiang/Desktop/iXueXi/Pods/JCore -L/Users/zhaoxinqiang/Desktop/iXueXi/iXueXi/Venders/AliPay -F/Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator
-F/Users/zhaoxinqiang/Desktop/iXueXi/Pods/AlipaySDK-2.0 -filelist /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build/Objects-normal/x86_64/iXueXi.LinkFileList
-mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build/Objects-normal/x86_64/iXueXi_lto.o
-Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lACAlertController -lAFNetworking -lAliyunOSSiOS -lBACustomAlertView -lMBProgressHUD -lMJRefresh -lMantle -lMasonry -lReachability -lReactiveObjC -lSDAutoLayout -lSDCycleScrollView -lSDWebImage -lTYPagerController -lTZImagePickerController -lc++ -ljcore-ios-1.1.1 -lresolv -lz -framework AlipaySDK -framework CFNetwork -framework CoreFoundation -framework CoreGraphics -framework CoreMotion
-framework CoreTelephony -framework Foundation -framework ImageIO -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit
-weak_framework UserNotifications -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build/iXueXi.app.xcent
-weak_framework NotificationCenter -framework SystemConfiguration -lresolv -lssl -lcrypto -framework MediaPlayer -framework AdSupport -lPods-iXueXi -Xlinker -dependency_info -Xlinker /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build/Objects-normal/x86_64/iXueXi_dependency_info.dat
-o /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/iXueXi.app/iXueXi
ld: library not found for -lssl clang: error: linker command failed
with exit code 1 (use -v to see invocation)
Sometimes after renaming a target or moving something, you can corrupt your pods installation. Luckily, there's an easier way to fix it than sudo make install's solution.
Run pod deintegrate to remove any trace of Cocoapods from your
project.
Run pod install again to add it all back
One of the possible solution in My case go to xcode Preferences -> Locations -> Derived Data then clean this folder and run again. it worked for me.
I had same problem once and resolved it by removing duplicate items from Target. Find any duplicate folder or file in your project and remove all duplicate from Project. That will solve your problem.

Segmentation Fault 11 at Archiving Obj C project

I'm working on an app, and at the moment to Archiving it, i get the Segmentation Fault 11 on X Code (I'm using xcode 7).
Already tried restart xcode, eliminate the only dependency (The cocoapod of google maps). The rare thing is that in te Simulator and in an iPad, the app compiles and runs normally, only when i try to Archive it, at the Linking step, it crashes.
This is the output of the error.
Ld /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/IntermediateBuildFilesPath/spapp.build/Release-iphoneos/spapp.build/Objects-normal/arm64/spapp normal arm64
cd /Users/maxclowreed/Documents/OnlyWebStudio/spapp
export IPHONEOS_DEPLOYMENT_TARGET=9.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/BuildProductsPath/Release-iphoneos -L/Users/maxclowreed/Documents/OnlyWebStudio/spapp/build/Debug-iphoneos -F/Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/BuildProductsPath/Release-iphoneos -F/Users/maxclowreed/Documents/OnlyWebStudio/spapp/Pods/GoogleMaps/Frameworks -filelist /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/IntermediateBuildFilesPath/spapp.build/Release-iphoneos/spapp.build/Objects-normal/arm64/spapp.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=9.1 -dead_strip -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/BuildProductsPath/Release-iphoneos -ObjC -lc++ -licucore -lz -framework AVFoundation -framework Accelerate -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreText -framework GLKit -framework GoogleMaps -framework ImageIO -framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -Xlinker -dependency_info -Xlinker /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/IntermediateBuildFilesPath/spapp.build/Release-iphoneos/spapp.build/Objects-normal/arm64/spapp_dependency_info.dat -o /Users/maxclowreed/Library/Developer/Xcode/DerivedData/spapp-gmcplcaxmebxtjcahseviqjhmvwc/Build/Intermediates/ArchiveIntermediates/spapp/IntermediateBuildFilesPath/spapp.build/Release-iphoneos/spapp.build/Objects-normal/arm64/spapp
ld: warning: directory not found for option '-L/Users/maxclowreed/Documents/OnlyWebStudio/spapp/build/Debug-iphoneos'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
I really appreciate your help.

AdMob error Linker command failed with exit code 1 (use -v to see invocation)

I've scanned the internet for all possible solutions to my problem, but I have not been able to find an answer. I've tried cleaning and reopening xcode. It works fine on the simulator, but I get the following error when I run it on the device :-
Ld /Users/krishwadhwana/Library/Developer/Xcode/DerivedData/Tricenter-comzufishylbsifovkzysenwtyyh/Build/Intermediates/ArchiveIntermediates/Straight\ Lines/IntermediateBuildFilesPath/Tricenter.build/Release-iphoneos/Tricenter.build/Objects-normal/arm64/Tricenter normal arm64
cd "/Users/krishwadhwana/Documents/Coding/My Development Main/Straight Lines"
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -L/Users/krishwadhwana/Library/Developer/Xcode/DerivedData/Tricenter-comzufishylbsifovkzysenwtyyh/Build/Intermediates/ArchiveIntermediates/Straight\ Lines/BuildProductsPath/Release-iphoneos -F/Users/krishwadhwana/Library/Developer/Xcode/DerivedData/Tricenter-comzufishylbsifovkzysenwtyyh/Build/Intermediates/ArchiveIntermediates/Straight\ Lines/BuildProductsPath/Release-iphoneos -F/Users/krishwadhwana/Documents/Coding/My\ Development\ Main/Straight\ Lines/SDKs/GoogleMobileAdsSdkiOS-7.6.0 -filelist /Users/krishwadhwana/Library/Developer/Xcode/DerivedData/Tricenter-comzufishylbsifovkzysenwtyyh/Build/Intermediates/ArchiveIntermediates/Straight\ Lines/IntermediateBuildFilesPath/Tricenter.build/Release-iphoneos/Tricenter.build/Objects-normal/arm64/Tricenter.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/krishwadhwana/Library/Developer/Xcode/DerivedData/Tricenter-comzufishylbsifovkzysenwtyyh/Build/Intermediates/ArchiveIntermediates/Straight\ Lines/BuildProductsPath/Release-iphoneos -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/krishwadhwana/Library/Developer/Xcode/DerivedData/Tricenter-comzufishylbsifovkzysenwtyyh/Build/Intermediates/ArchiveIntermediates/Straight\ Lines/IntermediateBuildFilesPath/Tricenter.build/Release-iphoneos/Tricenter.build/Objects-normal/arm64/Tricenter.swiftmodule -framework SystemConfiguration -framework StoreKit -framework MessageUI -framework EventKit -framework EventKitUI -framework CoreTelephony -framework CoreGraphics -framework GoogleMobileAds -framework AVFoundation -framework AudioToolbox -framework AdSupport -Xlinker -dependency_info -Xlinker /Users/krishwadhwana/Library/Developer/Xcode/DerivedData/Tricenter-comzufishylbsifovkzysenwtyyh/Build/Intermediates/ArchiveIntermediates/Straight\ Lines/IntermediateBuildFilesPath/Tricenter.build/Release-iphoneos/Tricenter.build/Objects-normal/arm64/Tricenter_dependency_info.dat -o /Users/krishwadhwana/Library/Developer/Xcode/DerivedData/Tricenter-comzufishylbsifovkzysenwtyyh/Build/Intermediates/ArchiveIntermediates/Straight\ Lines/IntermediateBuildFilesPath/Tricenter.build/Release-iphoneos/Tricenter.build/Objects-normal/arm64/Tricenter
ld: '/Users/krishwadhwana/Documents/Coding/My Development Main/Straight Lines/SDKs/GoogleMobileAdsSdkiOS-7.6.0/GoogleMobileAds.framework/GoogleMobileAds(GADBannerView.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
As the error tells you you must either enable or disable bitCode.
Go to targets-build settings and use the search bar to search for bitCode.
Most likely it is turned on so you should turn it off. Than clean project and you should be good to go.

Updated XCode from 7.1.1 to 7.2 causes warnings and build errors

I updated my XCode to 7.2 yesterday from 7.1.1 in order to have the new iOS 9.2 SDK. I didn't make any changes; still I got one warning stating this:
ld: warning: directory not found for option '-F/Users/andre/Privat/Prosjekter/Swift/my-app/My-app/build/Debug-iphoneos'
Long text:
Ld /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator/My-app.app/My-app normal x86_64
cd /Users/andre/Privat/Prosjekter/Swift/My-app/My-app
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/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/iPhoneSimulator9.2.sdk
-L/Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator -F/Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator -F/Users/andre/Privat/Prosjekter/Swift/My-app/My-app/Pods/GoogleMaps/Frameworks
-F/Users/andre/Privat/Prosjekter/Swift/My-app/My-app/build/Debug-iphoneos
-filelist /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Intermediates/My-app.build/Debug-iphonesimulator/My-app.build/Objects-normal/x86_64/My-app.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker
-objc_abi_version -Xlinker 2 -ObjC -lc++ -licucore -lz -framework AVFoundation -framework Accelerate -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreText -framework GLKit -framework GoogleMaps -framework ImageIO
-framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -framework youtube_ios_player_helper -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
-Xlinker -add_ast_path -Xlinker /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Intermediates/My-app.build/Debug-iphonesimulator/My-app.build/Objects-normal/x86_64/Wax_room.swiftmodule
-framework AddressBook -framework MapKit -framework CoreLocation -framework Pods -Xlinker -dependency_info -Xlinker /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Intermediates/My-app.build/Debug-iphonesimulator/My-app.build/Objects-normal/x86_64/My-app_dependency_info.dat
-o /Users/andre/Library/Developer/Xcode/DerivedData/My-app-fqeokpwxllwqeughpoprzldbnhiu/Build/Products/Debug-iphonesimulator/My-app.app/My-app
What is wrong? I don't understand the error message.
This is quite a common problem, I'm afraid. If you've already tried cleaning your project using Shift+Alt+Cmd+K and restarting Xcode, you might need to do the following:
Go to your project in the navigator pane (the bit on the left) then choose your target.
Click on the Build Settings tab.
Search for "Library" until you find Library Search Paths, then delete whatever you see there. Same goes for the Framework Search Paths. Lovely.
Now try again.
Update: See Michaël's comment below that you should check the frameworks path too – hurray for Xcode's almost impenetrable build system! :)
I had this problem yesterday and I solved it by removing and adding new scheme.
Here is how: link.

ld: framework not found "CustomFrameworkName"

I am trying to create a Custom Framework following this url
http://www.makeandbuild.com/blog/post/watchkit-with-shared-core-data
However When I am creating a custom framework called "DataStore"
Ld /Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Intermediates/TestScanner.build/Debug-iphonesimulator/TestScanner.build/Objects-normal/x86_64/TestScanner normal x86_64
cd "/Users/harshadkhedekar/Documents/Harshad/Projects/Sandvik/Start Value/17 Aug"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode-beta 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta 3.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode-beta\ 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode-beta\ 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Products/Debug-iphonesimulator -L/Users/harshadkhedekar/Documents/Harshad/Projects/Sandvik/Start\ Value/17\ Aug/TestScanner/RedLaserSDK -F/Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Products/Debug-iphonesimulator -F/Users/harshadkhedekar/Documents/Harshad/Projects/Sandvik/Start\ Value/17\ Aug/DataStore -filelist /Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Intermediates/TestScanner.build/Debug-iphonesimulator/TestScanner.build/Objects-normal/x86_64/TestScanner.LinkFileList -Xlinker -rpath -Xlinker "" -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=7.0 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -stdlib=libstdc++ -framework CoreLocation -framework Security -framework OpenGLES -liconv -framework Foundation -framework CoreVideo -framework CoreMedia -lRedLaserSDK_arm64 -framework DataStore -framework QuartzCore -framework AudioToolbox -framework AVFoundation -framework UIKit -framework CoreGraphics -framework CoreData -Xlinker -dependency_info -Xlinker /Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Intermediates/TestScanner.build/Debug-iphonesimulator/TestScanner.build/Objects-normal/x86_64/TestScanner_dependency_info.dat -o /Users/harshadkhedekar/Library/Developer/Xcode/DerivedData/TestScanner-fsxgnfdpdqvxdlasdbbjeurajlkj/Build/Intermediates/TestScanner.build/Debug-iphonesimulator/TestScanner.build/Objects-normal/x86_64/TestScanner
ld: framework not found DataStore
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried adding the Framework Search paths to "$(SRCROOT)/DataStore" and "$(inherited)". But still I am this issue is not fixed. Can I know the root cause of this issue. When I create a blank project and add custom framework to it, the blank project is build successfully. I am using Xcode 7 Beta 3 version.
Thanks

Resources