I am trying to add the necessary libraries for Firebase as indicated on the firebase page in the integration section without cocoapods for a swift project, and the steps that come in the read.me file inside the zip with all the libraries.
Once all the steps are done, I build the project after a clean and I get the following error:
Ld
/Users/mac/Library/Developer/Xcode/DerivedData/Medusa-fdyksfqolvwsiubuevxzsxcgcays/Build/Products/Debug-iphoneos/Medusa.app/Medusa
normal arm64 (in target 'Medusa' from project 'Medusa')
cd /Users/mac/Documents/Proyectos/Medusa/ios/desarrollo/branches/v1/Medusa
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-target arm64-apple-ios10.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk
-L/Users/mac/Library/Developer/Xcode/DerivedData/Medusa-fdyksfqolvwsiubuevxzsxcgcays/Build/Products/Debug-iphoneos
-F/Users/mac/Library/Developer/Xcode/DerivedData/Medusa-fdyksfqolvwsiubuevxzsxcgcays/Build/Products/Debug-iphoneos
-F/Users/mac/Documents/Proyectos/Medusa/ios/desarrollo/branches/v1/Medusa/Firebase
-filelist /Users/mac/Library/Developer/Xcode/DerivedData/Medusa-fdyksfqolvwsiubuevxzsxcgcays/Build/Intermediates.noindex/Medusa.build/Debug-iphoneos/Medusa.build/Objects-normal/arm64/Medusa.LinkFileList
-Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -Xlinker -object_path_lto
-Xlinker /Users/mac/Library/Developer/Xcode/DerivedData/Medusa-fdyksfqolvwsiubuevxzsxcgcays/Build/Intermediates.noindex/Medusa.build/Debug-iphoneos/Medusa.build/Objects-normal/arm64/Medusa_lto.o
-Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos
-L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/mac/Library/Developer/Xcode/DerivedData/Medusa-fdyksfqolvwsiubuevxzsxcgcays/Build/Intermediates.noindex/Medusa.build/Debug-iphoneos/Medusa.build/Objects-normal/arm64/Medusa.swiftmodule
-ObjC -framework GoogleUtilities /Users/mac/Library/Developer/Xcode/DerivedData/Medusa-fdyksfqolvwsiubuevxzsxcgcays/Build/Products/Debug-iphoneos/SQLite.framework/SQLite
-framework GoogleAppMeasurement -framework CoreGraphics -framework UserNotifications -framework FirebaseMessaging -framework
MobileCoreServices -framework FirebaseCore -framework Security
-framework Foundation -framework SystemConfiguration -framework FirebaseAnalytics -framework nanopb -framework
GoogleDataTransportCCTSupport -framework UIKit -framework
FirebaseCoreDiagnostics -framework FIRAnalyticsConnector -framework
GoogleDataTransport -framework EventKit -framework AssetsLibrary
-framework FirebaseInstanceID -framework Protobuf -Xlinker -dependency_info -Xlinker /Users/mac/Library/Developer/Xcode/DerivedData/Medusa-fdyksfqolvwsiubuevxzsxcgcays/Build/Intermediates.noindex/Medusa.build/Debug-iphoneos/Medusa.build/Objects-normal/arm64/Medusa_dependency_info.dat -o /Users/mac/Library/Developer/Xcode/DerivedData/Medusa-fdyksfqolvwsiubuevxzsxcgcays/Build/Products/Debug-iphoneos/Medusa.app/Medusa
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SKProductsRequest", referenced from:
objc-class-ref in GoogleAppMeasurement(APMProductsRequest_9ec051498f83cad93a58cf3f308ab9b6.o)
"_OBJC_CLASS_$_SKPaymentQueue", referenced from:
objc-class-ref in GoogleAppMeasurement(APMAnalytics_cb405cb8c995318bf496bd8f1041864f.o)
ld: symbol(s) not found for architecture arm64 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
I've been looking for this error and it's related to the library StoreKit.framework but my application does not need in-app purchases.
Then I put some screenshots of how libraries are added
General Configuration
Build Phase Configuration
project structure
Any suggestions??
StoreKit is a dependency of AppMeasurement and should be brought in from the modulemap in the GoogleAppMeasurement.framework that you're installing.
You can work around the issue by explicitly adding StoreKit in the Link Binary with Libraries Build Phase in Xcode.
Related
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.
After building the project in ionic v1. I copied project to Mac Pc.
In Mac Pc i deintegrated Podfile and removed Podfile then did pod install.
After that i cleaned project.
When i try to build app it shows linker error.
guys any help appreciated.
Here is my log:
Ld /Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Intermediates.noindex/Safences\ Resident.build/Debug-iphoneos/Safences\ Resident.build/Objects-normal/arm64/Safences\ Resident normal arm64
cd /Users/inayath/Desktop/safencesResidentAppAndroid/platforms/ios
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -L/Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Products/Debug-iphoneos -L/Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Products/Debug-iphoneos/GoogleToolboxForMac -L/Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Products/Debug-iphoneos/Protobuf -L/Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Products/Debug-iphoneos/nanopb -F/Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Products/Debug-iphoneos -F/Users/inayath/Desktop/safencesResidentAppAndroid/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/inayath/Desktop/safencesResidentAppAndroid/platforms/ios/Pods/FirebaseCore/Frameworks -F/Users/inayath/Desktop/safencesResidentAppAndroid/platforms/ios/Pods/FirebaseInstanceID/Frameworks -F/Users/inayath/Desktop/safencesResidentAppAndroid/platforms/ios/Pods/FirebaseMessaging/Frameworks -filelist /Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Intermediates.noindex/Safences\ Resident.build/Debug-iphoneos/Safences\ Resident.build/Objects-normal/arm64/Safences\ Resident.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Intermediates.noindex/Safences\ Resident.build/Debug-iphoneos/Safences\ Resident.build/Objects-normal/arm64/Safences\ Resident_lto.o -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lGoogleToolboxForMac -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework AddressBook -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseNanoPB -framework StoreKit -framework SystemConfiguration /Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Products/Debug-iphoneos/libCordova.a -weak_framework AddressBook -weak_framework AddressBookUI -weak_framework SystemConfiguration -framework CoreTelephony -weak_framework MessageUI -lPods-Safences\ Resident -Xlinker -dependency_info -Xlinker /Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Intermediates.noindex/Safences\ Resident.build/Debug-iphoneos/Safences\ Resident.build/Objects-normal/arm64/Safences\ Resident_dependency_info.dat -o /Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Intermediates.noindex/Safences\ Resident.build/Debug-iphoneos/Safences\ Resident.build/Objects-normal/arm64/Safences\ Resident
duplicate symbol _OBJC_CLASS_$_CDVLogger in:
/Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Intermediates.noindex/Safences Resident.build/Debug-iphoneos/Safences Resident.build/Objects-normal/arm64/CDVLogger.o
/Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Products/Debug-iphoneos/libCordova.a(CDVLogger.o)
duplicate symbol _OBJC_METACLASS_$_CDVLogger in:
/Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Intermediates.noindex/Safences Resident.build/Debug-iphoneos/Safences Resident.build/Objects-normal/arm64/CDVLogger.o
/Users/inayath/Library/Developer/Xcode/DerivedData/Safences_Resident-bohfyzovmoapaxbnzlsayigtqxpl/Build/Products/Debug-iphoneos/libCordova.a(CDVLogger.o)
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
From here
If you use ios 4.5 or higher you need to remove the plugin "cordova-plugin-console" because ios (platform) 4.5 or higher add this plugin by default so you end up with a duplicate error.
ionic cordova plugin remove cordova-plugin-console
should solve your issue.
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 have taken over a Xcode project from another developer and trying to get the code up and running on my local computer.
I am getting this error:
Undefined symbols for architecture x86_64:
This is my log file from Xcode:
Ld
/Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Products/Debug-iphonesimulator/TheBridesOffice.app/TheBridesOffice
normal x86_64
cd "/Users/etiennelouw/Downloads/App (1)/TheBridesOffice"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk
-L/Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Products/Debug-iphonesimulator
-F/Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Products/Debug-iphonesimulator
-F/Users/etiennelouw/Downloads/App\ (1)/TheBridesOffice/TheBridesOffice/Class/Addition/Parse
-F/Users/etiennelouw/Downloads/App\ (1)/TheBridesOffice/TheBridesOffice/Class/Addition/Facebook
-F/Users/etiennelouw/Documents/FacebookSDK -filelist /Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Intermediates/TheBridesOffice.build/Debug-iphonesimulator/TheBridesOffice.build/Objects-normal/x86_64/TheBridesOffice.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=7.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -lsqlite3 -framework Bolts -framework MobileCoreServices -framework FBSDKShareKit -framework ParseCrashReporting -framework
FBSDKMessengerShareKit -framework FBAudienceNetwork -framework
FBSDKCoreKit -framework ParseFacebookUtilsV4 -framework FBSDKLoginKit
-framework Parse -framework SystemConfiguration -framework AudioToolbox -framework CoreImage -framework ParseFacebookUtils
-framework QuartzCore -framework ParseUI -Xlinker -dependency_info -Xlinker /Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Intermediates/TheBridesOffice.build/Debug-iphonesimulator/TheBridesOffice.build/Objects-normal/x86_64/TheBridesOffice_dependency_info.dat
-o /Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Products/Debug-iphonesimulator/TheBridesOffice.app/TheBridesOffice
Undefined symbols for architecture x86_64:
"_FBSDKAppEventNameFBSessionNativeAppSwitchLoginDialogResult",
referenced from:
-[FBSDKLoginManagerLogger logNativeAppDialogResult:dialogDuration:] in
FBSDKLoginKit(FBSDKLoginManagerLogger.o)
"_FBSDKDialogConfigurationNameLogin", referenced from:
-[FBSDKLoginManager logInWithBehavior:serverConfiguration:serverConfigurationLoadError:]
in FBSDKLoginKit(FBSDKLoginManager.o)
-[FBSDKLoginManager(Native) performBrowserLogInWithParameters:handler:] in
FBSDKLoginKit(FBSDKLoginManager.o)
"_FBSDKMonotonicTimeGetCurrentSeconds", referenced from:
-[FBSDKLoginManagerLogger parametersWithTimeStampAndClientState:forAuthMethod:] in
FBSDKLoginKit(FBSDKLoginManagerLogger.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Here is what I have under Architecture:
Architectur
Here is my Framework files that I have imported following the facebook SDK getting started guide:
Framework
It seems that your project missing dependency while linking because FBSDKLoginKit.framework is missing on linking stage.
Try to recheck you configuration via Facebook Guide - Getting Started with the Facebook SDK for iOS.
You can try rm -rf ~/Library/Developer/Xcode/DerivedData/*
I am using facebook sdk for login in a swift app. The sdk is working fine when I test on a device but on simulator it shows some duplicate symbols. I have checked compiled sources in build phases. There are no duplicate entries.
I have included fbsdkloginkit and fbsdkcorekit in the project.
This is the begining of the error message:
Ld
/Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Products/Debug-iphonesimulator/Company.Social.app/Company.Social
normal i386
cd /Users/asidhu/Desktop/Projects/Company.Social
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk
-L/Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Products/Debug-iphonesimulator
-F/Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Products/Debug-iphonesimulator
-F/Users/asidhu/Desktop/Projects/Company.Social -F/Users/asidhu/Downloads/FacebookSDKs-iOS-20150910 -filelist /Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Intermediates/Company.Social.build/Debug-iphonesimulator/Company.Social.build/Objects-normal/i386/Company.Social.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
-Xlinker -add_ast_path -Xlinker /Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Intermediates/Company.Social.build/Debug-iphonesimulator/Company.Social.build/Objects-normal/i386/Company_Social.swiftmodule
-mios-simulator-version-min=8.0 -framework StoreKit -framework UIKit -framework FBSDKLoginKit -framework SystemConfiguration -framework Security -framework MediaPlayer -framework CoreText -framework
CoreGraphics -framework CoreMotion -framework GoogleSignIn -framework
CoreLocation -framework Foundation -framework FBSDKCoreKit -framework
AssetsLibrary -framework AddressBook -Xlinker -dependency_info
-Xlinker /Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Intermediates/Company.Social.build/Debug-iphonesimulator/Company.Social.build/Objects-normal/i386/Company.Social_dependency_info.dat
-o /Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Products/Debug-iphonesimulator/Company.Social.app/Company.Social
duplicate symbol _llvm.cmdline in:
/Users/asidhu/Downloads/FacebookSDKs-iOS-20150910/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
/Users/asidhu/Downloads/FacebookSDKs-iOS-20150910/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o)
duplicate symbol _llvm.embedded.module in:
/Users/asidhu/Downloads/FacebookSDKs-iOS-20150910/FBSDKLoginKit.framework/
This is the end of the error message:
FBSDKLoginKit(FBSDKLoginButton.o)
/Users/asidhu/Downloads/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKMaleSilhouetteIcon.o)
ld: 154 duplicate symbols for architecture i386 clang: error: linker
command failed with exit code 1 (use -v to see invocation)