Xcode Linker Error: File not found - ios

I am currently using cocoapods in my Xcode Project to create a google sign in button for my app, and after going through the tutorial steps again, there are still errors showing up on build. Here are the error messages that are showing up on build. Would appreciate any help in fixing this problem.
Short Error Message(At the end of the console error message)
ld: file not found: /Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib_external.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Full Error Message(error message above the short error message):
Ld /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GunnOracleApplication.app/GunnOracleApplication normal x86_64
cd /Users/tarunaarora/Desktop/GunnOracleApplication
export IPHONEOS_DEPLOYMENT_TARGET=10.2
export PATH="/Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator -L/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/Firebase -F/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator -F/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GTMOAuth2 -F/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GTMSessionFetcher -F/Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/FirebaseAnalytics/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/FirebaseCore/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/FirebaseInstanceID/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/Google/Frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleAppUtilities/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleInterchangeUtilities/Frameworks/frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleSignIn/Frameworks -F/Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleSymbolUtilities/Frameworks/frameworks -filelist /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/Objects-normal/x86_64/GunnOracleApplication.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=10.2 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/Objects-normal/x86_64/GunnOracleApplication_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Users/tarunaarora/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/Objects-normal/x86_64/GunnOracleApplication.swiftmodule -ObjC -lc++ -lsqlite3 -lstdc++ -lz -framework AddressBook -framework AssetsLibrary -framework CoreFoundation -framework CoreLocation -framework CoreMotion -framework CoreText -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework GGLCore -framework GGLSignIn -framework GTMOAuth2 -framework GTMSessionFetcher -framework GoogleAppUtilities -framework GoogleInterchangeUtilities -framework GoogleSignIn -framework GoogleSymbolUtilities -framework GoogleToolboxForMac -framework MessageUI -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -lGGLCore -lGGLSignIn -lGIPNSURL+FIFE_external -lGSDK_Overload_external -lGTMOAuth2_external_external -lGTMOAuth2_internal_external -lGTMSessionFetcher_core_external -lGTMSessionFetcher_full_external -lGTMStackTrace_external -lGTM_AddressBook_external -lGTM_DebugUtils_external -lGTM_GTMURLBuilder_external -lGTM_KVO_external -lGTM_NSData+zlib_external -lGTM_NSDictionary+URLArguments_external -lGTM_NSScannerJSON_external -lGTM_NSStringHTML_external -lGTM_NSStringXML_external -lGTM_Regex_external -lGTM_RoundedRectPath_external -lGTM_StringEncoding_external -lGTM_SystemVersion_external -lGTM_UIFont+LineHeight_external -lGTM_core_external -lGTM_iPhone_external -lOpenInChrome_external -lProtocolBuffers_external -lSignIn_external -lc++ -lsqlite3 -lstdc++ -lz -framework AddressBook -framework AssetsLibrary -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework CoreMotion -framework CoreText -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework GoogleToolboxForMac -framework MessageUI -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -force_load /Users/tarunaarora/Desktop/GunnOracleApplication/Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib_external.a -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/GunnOracleApplication.app.xcent -framework Pods_GunnOracleApplication -Xlinker -dependency_info -Xlinker /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Intermediates/GunnOracleApplication.build/Debug-iphonesimulator/GunnOracleApplication.build/Objects-normal/x86_64/GunnOracleApplication_dependency_info.dat -o /Users/tarunaarora/Library/Developer/Xcode/DerivedData/GunnOracleApplication-epkumjpjfmvimzansuewkghneyzh/Build/Products/Debug-iphonesimulator/GunnOracleApplication.app/GunnOracleApplication
This is what my Xcode Project Podfile document and Pods show up like:
I am also currently using Xcode 8.2 beta
EDIT:
At the end I have including my solution as to what I did to fix the problem since most of the other ones had not worked. Feel free to look at the solution.

In your podfile, notice the difference between ` to '.
Once this is corrected, you can:
a. Clean the project (product -> clean)
b. Close XCode
c. Run pod install
d. Open yourProjectName.xcworkspace

Open Build Settings
Go to Framework Search Paths
This inherited & Project Directory will cause automatically detection from Pods, and it will not more create problem for you. Try to do so it will automatically detect the pod. Might be this can help

You should change the scheme name. Delete old scheme and add new one!
You can autocreate schemes for your targets by going to Product > Scheme > Manage Schemes and pressing "Autocreate Schemes Now"
Reference : this so post

After reading the solutions above, none of them had worked for me, so I started experimenting myself to see if there were any other solutions to this problem.
Here are the steps that had led me to solving this problem:
Recreating the Project. (I copied the files I needed and left out the ones I didn't need, so I only copied the Main.storyboard and Assets files)
Installing the Pods correctly. (I went through the tutorial I was using again and made sure I was installing the same exact pods he was installing. The project builded without any errors.)
Coding the ViewController.swift and Appdelegate files. (I watched the tutorial again, and carefully re-wrote the code that he was writing in the tutorial)
Building the project and understanding the errors. (I built the project using the correct scheme settings and then I had went through any errors shown in the console, and corrected them.) All errors that I had encountered, had solutions in the tutorial.
Now the project has been successfully created without any errors!

Related

Error from trying to build archive Xcode: clang: error: linker command failed with exit code 1 (use -v to see invocation)

I recently updated my Xcode and reinstalled an older version for an app that is built on an older version of Xcode.
So I now have Xcode 10 as well as Xcode 9.2 installed on my computer.
I have set the default in the command line to Xcode 9.2, I have changed the location to Xcode 9.2
I have tried to load Name.xcworkspace as opposed to Name.xcodeproj in finder.
I have tried deintegrating and reinstalling my Cocoapods
And yet I keep getting this error whenever I try to build an archive.
What else can I try? I need to push a new build to the App Store, and with this bug, I can't at all.
I am also noticing that Jump to Definition does not work either, so I am assuming there must be some relationship here.
That being said, development versions of the app build fine for the simulator.
What else could be going wrong here? How do I fix this?
I've seen some questions about this, but I have done everything those other questions ask
Full error log:
Ld /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy normal armv7
cd /Users/andy/Desktop/Projects/pinyada-final/candy/Candy
export IPHONEOS_DEPLOYMENT_TARGET=10.0
export PATH="/Applications/Xcode 9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode 9.2.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode\ 9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode\ 9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -L/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos -L/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/CardIO/CardIO -L/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/GoogleAnalytics/Libraries -L/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/PayPal-iOS-SDK/PayPalMobile -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/ARChromeActivity -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/AeroGearHttp -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/AeroGearOAuth2 -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Alamofire -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/AlamofireNetworkActivityIndicator -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Bolts -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/EAIntroView -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/EARestrictedScrollView -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/EmitterKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Eureka -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FBSDKCoreKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FBSDKLoginKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FBSDKShareKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FacebookCore -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FacebookLogin -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/FacebookShare -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/GMStepper -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/KINWebBrowser -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Koloda -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/PKHUD -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/SimpleKeychain -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/SnapKit -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/SwiftyJSON -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/TUSafariActivity -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/Unbox -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/UnboxedAlamofire -F/Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos/pop -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/AppsFlyerFramework -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/Button -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/FirebaseAnalytics/Frameworks -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/FirebaseCore/Frameworks -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/FirebaseInstanceID/Frameworks -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/Google/Frameworks -F/Users/andy/Desktop/Projects/pinyada-final/candy/Candy/Pods/Pushwoosh/Framework -filelist /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/BuildProductsPath/Release-iphoneos -Xlinker -final_output -Xlinker /Applications/Candy.app/Candy -fobjc-link-runtime -L/Applications/Xcode\ 9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy.swiftmodule -ObjC -lCardIO -lGoogleAnalytics -lPayPalMobile -lc++ -lopencv_core -lopencv_imgproc -lsqlite3 -lstdc++ -lz -framework ARChromeActivity -framework AVFoundation -framework Accelerate -framework AdSupport -framework AddressBook -framework AeroGearHttp -framework AeroGearOAuth2 -framework Alamofire -framework AlamofireNetworkActivityIndicator -framework AppsFlyerLib -framework AssetsLibrary -framework AudioToolbox -framework Bolts -framework Button -framework CoreData -framework CoreFoundation -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework CoreVideo -framework EAIntroView -framework EARestrictedScrollView -framework EmitterKit -framework Eureka -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FBSDKShareKit -framework FacebookCore -framework FacebookLogin -framework FacebookShare -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework GGLAnalytics -framework GGLCore -framework GMStepper -framework GoogleToolboxForMac -framework KINWebBrowser -framework Koloda -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework PKHUD -framework Pushwoosh -framework QuartzCore -framework Security -framework SimpleKeychain -framework SnapKit -framework StoreKit -framework SwiftyJSON -framework SystemConfiguration -framework TUSafariActivity -framework UIKit -framework Unbox -framework UnboxedAlamofire -framework iAd -framework pop -framework AdSupport -framework iAd -framework Pods_Candy -Xlinker -dependency_info -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy_dependency_info.dat -o /Users/andy/Library/Developer/Xcode/DerivedData/Candy-dcszzxlovxhznvggxxjbcwvojdkc/Build/Intermediates.noindex/ArchiveIntermediates/Candy/IntermediateBuildFilesPath/Candy.build/Release-iphoneos/Candy.build/Objects-normal/armv7/Candy
ld: warning: Some object files have incompatible Objective-C category definitions. Some category metadata may be lost. All files containing Objective-C categories should be built using the same compiler.
ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1000.11.45.2_0' Reader: '900.0.39.2_0')', using libLTO version 'LLVM version 9.0.0, (clang-900.0.39.2)' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Go to xCode > Prefrences > Locations, and delete all Archives and Derived Data, do a clean build and you are done.
When you build your project, Xcode invokes clang for Objective-C targets and swift/swiftc for Swift targets. Both of these compilers compile the app to an intermediate representation (IR), one of these IRs is bitcode. From this IR, a program called LLVM takes over and creates the binaries needed for x86 32 and 64 bit modes (for the simulator) and arm6/arm7/arm7s/arm64 (for the device). Normally, all of these different binaries are lumped together in a single file called a fat binary.
The ENABLE_BITCODE option cuts out this final step. It creates a version of the app with an IR bitcode binary. This has a number of nice features, but one giant drawback: it can't run anywhere. In order to get an app with a bitcode binary to run, the bitcode needs to be recompiled (maybe assembled or transcoded… I'm not sure of the correct verb) into an x86 or ARM binary.
Now, in your case some third party library must have bitcode disabled and hence you will also need you disable bitcode in your project. #Andrew

many errors after updating xcode

After updating to Xcode 9.4, I started to receive some errors and I cannot even build it now. The errors are Apple Mach-o link error, dsymutil error, ditto error. The details of dysmutil error are below;
GenerateDSYMFile /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app.dSYM /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica
cd /Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica
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/dsymutil /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica -o /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app.dSYM
error: cannot parse the debug map for "/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica": No such file or directory
The details of Mach-o error:
Ld /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica normal armv7
cd /Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica
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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -L/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Bolts -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/BoringSSL -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FBSDKCoreKit -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FBSDKLoginKit -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseAuth -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseCore -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseFirestore -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseMessaging -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseStorage -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/FirebaseUI -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/GTMOAuth2 -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/GTMSessionFetcher -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/GoogleToolboxForMac -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/GoogleUtilities -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Protobuf -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/SDWebImage -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/gRPC -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/gRPC-Core -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/gRPC-ProtoRPC -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/gRPC-RxLibrary -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/leveldb-library -F/Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/nanopb -F/Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica/Pods/FirebaseAnalytics/Frameworks -F/Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica/Pods/FirebaseInstanceID/Frameworks -F/Users/Serkan/Documents/Projects/lingustica/IOS/Code/Lingustica/Pods/GoogleAppMeasurement/Frameworks -FPods/GoogleSignIn/Frameworks -filelist /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Lingustica.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=9.1 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Lingustica_lto.o -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Lingustica.swiftmodule -ObjC -lc++ -lsqlite3 -lz -framework Bolts -framework CoreText -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FirebaseAnalytics -framework FirebaseAuth -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseFirestore -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseStorage -framework FirebaseUI -framework Foundation -framework GRPCClient -framework GTMOAuth2 -framework GTMSessionFetcher -framework GoogleAppMeasurement -framework GoogleSignIn -framework GoogleToolboxForMac -framework GoogleUtilities -framework MeasurementNanoPB -framework MobileCoreServices -framework ProtoRPC -framework Protobuf -framework RxLibrary -framework SDWebImage -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework grpc -framework leveldb -framework nanopb -framework openssl -ObjC -framework Pods_Lingustica -framework MessageUI -framework QuartzCore -framework StoreKit -Xlinker -dependency_info -Xlinker /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Lingustica_dependency_info.dat -o /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Products/Release-iphoneos/Lingustica.app/Lingustica
ld: file not found: /Users/Serkan/Library/Developer/Xcode/DerivedData/Lingustica-dtyxfwgrcmnnhzejeydnmtsnxwkt/Build/Intermediates.noindex/Lingustica.build/Release-iphoneos/Lingustica.build/Objects-normal/armv7/Sentence.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've tried followings but no result :(
1) Clean and build
2) Enable bitcode: no
3) Valid architectures: delete arm7 and arm64, only left armv7
4) pod update
Any help?
Please share your pod list, some of them have double info.plsit files that causes this problem in xcode 9, plus, try to go to "build pashes" and remove your info.plist from there, and one more question. what device and ios are you using?
Have you tried clearing your DerivedData folder? It is located in /Users/Your_User/Library/Developer/Xcode/DerivedData. After, just recompile your app, and see if it works.
You should also look for any duplicate files, SDKs, classes, variables, etc.
If this does not work and you are using Cocoa pods, you can run pod cache clear and then pod install to reinstall your pods.
Finally, if this doesn't work, and you have source control enabled, you can try to remove your local copy and then fetch your project again.
I’ve created another project and copy all the old files into the new one. I’ve installed the same pods. Nothing changed from the old project. Now it works.

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.

Unsolvable linker error when compiling app in Xcode

I've been working on an app for some time now and it had been giving me trouble compiling on an iPhone. Recently, it stopped compiling even on the simulator. I've browsed stack overflow and other websites for answers but I can't seem to find anything that resolves the issue. Below is the error I'm getting.
I've restored an earlier version of the entire app to see if that fixed the problem but it didn't seem to make any difference. I'm still getting the same error.
Can anyone help?
Ld /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Products/Debug-iphonesimulator/lynx.app/lynx normal x86_64
cd /Users/beauharper/Documents/Developer/lynx
export IPHONEOS_DEPLOYMENT_TARGET=9.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 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Products/Debug-iphonesimulator -F/Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Products/Debug-iphonesimulator -F/Users/beauharper/Documents/Developer/lynx/Pods/GoogleMaps/Frameworks -filelist /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Intermediates/lynx.build/Debug-iphonesimulator/lynx.build/Objects-normal/x86_64/lynx.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=9.2 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lBolts -lFBSDKCoreKit -lFBSDKLoginKit -lParse -lParseFacebookUtilsV4 -lParseTwitterUtils -lParseUI -lc++ -licucore -lsqlite3 -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreText -framework Foundation -framework GLKit -framework GoogleMaps -framework ImageIO -framework OpenGLES -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -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 -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Intermediates/lynx.build/Debug-iphonesimulator/lynx.build/Objects-normal/x86_64/lynx.swiftmodule -lPods -lPods-lynx -Xlinker -dependency_info -Xlinker /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Intermediates/lynx.build/Debug-iphonesimulator/lynx.build/Objects-normal/x86_64/lynx_dependency_info.dat -o /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Products/Debug-iphonesimulator/lynx.app/lynx
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
After further review and fiddling, and after reviewing a similar question referenced by #damian, it seems that the solution was this:
I separated the app and the test targets in the Podfile by using
target :App do
…
end
target :AppTests do
…
end
This resulted in two new products libPods-App.a and libPods-AppTests.a, respectively and they made the previous product libPods.a obsolete. I had to remove this product from the Link Binary With Libraries Section of the Build Phases configuration of both targets.
Thanks for the input everyone!
Try deleting your Derived Data folder, restarting Xcode and and running the project again. Go to Window -> Projects and navigate to your project. There should be mention of your derived data folder. Press Delete, restart Xcode and try building it again. See if that kicks it back into high gear again.

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.

Resources