I want to use MailCore2 in my project.When I try build my project, I get an error:
Ld /Users/yuzhijie/Library/Developer/Xcode/DerivedData/flowofficial-evjqsgekfjldlzhillqlfkxvdneh/Build/Intermediates/flowofficial.build/Debug-iphoneos/flowofficial.build/Objects-normal/armv7/flowofficial normal armv7
cd /Users/yuzhijie/Desktop/flowofficial
export IPHONEOS_DEPLOYMENT_TARGET=6.1
export PATH="/Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode6-Beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/yuzhijie/Library/Developer/Xcode/DerivedData/flowofficial-evjqsgekfjldlzhillqlfkxvdneh/Build/Products/Debug-iphoneos -L/Users/yuzhijie/Desktop/flowofficial/flowofficial/Library/a_fiels -L/Users/yuzhijie/Desktop/flowofficial/flowofficial/Library -L/Users/yuzhijie/Desktop/flowofficial -L/Users/yuzhijie/Desktop/flowofficial/flowofficial/Library/ShareSdk/libWeiboSDK -L/Users/yuzhijie/Desktop/flowofficial/flowofficial/Library/ShareSdk/libWeChatSDK -F/Users/yuzhijie/Library/Developer/Xcode/DerivedData/flowofficial-evjqsgekfjldlzhillqlfkxvdneh/Build/Products/Debug-iphoneos -F/Users/yuzhijie/Desktop/flowofficial/flowofficial/Library -F/Users/yuzhijie/Desktop/flowofficial/flowofficial/Library/ifly -F/Users/yuzhijie/Desktop/flowofficial/flowofficial/Library/ShareSdk/libRenRenSDK -F/Users/yuzhijie/Desktop/flowofficial/flowofficial/Library/ShareSdk/libQQSDK -F/Users/yuzhijie/Desktop/flowofficial -filelist /Users/yuzhijie/Library/Developer/Xcode/DerivedData/flowofficial-evjqsgekfjldlzhillqlfkxvdneh/Build/Intermediates/flowofficial.build/Debug-iphoneos/flowofficial.build/Objects-normal/armv7/flowofficial.LinkFileList -dead_strip -lctemplate-ios -letpan-ios -licudata -licui18n -licuuc -lxml2 -lsasl2 -liconv -ltidy -lstdc++ -lz -licucore -ObjC -force_load -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -miphoneos-version-min=6.1 /Users/yuzhijie/Library/Developer/Xcode/DerivedData/flowofficial-evjqsgekfjldlzhillqlfkxvdneh/Build/Products/Debug-iphoneos/libMailCore-ios.a -framework CoreBluetooth -framework ImageIO -framework MAMapKit -lidn -framework QuartzCore -lstdc++ -lsqlite3 -liconv -framework TencentOpenAPI -framework RennSDK -lopencore-amrwb -framework iflyMSC -framework MediaPlayer -lWeChatSDK -framework AMapSearchKit -framework MessageUI -framework AddressBook -framework AddressBookUI -framework CoreTelephony -framework CoreMotion -framework Security -lstdc++.6.0.9 -framework OpenGLES -lopencore-amrnb -framework SystemConfiguration -framework CoreLocation -framework CFNetwork -framework CoreData -framework AudioToolbox -framework AVFoundation -lWeiboSDK -framework MobileCoreServices -lresolv -lz -lmp3lame -lxml2 -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/yuzhijie/Library/Developer/Xcode/DerivedData/flowofficial-evjqsgekfjldlzhillqlfkxvdneh/Build/Intermediates/flowofficial.build/Debug-iphoneos/flowofficial.build/Objects-normal/armv7/flowofficial_dependency_info.dat -o /Users/yuzhijie/Library/Developer/Xcode/DerivedData/flowofficial-evjqsgekfjldlzhillqlfkxvdneh/Build/Intermediates/flowofficial.build/Debug-iphoneos/flowofficial.build/Objects-normal/armv7/flowofficial
ld: file not found: -fobjc-arc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Xcode 6 iOS 8
Thanks very much!!!
Related
I can usually figure out these issues but I just haven't been able to figure this one out, any help?
Ld /Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Intermediates/packageTracker.build/Debug-iphoneos/packageTracker.build/Objects-normal/armv7/packageTracker normal armv7
cd /Users/nickporter/Developer/packageTracker
export IPHONEOS_DEPLOYMENT_TARGET=8.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Products/Debug-iphoneos -F/Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Products/Debug-iphoneos -F/Users/nickporter/Developer/packageTracker/packageTracker -filelist /Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Intermediates/packageTracker.build/Debug-iphoneos/packageTracker.build/Objects-normal/armv7/packageTracker.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -ObjC -lAFNetworking -lAPTimeZones -lAftership-iOS-SDK -lCSNotificationView -lCTFeedback -lDateTools -lMCSwipeTableViewCell -lMMMaterialDesignSpinner -lMTDates -lNSDate+TimeAgo -lNSTimeZone-CountryCode -lRestKit -lSOCKit -lSVGeocoder -lSVPullToRefresh -lSVPulsingAnnotationView -lSVWebViewController -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreLocation -framework MapKit -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -lAFNetworking -lAPTimeZones -lAftership-iOS-SDK -lCSNotificationView -lCTFeedback -lDateTools -lMCSwipeTableViewCell -lMMMaterialDesignSpinner -lMTDates -lNSDate+TimeAgo -lNSTimeZone-CountryCode -lRestKit -lSOCKit -lSVGeocoder -lSVPullToRefresh -lSVPulsingAnnotationView -lSVWebViewController -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreLocation -framework MapKit -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -framework MobileCoreServices -framework QuartzCore -framework Accounts -framework Social -lsqlite3 -lz -framework SystemConfiguration -framework Parse -framework Security -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -framework CoreData -lPods-packageTracker -framework Bolts -Xlinker -dependency_info -Xlinker /Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Intermediates/packageTracker.build/Debug-iphoneos/packageTracker.build/Objects-normal/armv7/packageTracker_dependency_info.dat -o /Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Intermediates/packageTracker.build/Debug-iphoneos/packageTracker.build/Objects-normal/armv7/packageTracker
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
When I added the ParseUI lib in my Podfile, after installing pod, I have this error:
Ld /Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Products/Debug-iphonesimulator/CashCourier.app/CashCourier normal x86_64
cd /Users/dvs/Desktop/Workspace/cash-ios
export IPHONEOS_DEPLOYMENT_TARGET=8.2
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.4.sdk -L/Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Products/Debug-iphonesimulator -L/Users/dvs/Desktop/Workspace/cash-ios/Pods/Parse -L/Users/dvs/Desktop/Workspace/cash-ios/Pods/TwilioSDK/Libraries -F/Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Products/Debug-iphonesimulator -F/Users/dvs/Desktop/Workspace/cash-ios/Pods/Testfire/Testfire -filelist /Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Intermediates/CashCourier.build/Debug-iphonesimulator/CashCourier.build/Objects-normal/x86_64/CashCourier.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -read_only_relocs -undefined dynamic_lookup suppress -lBolts -lJVFloatLabeledTextField -lParse -lParseLib -lParseUI -lTwilioClient -lcrypto -llibPhoneNumber-iOS -lsqlite3 -lssl -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreTelephony -framework CoreVideo -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework Testfire -framework UIKit -weak_framework Accounts -weak_framework Social -read_only_relocs -lBolts -lJVFloatLabeledTextField -lParse -lParseLib -lParseUI -lTwilioClient -lcrypto -llibPhoneNumber-iOS -lsqlite3 -lssl -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreTelephony -framework CoreVideo -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework Testfire -framework UIKit -weak_framework Accounts -weak_framework Social -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.2 -lPods -Xlinker -dependency_info -Xlinker /Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Intermediates/CashCourier.build/Debug-iphonesimulator/CashCourier.build/Objects-normal/x86_64/CashCourier_dependency_info.dat -o /Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Products/Debug-iphonesimulator/CashCourier.app/CashCourier
clang: error: no such file or directory: 'dynamic_lookup'
clang: error: no such file or directory: 'suppress'
I tried to remove dynamic_lookup and suppress in my build settings, but it still gives the same error.
I solved this by modifying the Pods/Pods.debug.xcconfig file (and the same for the Pods.release.xcconfig). Somehow, the generated xcconfig files are incorrect.
From:
-read_only_relocs -undefined dynamic_lookup suppress
To:
-read_only_relocs suppress -undefined dynamic_lookup
I get
ld: library not found for -lPods-projectName-AFNetworkActivityLogger
clang: error: linker command failed with exit code 1 (use -v to see invocation)
while building, after update Xcode to 6.3
Any ideas?
EDIT:
Full log:
Ld /Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Products/Debug-iphoneos/projectName.app/projectName normal armv7
cd /Users/radekwilczak/Work/projectName-ios
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Products/Debug-iphoneos -L/Users/radekwilczak/Work/projectName-ios/external/prmediaplayersdk/lib/iphoneos -L/Users/radekwilczak/Work/projectName-ios/external/Upnpx -L/Users/radekwilczak/Work/projectName-ios/external -L/Users/radekwilczak/Work/projectName-ios/external/prmediaplayersdk/lib -L/Users/radekwilczak/Work/projectName-ios/Pods/build/Debug-iphoneos -F/Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Products/Debug-iphoneos -F/Users/radekwilczak/Work/projectName-ios/Pods/google-cast-sdk/GoogleCastSDK-2.5.2-Release -F/Users/radekwilczak/Work/projectName-ios -filelist /Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Intermediates/projectName.build/Debug-iphoneos/projectName.build/Objects-normal/armv7/projectName.LinkFileList -dead_strip -ObjC -lPods-projectName-AFNetworkActivityLogger -lPods-projectName-AFNetworking -lPods-projectName-CSStickyHeaderFlowLayout -lPods-projectName-CocoaAsyncSocket -lPods-projectName-CocoaLumberjack -lPods-projectName-JSONModel -lPods-projectName-PureLayout -lPods-projectName-SFHFKeychainUtils -lPods-projectName-SVProgressHUD -lPods-projectName-TTTAttributedLabel -lPods-projectName-TYMActivityIndicatorView -lPods-projectName-TYMProgressBarView -lPods-projectName-google-cast-sdk -framework CFNetwork -framework CoreGraphics -framework CoreText -framework GoogleCast -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework CoreText -framework MediaAccessibility -framework GoogleCast -framework CoreData -lsqlite3 -lstdc++.6.0.9 -lxml2 -lz -lGoogleAnalyticsServices -framework MediaPlayer -framework CoreMedia -framework CoreAudio -framework AudioToolbox -framework CFNetwork -framework MessageUI -framework SystemConfiguration -framework AVFoundation -framework Foundation -framework CoreGraphics -framework UIKit -framework Fabric -framework Security -lPRMediaPlayerFramework_v_2_3 -framework Crashlytics -lupnpx -Xlinker -dependency_info -Xlinker /Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Intermediates/projectName.build/Debug-iphoneos/projectName.build/Objects-normal/armv7/projectName_dependency_info.dat -o /Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Products/Debug-iphoneos/projectName.app/projectName
ld: warning: directory not found for option '-L/Users/radekwilczak/Work/projectName-ios/Pods/build/Debug-iphoneos'
ld: library not found for -lPods-projectName-AFNetworkActivityLogger
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Problem solved by removing
libPods.a
libPods-CD_GO.a
and adding
libPods-CD_GO.a
one more time (in Frameworks).
I am facing this warning in Xcode 5.1.
How to fix this error
Here the Error is Showing like...
Ld /Users/riz/Library/Developer/Xcode/DerivedData/SedioiOS-dfvlolozvfewogempmjncnwobvbw/Build/Products/Debug-iphonesimulator/SedioiOS.app/SedioiOS normal i386
cd /Users/riz/Desktop/vine-clone-iphone/SedioiOS
export IPHONEOS_DEPLOYMENT_TARGET=6.1
export PATH="/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode 2.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode\ 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode\ 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/riz/Library/Developer/Xcode/DerivedData/SedioiOS-dfvlolozvfewogempmjncnwobvbw/Build/Products/Debug-iphonesimulator -F/Users/riz/Library/Developer/Xcode/DerivedData/SedioiOS-dfvlolozvfewogempmjncnwobvbw/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/riz/Library/Developer/Xcode/DerivedData/SedioiOS-dfvlolozvfewogempmjncnwobvbw/Build/Intermediates/SedioiOS.build/Debug-iphonesimulator/SedioiOS.build/Objects-normal/i386/SedioiOS.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework AVFoundation -framework CoreLocation -framework MapKit -framework MessageUI -lz.1.2.5 -lz -framework CoreMedia -framework CoreAudio -framework CoreVideo -framework MobileCoreServices -framework ImageIO -framework AssetsLibrary -framework MediaPlayer -framework Security -framework QuartzCore -framework CFNetwork -framework SystemConfiguration -framework UIKit -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/riz/Library/Developer/Xcode/DerivedData/SedioiOS-dfvlolozvfewogempmjncnwobvbw/Build/Intermediates/SedioiOS.build/Debug-iphonesimulator/SedioiOS.build/Objects-normal/i386/SedioiOS_dependency_info.dat -o /Users/riz/Library/Developer/Xcode/DerivedData/SedioiOS-dfvlolozvfewogempmjncnwobvbw/Build/Products/Debug-iphonesimulator/SedioiOS.app/SedioiOS
----------
`ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Library/Frameworks'`
Add this $(DEVELOPER_FRAMEWORKS_DIR) on Framework Search Paths in Build Settings..
Check the Screenshot Image.. maybe its helpful to you..
then clean,build and run..
Please help me to resolve this error...
This error has comes up when run on device but when run on simulator than application run smoothly without errors..
I have got this below error...
Please help me
Ld /Users/vipalpanchal/Library/Developer/Xcode/DerivedData/iRealify-hkospzktmsronzeeoslnvwfniaok/Build/Products/Debug-iphoneos/MySMSFriend.app/MySMSFriend normal armv7s
cd "/iTune/SMS Final App/SMS/MySMSFriend"
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode 2.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
"/Applications/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -arch armv7s -isysroot "/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk" -L/Users/vipalpanchal/Library/Developer/Xcode/DerivedData/iRealify-hkospzktmsronzeeoslnvwfniaok/Build/Products/Debug-iphoneos "-L/iTune/SMS Final App/SMS/MySMSFriend/Classes/Start" -F/Users/vipalpanchal/Library/Developer/Xcode/DerivedData/iRealify-hkospzktmsronzeeoslnvwfniaok/Build/Products/Debug-iphoneos -filelist /Users/vipalpanchal/Library/Developer/Xcode/DerivedData/iRealify-hkospzktmsronzeeoslnvwfniaok/Build/Intermediates/iRealify.build/Debug-iphoneos/iRealify.build/Objects-normal/armv7s/MySMSFriend.LinkFileList -dead_strip -ObjC -all_load -fobjc-link-runtime -miphoneos-version-min=4.3 -lThree20Core -lThree20Network -lThree20Style /Users/vipalpanchal/Library/Developer/Xcode/DerivedData/iRealify-hkospzktmsronzeeoslnvwfniaok/Build/Products/Debug-iphoneos/libThree20.a /Users/vipalpanchal/Library/Developer/Xcode/DerivedData/iRealify-hkospzktmsronzeeoslnvwfniaok/Build/Products/Debug-iphoneos/libThree20UI.a /Users/vipalpanchal/Library/Developer/Xcode/DerivedData/iRealify-hkospzktmsronzeeoslnvwfniaok/Build/Products/Debug-iphoneos/libThree20UICommon.a /Users/vipalpanchal/Library/Developer/Xcode/DerivedData/iRealify-hkospzktmsronzeeoslnvwfniaok/Build/Products/Debug-iphoneos/libThree20UINavigator.a -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework AddressBook -framework AddressBookUI -lxml2 -framework AVFoundation -framework MessageUI -framework StoreKit -framework SystemConfiguration -framework CFNetwork -framework MediaPlayer -framework MessageUI -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -framework AudioToolbox -framework MapKit -framework MediaPlayer -lz -framework CoreLocation -o /Users/vipalpanchal/Library/Developer/Xcode/DerivedData/iRealify-hkospzktmsronzeeoslnvwfniaok/Build/Products/Debug-iphoneos/MySMSFriend.app/MySMSFriend
ld: library not found for -lxml2
clang: error: linker command failed with exit code 1 (use -v to see invocation)