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.
Related
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.
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
I get an error while I'm trying to archive a new version of my app and I cannot figurate out what it cames from and how to fix it.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The whole error here:
Ld /Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/app.app/app normal x86_64
cd /Users/adrianvidican/Downloads/MessengerX.1
export IPHONEOS_DEPLOYMENT_TARGET=9.3
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/iPhoneSimulator11.0.sdk -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/Bolts -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/FBSDKLoginKit -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/GTMOAuth2 -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/GTMSessionFetcher -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/IQAudioRecorderController -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/JSQMessagesViewController -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/JSQSystemSoundPlayer -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/MBProgressHUD -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/MGSwipeTableCell -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/ProgressHUD -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/RNCryptor-objc -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/RNGridMenu -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/Reachability -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/Realm -L/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/SCSiriWaveformView -L/Users/adrianvidican/Downloads/MessengerX.1/Pods/Realm/core -F/Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/Crashlytics/iOS -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/Fabric/iOS -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/FirebaseAnalytics/Frameworks -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/FirebaseAuth/Frameworks -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/FirebaseCore/Frameworks -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/FirebaseDatabase/Frameworks -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/FirebaseInstanceID/Frameworks -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/FirebaseStorage/Frameworks -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/GoogleSignIn/Frameworks -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/OneSignal/iOS_SDK/Framework -F/Users/adrianvidican/Downloads/MessengerX.1/Pods/SinchRTC -filelist /Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Intermediates.noindex/app.build/Debug-iphonesimulator/app.build/Objects-normal/x86_64/app.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=9.3 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Intermediates.noindex/app.build/Debug-iphonesimulator/app.build/Objects-normal/x86_64/app_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lBolts -lFBSDKCoreKit -lFBSDKLoginKit -lGTMOAuth2 -lGTMSessionFetcher -lGoogleToolboxForMac -lIQAudioRecorderController -lJSQMessagesViewController -lJSQSystemSoundPlayer -lMBProgressHUD -lMGSwipeTableCell -lProgressHUD -lRNCryptor-objc -lRNGridMenu -lReachability -lRealm -lSCSiriWaveformView -lc++ -licucore -lrealmcore-ios -lsqlite3 -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -framework CoreText -framework CoreVideo -framework Crashlytics -framework Fabric -framework FirebaseAnalytics -framework FirebaseAuth -framework FirebaseCore -framework FirebaseDatabase -framework FirebaseInstanceID -framework FirebaseStorage -framework Foundation -framework GLKit -framework GoogleSignIn -framework MapKit -framework MobileCoreServices -framework OneSignal -framework OpenGLES -framework QuartzCore -framework SafariServices -framework Security -framework Sinch -framework StoreKit -framework SystemConfiguration -framework UIKit -framework VideoToolbox -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 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Intermediates.noindex/app.build/Debug-iphonesimulator/app.build/app.app.xcent -framework PushKit -lPods-app -framework MessageUI -Xlinker -dependency_info -Xlinker /Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Intermediates.noindex/app.build/Debug-iphonesimulator/app.build/Objects-normal/x86_64/app_dependency_info.dat -o /Users/adrianvidican/Library/Developer/Xcode/DerivedData/app-dkxsgphkoxkxumbswtcudmwodhqz/Build/Products/Debug-iphonesimulator/app.app/app
ld: framework not found Sinch
clang: error: linker command failed with exit code 1 (use -v to see invocation)
you can try to trash everything that is in :
/Users/yourUsername/Library/Developer/Xcode/DerivedData
and rebuild. That worked for me.
Let's do the drill and try this:
Cmd + Shift + K
Cmd + Shift + Alt/Option + K
Build.
Sometimes you get this if you have converted your app to swift 4 and have dependancies. If you have added any pods or frameworks go to them and and in the build settings search for swift language and set them to 3.2.
It may be that your frameworks have not been updated to work with swift 4
Fixed mine by deleting all Sinch Frameworks in my projects and folders, deleting all contents in DerivedData, cleaning project.. downloading a new version from Sinch site and installing... Quit Xcode.. and restart Xcode. Run and build.
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.
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!