Xcode Undefined symbols for architecture x86_64: - ios

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/*

Related

Error installing Firebase manually (Swift)

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.

Duplicate symbols for architecture i386. Checked all answers. Nothing helped

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)

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

I am working with an XCode project which was fine yesterday but today without any change in code I am getting following compile error.
Any suggestion? How can i fix it?
Ld DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator/Project\ Sounds.app/Project\ Sounds normal i386
cd "/Users/admin/Desktop/App 2"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -L/Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator -L/Users/admin/Desktop/App\ 2/Classes/ListControl/OELib -L/Users/admin/Desktop/App\ 2/../../../iPad/API\'s/Google\ Analytics\ SDK/Library -L/Users/admin/Desktop/App\ 2/Classes/Analytic -LLibrary -F/Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator -filelist /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Intermediates/OEiPhone.build/Debug-iphonesimulator/Project\ Sounds.build/Objects-normal/i386/Project\ Sounds.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -licucore -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework CoreMedia -framework AVFoundation -framework NewsstandKit -lsqlite3.0 -lz.1.2.5 -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -framework QuartzCore -framework SystemConfiguration -lGoogleAnalytics_NoThumb -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework CoreText -framework CoreLocation -framework MapKit -framework StoreKit -lxml2 -lGoogleAnalytics -Xlinker -dependency_info -Xlinker /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Intermediates/OEiPhone.build/Debug-iphonesimulator/Project\ Sounds.build/Objects-normal/i386/Project\ Sounds_dependency_info.dat -o /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator/Project\ Sounds.app/Project\ Sounds
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/Classes/ListControl/OELib'
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/../../../iPad/API's/Google Analytics SDK/Library'
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/Classes/Analytic'
ld: warning: directory not found for option '-LLibrary'
ld: library not found for -lGoogleAnalytics_NoThumb
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I had the same problem.
Make sure to remove the library in your
Project -> Build Phases -> Link Binary With Libraries
if you removed it or add it if it's missing.
This path
/Users/admin/Desktop/App 2/../../../iPad/API's/Google Analytics SDK/Library
Is pointing at a Library on your desktop. Is that library still there, or did you move/delete it?

How can i solve this Mach o linker error in Xcode?

I'm unable to compile my project for the simulator .
I get Apple Mach-O-Linker error.I'm unable to solve this issues.I am using xcode 5.
I get the same question here How to solve Mach-O-Linker error in ios7 & Xcode 5.0.1 with right answer,but in my case there is "\" in Framework Search Path.
Ld /Users/mohit/Library/Developer/Xcode/DerivedData/Story- cfxrnsmqxnasuafarmhvchwphnxa/Build/Products/Debug-iphonesimulator/Story.app/Story normal i386
cd "/Users/mohit/Desktop/ys_xcode/YS Code/Story 34"
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/i PhoneSimulator7.1.sdk -L/Users/mohit/Library/Developer/Xcode/DerivedData/Story- cfxrnsmqxnasuafarmhvchwphnxa/Build/Products/Debug-iphonesimulator - F/Users/mohit/Library/Developer/Xcode/DerivedData/Story- cfxrnsmqxnasuafarmhvchwphnxa/Build/Products/Debug-iphonesimulator - F/Users/mohit/Documents/FacebookSDK - F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/mohit/Desktop/ys_xcode/YS\ Code/Story\ 34 -filelist /Users/mohit/Library/Developer/Xcode/DerivedData/Story- cfxrnsmqxnasuafarmhvchwphnxa/Build/Intermediates/Story.build/Debug- iphonesimulator/Story.build/Objects-normal/i386/YourStory.LinkFileList -Xlinker - objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework XCTest -framework Social -framework CoreData - framework GoogleOpenSource -framework CoreMotion -framework AssetsLibrary -framework AddressBook -framework FacebookSDK -lxml2 -framework GooglePlus -Xlinker -dependency_info - Xlinker /Users/mohit/Library/Developer/Xcode/DerivedData/Story- cfxrnsmqxnasuafarmhvchwphnxa/Build/Intermediates/Story.build/Debug-iphonesimulator/Story.build/Objects-normal/i386/Story_dependency_info.dat -o /Users/mohit/Library/Developer/Xcode/DerivedData/Story- cfxrnsmqxnasuafarmhvchwphnxa/Build/Products/Debug-iphonesimulator/Story.app/Story
Mach-O-Linker error message
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)]
Help is appreciated!

linker error when add static library

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

Resources