I have a problem compiling and running the IOS application from Xcode. I received a message like this about linking files.
> Ld /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Objects-normal/i386/Photo\ Collage\ -\ for\ Facebook normal i386
cd "/Users/Simon/Desktop/Project/Projects/Photo Collage"
export IPHONEOS_DEPLOYMENT_TARGET=4.3
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.1.sdk
-L/Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Products/Debug-iphonesimulator
-F/Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Products/Debug-iphonesimulator
-F/Users/Simon/Desktop/Project/Tools/GoogleMobileAdsSdkiOS-7.0.0 -F/Users/Simon/Desktop/FacebookSDK -F/Users/Simon/Documents/FacebookSDK -filelist /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Objects-normal/i386/Photo\ Collage\ -\ for\ Facebook.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC
-lsqlite3.0 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Photo\ Collage\ -\ for\ Facebook.app.xcent -framework FacebookSDK -framework AVFoundation -framework CoreTelephony -framework EventKit -framework EventKitUI -framework AudioToolbox -framework CoreGraphics -framework MessageUI -framework StoreKit -framework SystemConfiguration
-framework GoogleMobileAds -ledit.3.0 -weak_framework Accounts -weak_framework AdSupport -framework AssetsLibrary -framework CoreData -framework CoreLocation -framework iAd -framework MapKit -framework QuartzCore -weak_framework Social -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Objects-normal/i386/Photo\ Collage\ -\ for\ Facebook_dependency_info.dat -o /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Objects-normal/i386/Photo\ Collage\ -\ for\ Facebook
Undefined symbols for architecture i386: "_OBJC_CLASS_$_GAI", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in RootViewController.o "_OBJC_CLASS_$_GAITrackedViewController", referenced from:
_OBJC_CLASS_$_CategoryViewController in CategoryViewController.o
_OBJC_CLASS_$_ImageViewController in ImageViewController.o
_OBJC_CLASS_$_RootViewController in RootViewController.o "_OBJC_METACLASS_$_GAITrackedViewController", referenced from:
_OBJC_METACLASS_$_CategoryViewController in CategoryViewController.o
_OBJC_METACLASS_$_ImageViewController in ImageViewController.o
_OBJC_METACLASS_$_RootViewController in RootViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sorry i no the Question maybe confusing but i have no idea what these error related to only know it was a linking problem.
Please help
After adding the analytics pkg , these errors shown up
Ld /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Objects-normal/i386/Photo\ Collage\ -\ for\ Facebook normal i386
cd "/Users/Simon/Desktop/Project/Projects/Photo Collage"
export IPHONEOS_DEPLOYMENT_TARGET=4.3
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.1.sdk -L/Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Products/Debug-iphonesimulator -L/Users/Simon/Desktop/Project/Tools/GoogleAdMobAdsSdkiOS-6.4.2\ OLD/Add-ons/GoogleAnalyticsiOS_2.0beta4/Library -L/Users/Simon/Desktop/Project/Tools/GoogleAnalyticsServicesiOS_3.10 -F/Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Products/Debug-iphonesimulator -F/Users/Simon/Desktop/Project/Tools/GoogleMobileAdsSdkiOS-7.0.0 -F/Users/Simon/Documents/FacebookSDK -filelist /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Objects-normal/i386/Photo\ Collage\ -\ for\ Facebook.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lsqlite3.0 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Photo\ Collage\ -\ for\ Facebook.app.xcent -framework FacebookSDK -framework AVFoundation -framework CoreTelephony -framework EventKit -framework EventKitUI -framework AudioToolbox -framework CoreGraphics -framework MessageUI -framework StoreKit -framework SystemConfiguration -framework GoogleMobileAds -weak_framework Accounts -weak_framework AdSupport -framework AssetsLibrary -framework CoreData -framework CoreLocation -framework iAd -framework MapKit -framework QuartzCore -weak_framework Social -framework UIKit -framework Foundation -lAdIdAccess -lsqlite3.0 -lGoogleAnalyticsServices -Xlinker -dependency_info -Xlinker /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Objects-normal/i386/Photo\ Collage\ -\ for\ Facebook_dependency_info.dat -o /Users/Simon/Library/Developer/Xcode/DerivedData/TopicShow-cemeiotytpxtvoblfwxyiihrfjqz/Build/Intermediates/Photo\ Collage.build/Debug-iphonesimulator/Photo\ Collage.build/Objects-normal/i386/Photo\ Collage\ -\ for\ Facebook
Undefined symbols for architecture i386:
"_deflate", referenced from:
+[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
"_deflateEnd", referenced from:
+[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
"deflateInit2", referenced from:
+[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
"_inflate", referenced from:
+[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
"_inflateEnd", referenced from:
+[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
"inflateInit2", referenced from:
+[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have added the libGoogleAnalyticsServices.a from the package already.
Related
I am getting error while running my unity project on Xcode. Same code is running on Android. I am able to create an iOS build successfully, but when I am trying to run this code am getting this error.
Undefined symbol: _getUnityPurchasingAppReceipt
Undefined symbol: _unityPurchasingInterceptPromotionalPurchases
Undefined symbol: _unityPurchasingRetrieveProducts
Undefined symbol: _unityPurchasingAddTransactionObserver
Undefined symbol: _unityPurchasingFinishTransaction
d /Users/apple/Library/Developer/Xcode/DerivedData/Unity-iPhone-cgkdtpvfwzobjogspayyfdcwvpvo/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Binary/mylifes normal armv7 (in target 'Unity-iPhone' from project 'Unity-iPhone')
cd /Volumes/DATA/MyLifeNew/asd
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target armv7-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -L/Users/apple/Library/Developer/Xcode/DerivedData/Unity-iPhone-cgkdtpvfwzobjogspayyfdcwvpvo/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -L/Volumes/DATA/MyLifeNew/asd -L/Volumes/DATA/MyLifeNew/asd/Libraries -F/Users/apple/Library/Developer/Xcode/DerivedData/Unity-iPhone-cgkdtpvfwzobjogspayyfdcwvpvo/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -F/Volumes/DATA/MyLifeNew/asd/Frameworks/GoogleMapsView/Scripts/Editor/Libs/iOS/Frameworks -filelist /Users/apple/Library/Developer/Xcode/DerivedData/Unity-iPhone-cgkdtpvfwzobjogspayyfdcwvpvo/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/mylifes.LinkFileList -Xlinker -map -Xlinker /Users/apple/Library/Developer/Xcode/DerivedData/Unity-iPhone-cgkdtpvfwzobjogspayyfdcwvpvo/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/mylifes-LinkMap-normal-armv7.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Users/apple/Library/Developer/Xcode/DerivedData/Unity-iPhone-cgkdtpvfwzobjogspayyfdcwvpvo/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/mylifes_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/apple/Library/Developer/Xcode/DerivedData/Unity-iPhone-cgkdtpvfwzobjogspayyfdcwvpvo/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -Xlinker -final_output -Xlinker /Applications/mylifes.app/mylifes -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -weak_framework CoreMotion -weak-lSystem -framework MobileCoreServices -framework ImageIO -weak_framework Photos -framework AssetsLibrary -ObjC -framework MobileCoreServices -framework ImageIO -weak_framework Photos -framework AssetsLibrary -framework Security -framework MediaToolbox -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework AVKit -framework CFNetwork -framework CoreGraphics -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp -framework GoogleMaps -framework GoogleMapsCore -framework GoogleMapsBase -framework CoreData -framework CoreTelephony -framework Accelerate -framework CoreImage -framework GLKit -framework ImageIO -weak_framework Metal -lc++ -lz -framework CoreLocation -Xlinker -dependency_info -Xlinker /Users/apple/Library/Developer/Xcode/DerivedData/Unity-iPhone-cgkdtpvfwzobjogspayyfdcwvpvo/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/mylifes_dependency_info.dat -o /Users/apple/Library/Developer/Xcode/DerivedData/Unity-iPhone-cgkdtpvfwzobjogspayyfdcwvpvo/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Binary/mylifes
Undefined symbols for architecture armv7:
"_getUnityPurchasingAppReceipt", referenced from:
_iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8 in Apple.o
_iOSStoreBindings_get_appReceipt_mCD0A2253F585712CF562E13585D8EC21B8EA2A5D in Apple.o
(maybe you meant: _OSXStoreBindings_getUnityPurchasingAppReceipt_m702EC6E592BBF681A0A84538DFEA076459A6D702, _iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8 )
"_unityPurchasingInterceptPromotionalPurchases", referenced from:
_OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m01F28E4125E6D167E625F57561DBE34AAB53CCEF in Apple.o
_OSXStoreBindings_InterceptPromotionalPurchases_mFF8D85DEDEF59020697923491B985357D1EE3DFE in Apple.o
_iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C in Apple.o
_iOSStoreBindings_InterceptPromotionalPurchases_m4EA28EDA8038AC202207C4D13365A12C62F96A3C in Apple.o
(maybe you meant: _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C, _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m01F28E4125E6D167E625F57561DBE34AAB53CCEF )
"_unityPurchasingRetrieveProducts", referenced from:
_iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518 in Apple.o
_iOSStoreBindings_RetrieveProducts_m656192EA9DE8CB00AF315BF6E28B051B2AD1345E in Apple.o
(maybe you meant: _iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518, _OSXStoreBindings_unityPurchasingRetrieveProducts_m762C673967DF6672FE9D65DEE647142F0601572B )
"_unityPurchasingPurchase", referenced from:
_iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0 in Apple.o
(maybe you meant: _iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0, _OSXStoreBindings_unityPurchasingPurchase_m934CC8567A5B2054950D231AAC29F221E18D7DD8 )
"_unityPurchasingRestoreTransactions", referenced from:
_iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405 in Apple.o
_iOSStoreBindings_RestoreTransactions_m86D1878BBA41131670DCCCE4F7675BF8D59D3F10 in Apple.o
(maybe you meant: _iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405, _OSXStoreBindings_unityPurchasingRestoreTransactions_m80BB9063E4017D66A850FC9B5DF913D0AD9241C7 )
"_setUnityPurchasingCallback", referenced from:
_iOSStoreBindings_setUnityPurchasingCallback_m5F1BDBED30B03390B64FB05539D41582AF2A549B in Apple.o
_iOSStoreBindings_SetUnityPurchasingCallback_m36A393C71C676A3618C4876D86C6904BD5576F84 in Apple.o
(maybe you meant: _OSXStoreBindings_setUnityPurchasingCallback_mEB07C17BD0B86B2B1CCE9EDEB65EA26FBA4CDCBB, _iOSStoreBindings_setUnityPurchasingCallback_m5F1BDBED30B03390B64FB05539D41582AF2A549B )
"_unityPurchasingAddTransactionObserver", referenced from:
_iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 in Apple.o
_iOSStoreBindings_AddTransactionObserver_m7D55A46F27FDCC9B54367D761B4339CE85A389B6 in Apple.o
(maybe you meant: _OSXStoreBindings_unityPurchasingAddTransactionObserver_mE966496A18B53467C15198051687E4075E74DD3C, _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 )
"_unityPurchasingFinishTransaction", referenced from:
_iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F in Apple.o
(maybe you meant: _iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F, _OSXStoreBindings_unityPurchasingFinishTransaction_m145373244A1B58D5642E452D85C0ED21F9C07946 )
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
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/*
The error message is this:
Ld /Users/RMacMini/Library/Developer/Xcode/DerivedData/ParseStarterProject-Swift-ckffbprwvtawqmhfaxjbyvhaipts/Build/Products/Debug-iphoneos/ParseStarterProject-Swift.app/ParseStarterProject-Swift normal arm64
cd "/Users/RMacMini/Desktop/Mystery Date/parse-starter-project-1.10.0/ParseStarterProject-Swift"
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Volumes/R TM/Apps from old MM HD/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Volumes/R TM/Apps from old MM HD/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Volumes/R\ TM/Apps\ from\ old\ MM\ HD/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Volumes/R\ TM/Apps\ from\ old\ MM\ HD/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/RMacMini/Library/Developer/Xcode/DerivedData/ParseStarterProject-Swift-ckffbprwvtawqmhfaxjbyvhaipts/Build/Products/Debug-iphoneos -L/Users/RMacMini/Desktop/Mystery\ Date/parse-starter-project-1.10.0/ParseStarterProject-Swift -F/Users/RMacMini/Library/Developer/Xcode/DerivedData/ParseStarterProject-Swift-ckffbprwvtawqmhfaxjbyvhaipts/Build/Products/Debug-iphoneos -F/Users/RMacMini/Desktop/Mystery\ Date/parse-starter-project-1.10.0/ParseStarterProject-Swift -filelist /Users/RMacMini/Library/Developer/Xcode/DerivedData/ParseStarterProject-Swift-ckffbprwvtawqmhfaxjbyvhaipts/Build/Intermediates/ParseStarterProject-Swift.build/Debug-iphoneos/ParseStarterProject-Swift.build/Objects-normal/arm64/ParseStarterProject-Swift.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -L/Volumes/R\ TM/Apps\ from\ old\ MM\ HD/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/RMacMini/Library/Developer/Xcode/DerivedData/ParseStarterProject-Swift-ckffbprwvtawqmhfaxjbyvhaipts/Build/Intermediates/ParseStarterProject-Swift.build/Debug-iphoneos/ParseStarterProject-Swift.build/Objects-normal/arm64/ParseStarterProject_Swift.swiftmodule -lsqlite3 -lstdc++.6.0.9 -lsqlite3 -lz -framework ParseUI -framework QuartzCore -framework Security -framework ParseFacebookUtils -framework StoreKit -framework SystemConfiguration -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -framework AddressBook -framework AddressBookUI -framework Parse -framework Bolts -framework AdSupport -framework AssetsLibrary -Xlinker -dependency_info -Xlinker /Users/RMacMini/Library/Developer/Xcode/DerivedData/ParseStarterProject-Swift-ckffbprwvtawqmhfaxjbyvhaipts/Build/Intermediates/ParseStarterProject-Swift.build/Debug-iphoneos/ParseStarterProject-Swift.build/Objects-normal/arm64/ParseStarterProject-Swift_dependency_info.dat -o /Users/RMacMini/Library/Developer/Xcode/DerivedData/ParseStarterProject-Swift-ckffbprwvtawqmhfaxjbyvhaipts/Build/Products/Debug-iphoneos/ParseStarterProject-Swift.app/ParseStarterProject-Swift
ld: entry point (_main) undefined. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm getting the following linker error:
Ld /Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Products/Debug-iphonesimulator/Tweepr.app/Tweepr normal x86_64
cd /Users/premedios/Developer/Objective-C/tweepr-3
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Products/Debug-iphonesimulator -F/Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Products/Debug-iphonesimulator -F/Users/premedios/Developer/Objective-C/tweepr-3/iUnfollow/Classes/Library -filelist /Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Intermediates/Tweepr.build/Debug-iphonesimulator/Tweepr.build/Objects-normal/x86_64/Tweepr.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework Accelerate -framework Social -framework Security -framework StoreKit -framework ImageIO -framework MapKit -framework CoreText -framework CoreTelephony -lz -framework MobileCoreServices -framework Accounts -framework Twitter -framework CoreData -framework SystemConfiguration -framework CoreFoundation -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics -framework QuartzCore -lPods -Xlinker -dependency_info -Xlinker /Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Intermediates/Tweepr.build/Debug-iphonesimulator/Tweepr.build/Objects-normal/x86_64/Tweepr_dependency_info.dat -o /Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Products/Debug-iphonesimulator/Tweepr.app/Tweepr
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_STTwitterAPI", referenced from:
objc-class-ref in NetworkManager.o
"_OBJC_CLASS_$_SVProgressHUD", referenced from:
objc-class-ref in Utils.o
objc-class-ref in NetworkManager.o
objc-class-ref in TPRIAPManager.o
"_OBJC_CLASS_$_SimpleAuth", referenced from:
objc-class-ref in TPRAppDelegate.o
objc-class-ref in UserLoadingRoutine.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried "Clean Build Folder", but the error persists. Anyone have any other ideas on the cause of this?
I have a static library(libMoboSDK.a file) and a folder(.h files). Then try to add to my project. When I add I got error with library search paths, not sure for the root cause. But when many search, I tried to delete Library search paths as advice on stackoverflow. But after that I got the error:
ld: library not found for -lMoboSDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ld /Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Products/Debug-iphonesimulator/TestMoboLibfile.app/TestMoboLibfile normal i386
cd /Users/nle/Documents/Projects/TestMoboLibfile
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Products/Debug-iphonesimulator -F/Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/nle/Documents/FacebookSDK -filelist /Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Intermediates/TestMoboLibfile.build/Debug-iphonesimulator/TestMoboLibfile.build/Objects-normal/i386/TestMoboLibfile.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework FacebookSDK -weak_framework AdSupport -weak_framework CoreTelephony -weak_framework StoreKit -weak_framework XCTest -lMoboSDK -framework CoreGraphics -framework UIKit -framework Foundation -lMoboSDK -Xlinker -dependency_info -Xlinker /Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Intermediates/TestMoboLibfile.build/Debug-iphonesimulator/TestMoboLibfile.build/Objects-normal/i386/TestMoboLibfile_dependency_info.dat -o /Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Products/Debug-iphonesimulator/TestMoboLibfile.app/TestMoboLibfile
I had tried many research. But also cannot solve the prolem.Here is my setting:
Thanks in advance.
Update: After many tried, I got the error which have the same describe with many errors on stackoverflow. But also cannot find a solution can resolve my problem. Here is the new describe of error:
ld: warning: ignoring file /Users/nle/Documents/Projects/TestMoboLibfile/libMoboSDK.a, missing required architecture i386 in file /Users/nle/Documents/Projects/TestMoboLibfile/libMoboSDK.a (3 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MoboSDK", referenced from:
objc-class-ref in MainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ld /Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Products/Debug-iphonesimulator/TestMoboLibfile.app/TestMoboLibfile normal i386
cd /Users/nle/Documents/Projects/TestMoboLibfile
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Products/Debug-iphonesimulator -L/Users/nle/Documents/Projects/TestMoboLibfile -L/Users/nle/Library/Developer/Xcode/DerivedData/TestMoboSDK-Client-dszxjhzvvskuqjfzvsxotqrpwfdr/Build/Products/Debug-iphoneos -L/Users/nle/Documents/Projects/TestMoboLibfile -F/Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/nle/Documents/FacebookSDK -filelist /Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Intermediates/TestMoboLibfile.build/Debug-iphonesimulator/TestMoboLibfile.build/Objects-normal/i386/TestMoboLibfile.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -lMoboSDK -framework FacebookSDK -weak_framework AdSupport -framework CoreTelephony -framework StoreKit -weak_framework XCTest -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Intermediates/TestMoboLibfile.build/Debug-iphonesimulator/TestMoboLibfile.build/Objects-normal/i386/TestMoboLibfile_dependency_info.dat -o /Users/nle/Library/Developer/Xcode/DerivedData/TestMoboLibfile-dledhcaafocrregpqyxrmoqdaokd/Build/Products/Debug-iphonesimulator/TestMoboLibfile.app/TestMoboLibfile