Linker command failed with exit code 1......ios project error - ios

I am working with an XCode project which was fine yesterday but today without any change in code I am getting following compile error.
Any suggestion? How can i fix it?
Ld DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator/Project\ Sounds.app/Project\ Sounds normal i386
cd "/Users/admin/Desktop/App 2"
export IPHONEOS_DEPLOYMENT_TARGET=6.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/iPhoneSimulator8.2.sdk -L/Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator -L/Users/admin/Desktop/App\ 2/Classes/ListControl/OELib -L/Users/admin/Desktop/App\ 2/../../../iPad/API\'s/Google\ Analytics\ SDK/Library -L/Users/admin/Desktop/App\ 2/Classes/Analytic -LLibrary -F/Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator -filelist /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Intermediates/OEiPhone.build/Debug-iphonesimulator/Project\ Sounds.build/Objects-normal/i386/Project\ Sounds.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -licucore -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework CoreMedia -framework AVFoundation -framework NewsstandKit -lsqlite3.0 -lz.1.2.5 -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -framework QuartzCore -framework SystemConfiguration -lGoogleAnalytics_NoThumb -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework CoreText -framework CoreLocation -framework MapKit -framework StoreKit -lxml2 -lGoogleAnalytics -Xlinker -dependency_info -Xlinker /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Intermediates/OEiPhone.build/Debug-iphonesimulator/Project\ Sounds.build/Objects-normal/i386/Project\ Sounds_dependency_info.dat -o /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator/Project\ Sounds.app/Project\ Sounds
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/Classes/ListControl/OELib'
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/../../../iPad/API's/Google Analytics SDK/Library'
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/Classes/Analytic'
ld: warning: directory not found for option '-LLibrary'
ld: library not found for -lGoogleAnalytics_NoThumb
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I had the same problem.
Make sure to remove the library in your
Project -> Build Phases -> Link Binary With Libraries
if you removed it or add it if it's missing.

This path
/Users/admin/Desktop/App 2/../../../iPad/API's/Google Analytics SDK/Library
Is pointing at a Library on your desktop. Is that library still there, or did you move/delete it?

Related

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

I know this question has been asked a lot of times and there are many probable answer, but none of them helped me to get over my problem.
Here some possible solution's which I am trying out.
Solution1 Solution2 and many suggested solutions on the site.
I am also using Notification service & Notification Content Extension in my project.Also I am using firebase for push notifications.
From the time since I have integrated .xcconfig files to manage staging and production configuarations using This tutorial all the problems have started.
Showing Recent Messages
Ld /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/NotificationContent.appex/NotificationContent normal x86_64
cd /Users/vipulthaware/HealthDekho/Projects/B2C/App/Code
export IPHONEOS_DEPLOYMENT_TARGET=12.2
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 -Xlinker -rpath -Xlinker /usr/lib/swift -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -L/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator -L/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FreshchatSDK/FreshchatSDK -L/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FreshchatSDK -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AMPopTip -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AWSCore -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AWSS3 -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Alamofire -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AlamofireSwiftyJSON -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Arcane -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/BSErrorMessageView -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Bolts -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Cosmos -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/CreditCardValidator -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/DynamicBlurView -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FeedKit -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseCore -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseDynamicLinks -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseMessaging -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/GoogleUtilities -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/IQKeyboardManagerSwift -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/ImageSlideshow -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/JVFloatLabeledTextField -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/KVNProgress -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/MarqueeLabel -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Moya -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/NKVPhonePicker -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/OpalImagePicker -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/PopupDialog -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Protobuf -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/RadioButton -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/ReachabilitySwift -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Result -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SBTickerView -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SDWebImage -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SVProgressHUD -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Shimmer -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SwiftValidator -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SwiftyJSON -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/UPCarouselFlowLayout -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/ViewPager-Swift -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/WMGaugeView -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/libwebp -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/lottie-ios -F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/nanopb -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/AppsFlyerFramework -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/Crashlytics/iOS -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FBSDKMarketingKit -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/Fabric/iOS -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FirebaseAnalytics/Frameworks -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/FirebaseInstanceID/Frameworks -F/Users/vipulthaware/HealthDekho/Projects/B2C/App/Code/Pods/GoogleAppMeasurement/Frameworks -filelist /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/Objects-normal/x86_64/NotificationContent.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/../../Frameworks -mios-simulator-version-min=12.2 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/Objects-normal/x86_64/NotificationContent_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fapplication-extension -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/Objects-normal/x86_64/NotificationContent.swiftmodule -ObjC -lFDFreshchatSDK -lc++ -lsqlite3 -lz -framework AMPopTip -framework AVFoundation -framework AWSCore -framework AWSS3 -framework Accelerate -framework AdSupport -framework Alamofire -framework AlamofireSwiftyJSON -framework AppsFlyerLib -framework Arcane -framework AssetsLibrary -framework AudioToolbox -framework BSErrorMessageView -framework Bolts -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework Cosmos -framework Crashlytics -framework CreditCardValidator -framework DynamicBlurView -framework FBSDKCoreKit -framework FBSDKMarketingKit -framework FIRAnalyticsConnector -framework Fabric -framework FeedKit -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDynamicLinks -framework FirebaseInstanceID -framework FirebaseMessaging -framework Foundation -framework GLKit -framework GoogleAppMeasurement -framework GoogleUtilities -framework IQKeyboardManagerSwift -framework ImageIO -framework ImageSlideshow -framework JVFloatLabeledTextField -framework KVNProgress -framework Lottie -framework MarqueeLabel -framework MessageUI -framework Moya -framework NKVPhonePicker -framework OpalImagePicker -framework Photos -framework PopupDialog -framework Protobuf -framework QuartzCore -framework RadioButton -framework ReachabilitySwift -framework Result -framework SBTickerView -framework SDWebImage -framework SVProgressHUD -framework Security -framework Shimmer -framework StoreKit -framework SwiftValidator -framework SwiftyJSON -framework SystemConfiguration -framework UIKit -framework UPCarouselFlowLayout -framework ViewPager_Swift -framework WMGaugeView -framework iAd -framework libwebp -framework nanopb -weak_framework Accounts -weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework CoreLocation -weak_framework Foundation -weak_framework QuartzCore -weak_framework Security -weak_framework Social -weak_framework UIKit -weak_framework WebKit -e _NSExtensionMain -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/NotificationContent.appex-Simulated.xcent -framework UserNotificationsUI -framework UserNotifications -Xlinker -dependency_info -Xlinker /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Intermediates.noindex/B2C.build/Debug-iphonesimulator/NotificationContent.build/Objects-normal/x86_64/NotificationContent_dependency_info.dat -o /Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/NotificationContent.appex/NotificationContent
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AWSCore'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/AWSS3'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Bolts'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FBSDKCoreKit'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FeedKit'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseCore'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseDynamicLinks'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/FirebaseMessaging'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/GoogleUtilities'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/JVFloatLabeledTextField'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Moya'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/OpalImagePicker'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/Protobuf'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/RadioButton'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SBTickerView'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SDWebImage'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/SVProgressHUD'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/UPCarouselFlowLayout'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/ViewPager-Swift'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/WMGaugeView'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/libwebp'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/lottie-ios'
ld: warning: directory not found for option '-F/Users/vipulthaware/Library/Developer/Xcode/DerivedData/B2C-bqqgcxfxnnaoajdltkdbsssioail/Build/Products/Debug-iphonesimulator/nanopb'
ld: framework not found AMPopTip
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please Suggest what is the possible solution or have I done any thing wrong,
please let me know if any extra explanation or detail is required my side
Follow these steps to find a solution.
From the logs I have posted above one thing is clear that the problem in my case was with Notification Content & Notification Service Extension targets
So following This Link based on -L or -R flag you are getting in the logs,
Delete the paths added for Library Search Path or Framework Search Paths as may be required.
For my case I had to do this for Notification Service & Notification Content Extension targets
This may cause more error where you might start getting errors for other framework or search path for same target (which was the case with me),
If such thing happen for any Target then try to delete the Other Linker Flags for the targets you are getting the error.
In my case deleting the Library Search Path & Framework Search Paths as well as Other Linker Flags Did the trick for me.

"Linker command failed with exit code 1" (Xcode 7, targeting iOS 9)

When I build my project targeting the simulator, it builds fine. However when I target my device running iOS 9, I receive the following error:
Linker command failed with exit code 1
Along with a Directory not found for option warning.
How can I solve this?
Edit : Full Error log
Ld /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/xxxxx\ xxxx.app/xxxxx\ xxxx normal x86_64
cd "/Users/gbs-mac/Desktop/Swapnil/xxxxx xxxxx"
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/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.0.sdk -L/Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator -F/Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator -F/Users/sumitghosh/Documents/facebookSDK -F/Users/gbs-mac/Desktop/Swapnil/xxxxxx\ xxxxx/FacebookSDK -F/Users/gbs-mac/Desktop/Swapnil/xxxxxx\ xxxxx/xxxxxx -xxxxx -F/Users/gbs-mac/Desktop/Swapnil/xxxxxx\ xxxxxx -filelist /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Intermediates/Celebrity\ Face.build/Debug-iphonesimulator/xxxxxx\ xxxx.build/Objects-normal/x86_64/xxxxx\ xxxxx.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=7.0 -bundle_loader /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/MyExistingApp.app/MyExistingApp -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -framework StoreKit -framework EventKit -framework EventKitUI -framework CFNetwork -framework CoreTelephony -framework CoreMedia -framework CoreGraphics -framework SystemConfiguration -framework AVFoundation -framework AdSupport -framework AudioToolbox -framework iAd -framework Security -framework AssetsLibrary -framework MobileCoreServices -framework CoreLocation -framework MediaPlayer -framework MessageUI -framework QuartzCore -framework FBSDKShareKit -framework UIKit -framework GoogleMobileAds -framework FBSDKCoreKit -framework FBSDKLoginKit -Xlinker -dependency_info -Xlinker /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Intermediates/xxxxxx\ xxxx.build/Debug-iphonesimulator/xxxxxxx\ xxxx.build/Objects-normal/x86_64/xxxxx\ Face_dependency_info.dat -o /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/Celebrity\ Face.app/xxxxxx\ xxxxxx
ld: warning: directory not found for option '-F/Users/sumitghosh/Documents/facebookSDK'
ld: warning: directory not found for option '-F/Users/gbs-mac/Desktop/Swapnil/xxxxxxx xxxxxx/xxxxxx'
ld: warning: directory not found for option '-FFace'
ld: file not found: /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/MyExistingApp.app/MyExistingApp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
In your project's build setting remove everything from Framework Search paths and Library Search paths. Clean and build.
In your menu bar, go to Product > Clean and click it. Then try rebuilding the project.

openFrameworks for iOS become Apple mach-O Linker Error

When I build an example project in openFrameworks for iOS, it becomes Apple mach-O Linker Error though I do not do anything to the project.
Whichever sample project I choose, it will be the same result.
How do I fix it?
The followings is whole error message.
Ld /Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Products/Debug-iphonesimulator/emptyExample.app/emptyExample normal i386
cd /Applications/of_v0.8.4_ios_release/examples/ios/emptyExample
export IPHONEOS_DEPLOYMENT_TARGET=3.1
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/iPhoneSimulator8.0.sdk -L/Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Products/Debug-iphonesimulator -F/Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Products/Debug-iphonesimulator -filelist /Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Intermediates/emptyExample.build/Debug-iphonesimulator/emptyExample.build/Objects-normal/i386/emptyExample.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC ../../../libs/FreeImage/lib/osx/freeimage.a ../../../libs/freetype/lib/ios/freetype.a ../../../libs/FreeImage/lib/ios/freeimage.a ../../../libs/poco/lib/ios/PocoNet.a ../../../libs/poco/lib/ios/PocoNetSSL.a ../../../libs/poco/lib/ios/PocoCrypto.a ../../../libs/poco/lib/ios/PocoXML.a ../../../libs/poco/lib/ios/PocoZip.a ../../../libs/poco/lib/ios/PocoUtil.a ../../../libs/poco/lib/ios/PocoFoundation.a ../../../libs/tess2/lib/ios/tess2.a ../../../libs/glu/lib/ios/glu.a ../../../libs/glu/lib/ios/glu-ios.a ../../../libs/openssl/lib/ios/ssl.a ../../../libs/openssl/lib/ios/crypto.a -stdlib=libstdc++ -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=3.1 -framework CoreVideo /Applications/of_v0.8.4_ios_release/libs/openFrameworksCompiled/lib/ios/libofxiOS_iphonesimulator_Debug.a -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -framework AudioToolbox -framework OpenAL -framework CoreLocation -framework CoreGraphics -framework AVFoundation -framework CoreMedia -framework MapKit -Xlinker -dependency_info -Xlinker /Users/xxxxxx/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Intermediates/emptyExample.build/Debug-iphonesimulator/emptyExample.build/Objects-normal/i386/emptyExample_dependency_info.dat -o /Users/teruyakusumoto/Library/Developer/Xcode/DerivedData/emptyExample-ghwshtlvcvsjalcvfnqzpyjfmhhc/Build/Products/Debug-iphonesimulator/emptyExample.app/emptyExample
ld: -pie can only be used when targeting iOS 4.2 or later
clang: error: linker command failed with exit code 1 (use -v to see invocation)
As the 2nd to last line in the error message indicates, it looks like you need to set your "Deployment target" to iOS 4.2 or later. It looks you're trying to build for iOS 3.1, but a library is using API's that require 4.2 or newer.

Error while running the existing project on xcode5.1

I have updated my xcode to xcode5.1 and I can't run the existing project now. Below is the error I am getting. I have added the static library within this project. Also I am using external framework, IOKit framework. I don't understand why am I getting this error. It was working perfectly with xcode5.0.2. Error is below:
Ld /Users/xxxxx/armv7/xxx normal armv7
cd /Users/xxxx
export IPHONEOS_DEPLOYMENT_TARGET=6.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/iPhoneOS7.1.sdk -L/Users/xxx-cmjabkmgfntwxeedtebsizdngzry/Build/Products/Debug-iphoneos -L/Users/xxx -F/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-cmjabkmgfntwxeedtebsizdngzry/Build/Products/Debug-iphoneos -F/Users/xxxcmjabkmgfntwxeedtebsizdngzry/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxx.LinkFileList -dead_strip -ObjC -fobjc-link-runtime -miphoneos-version-min=6.0 -lIOKit -lLIBRARY_TEST -lsqlite3 -framework SystemConfiguration -framework CoreMedia -lxml2.2 -lxml2 -framework MobileCoreServices -framework AVFoundation -framework AudioToolbox -framework CoreMotion -framework MediaPlayer -framework QuartzCore -framework CoreTelephony -framework CoreGraphics -llockdown -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/xxx-cmjabkmgfntwxeedtebsizdngzry/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxx_dependency_info.dat -o /Users/xxx-cmjabkmgfntwxeedtebsizdngzry/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxx
Please consider xxx is the path of my project.
ld: library not found for -lIOKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried changing all the settings related to Architectures but no luck. Any help appreciated.
Manually add library search path to your finder where you've added libs.
Project setting -> Build setting -> library search path ->
"../ProjectDirectory/Static library path"

Xcode Build error with one spec. Library: ld: library not found for -lzbar

I checked out a working app from SVN. Want to test it in iphone simulator. But the building failed.
Ld /Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator/MySoftware.de.app/MySoftware.de normal i386
cd /Users/ludwig/MySoftware_SVN/MySoftware/trunk/MobileClient/iOS/MySoftware
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv 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/iPhoneSimulator6.1.sdk -L/Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator -L/Users/ludwig/MySoftware_SVN/MySoftware/trunk/MobileClient/iOS/MySoftware/ZBarSDK -L/Users/ludwig/MySoftware_SVN/MySoftware/trunk/MobileClient/iOS/MySoftware -F/Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator -filelist /Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Intermediates/MySoftware.build/Debug-iphonesimulator/MySoftware.build/Objects-normal/i386/MySoftware.de.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -framework Security -framework MessageUI -framework AudioToolbox -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreData -framework CoreMedia -framework CoreVideo -framework QuartzCore -liconv -framework AVFoundation -lzbar -o /Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator/MySoftware.de.app/MySoftware.de
ld: library not found for -lzbar
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can somebody help? Or need more information?!
I am not able to add a screenshot..
in the overview of the "other sources" there is the dict ZBarSDK and inside there is a headers and a resources folder and a file:
libzbar.a but the filename is in Red!? and i am not able to open it. Is this maybe the reason?
There's a particular way to install ZBAR. Follow these instructions : http://zbar.sourceforge.net/iphone/sdkdoc/install.html

Resources