When I just run the app on a simulator everything works fine.
Now I want to archive the app to upload it to testflight and I get these errors when archiving:
Ld /Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/IntermediateBuildFilesPath/CityLife.build/Release-iphoneos/Production.build/Objects-normal/arm64/Production normal arm64
cd /Users/user123/Documents/Development/Comp/citylife_user_phone_app_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/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/iPhoneOS9.2.sdk -L/Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/BuildProductsPath/Release-iphoneos -L/Users/user123/Documents/Development/Comp/citylife_user_phone_app_ios/Pods/GoogleAnalytics/Libraries -F/Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/BuildProductsPath/Release-iphoneos -FCityLife/Frameworks -F/Users/user123/Documents/Development/Comp/citylife_user_phone_app_ios -filelist /Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/IntermediateBuildFilesPath/CityLife.build/Release-iphoneos/Production.build/Objects-normal/arm64/Production.LinkFileList -miphoneos-version-min=7.0 -dead_strip -ObjC -lAFNetworkActivityLogger -lAFNetworking -lAFOAuth2Manager -lBase64 -lFXBlurView -lGVPhotoBrowser -lGoogleAnalytics -lHexColors -lISO8601DateFormatter -lJSONModel -lMBProgressHUD -lMagicalRecord -lMasonry -lMixpanel -lNSDate+RelativeTime -lPDKeychainBindingsController -lQR-Code-Encoder-for-Objective-C -lREMenu -lReliant -lSVProgressHUD -lTSMessages -lTTTAttributedLabel -lTTTLocalizedPluralString -lUICKeyChainStore -lUIScrollView-InfiniteScroll -licucore -lsqlite3 -lz -framework Accelerate -framework CoreData -framework CoreGraphics -framework CoreTelephony -framework CoreText -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -framework CoreData -lz -framework SystemConfiguration -framework CoreTelephony -framework AVFoundation -framework CoreMedia -framework QuartzCore -framework CoreVideo -framework MobileCoreServices -framework KBCPaymentKit -framework AdSupport -framework AddressBookUI -framework Crashlytics -framework AddressBook -liconv -framework MessageUI -framework MapKit -lsqlite3 -framework CoreLocation -framework Accounts -framework Social -framework UIKit -framework Foundation -framework CoreGraphics -lPods -Xlinker -dependency_info -Xlinker /Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/IntermediateBuildFilesPath/CityLife.build/Release-iphoneos/Production.build/Objects-normal/arm64/Production_dependency_info.dat -o /Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/IntermediateBuildFilesPath/CityLife.build/Release-iphoneos/Production.build/Objects-normal/arm64/Production
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_CommunityRemoteService", referenced from:
objc-class-ref in CommunityDetailsViewController.o
objc-class-ref in CommunityRewardsTableViewController.o
objc-class-ref in WishlistTableViewController.o
objc-class-ref in CommunityOverviewTableViewController.o
objc-class-ref in CommunityRewardDetailTableViewController.o
objc-class-ref in ProfileCommunityOverViewTableViewController.o
objc-class-ref in CommunityDealsTableViewController.o
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried things like adding the $(inherited) flag on the Pods target but nothing helps.
Someone knows whats wrong?
Found the problem. Because I've created the files with AppCode the files were only in the test target and not in the production target.
I've added them via xCode to the compile sources and now it works.
Related
I'm installing Mixpanel right know (NOT using CocoaPods due to bigger problems) and I've got this problem once I try to build. Apparently it's in the linking progress:
Ld /Users/zheref/Library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Products/Debug-iphonesimulator/Skillet.app/Skillet normal x86_64
cd /Users/zheref/Code/skillet/skillet-ios
export IPHONEOS_DEPLOYMENT_TARGET=8.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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/zheref/Library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Products/Debug-iphonesimulator -L/Users/zheref/Code/skillet/skillet-ios/Pods/Brightcove-Player-SDK/Library -L/Users/zheref/Code/skillet/skillet-ios/Pods/Google/Libraries -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleAppUtilities/Libraries -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleAuthUtilities/Libraries -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleNetworkingUtilities/Libraries -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleSignIn/Libraries -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleSymbolUtilities/Libraries -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleUtilities/Libraries -L/Users/zheref/Code/skillet/skillet-ios/Skillet -F/Users/zheref/Library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Products/Debug-iphonesimulator -F/Users/zheref/Code/skillet/skillet-ios -F/Users/zheref/Code/vendors/parse-library-1.7.5 -filelist /Users/zheref/Library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Intermediates/Skillet.build/Debug-iphonesimulator/Skillet.build/Objects-normal/x86_64/Skillet.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lBCOVPlayerSDK -lGGLCore -lGGLSignIn -lGSDK_Overload -lGTMOAuth2_external -lGTMOAuth2_internal -lGTMSessionFetcher_core -lGTMSessionFetcher_full -lGTMStackTrace -lGTM_AddressBook -lGTM_DebugUtils -lGTM_GTMURLBuilder -lGTM_KVO -lGTM_NSDictionary+URLArguments -lGTM_NSScannerJSON -lGTM_NSStringHTML -lGTM_NSStringXML -lGTM_Regex -lGTM_RoundedRectPath -lGTM_StringEncoding -lGTM_SystemVersion -lGTM_UIFont+LineHeight -lGTM_core -lGTM_iPhone -lOpenInChrome -lPods-PaymentKit -lPods-Stripe -lSignIn -framework AVFoundation -framework AddressBook -framework CoreMedia -framework CoreText -framework Foundation -framework MediaPlayer -framework Security -framework StoreKit -framework SystemConfiguration -ObjC -lBCOVPlayerSDK -lGGLCore -lGGLSignIn -lGSDK_Overload -lGTMOAuth2_external -lGTMOAuth2_internal -lGTMSessionFetcher_core -lGTMSessionFetcher_full -lGTMStackTrace -lGTM_AddressBook -lGTM_DebugUtils -lGTM_GTMURLBuilder -lGTM_KVO -lGTM_NSDictionary+URLArguments -lGTM_NSScannerJSON -lGTM_NSStringHTML -lGTM_NSStringXML -lGTM_Regex -lGTM_RoundedRectPath -lGTM_StringEncoding -lGTM_SystemVersion -lGTM_UIFont+LineHeight -lGTM_core -lGTM_iPhone -lOpenInChrome -lPods-PaymentKit -lPods-Stripe -lSignIn -framework AVFoundation -framework AddressBook -framework CoreMedia -framework CoreText -framework Foundation -framework MediaPlayer -framework Security -framework StoreKit -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/zheref/Library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Intermediates/Skillet.build/Debug-iphonesimulator/Skillet.build/Objects-normal/x86_64/Skillet.swiftmodule -mios-simulator-version-min=8.1 -licucore -framework QuartzCore -framework CoreGraphics -framework Accelerate -framework CoreTelephony -framework SystemConfiguration -framework Foundation -framework UIKit -framework Bolts -framework Social -framework Accounts -framework Crashlytics -framework AVFoundation -framework CoreMedia -framework Parse -framework CoreText -framework MediaAccessibility -framework MediaPlayer -framework CFNetwork -framework Security -framework AudioToolbox -framework CoreLocation -lsqlite3 -lz -framework MobileCoreServices -framework StoreKit -framework FBSDKShareKit -framework Fabric -framework FBSDKCoreKit -framework FBSDKLoginKit -lPods -Xlinker -dependency_info -Xlinker /Users/zheref/Library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Intermediates/Skillet.build/Debug-iphonesimulator/Skillet.build/Objects-normal/x86_64/Skillet_dependency_info.dat -o /Users/zheref/Library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Products/Debug-iphonesimulator/Skillet.app/Skillet
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Mixpanel", referenced from:
__TMaCSo8Mixpanel in AppDelegate.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'm using Swift language (NOT Objective-C at all).
Thanks in advance.
UPDATE 1
The problem appears when I put the line:
Mixpanel.sharedInstanceWithToken(MIXPANEL_TOKEN);
and not before.
There is no problem when I install the Mixpanel code inside the project and not even when I import it from the Bridging Header.
I had same issue, I just tried by re-adding the framework files by dragging into my project separately.
Don't drag folder directly instead drag only files into your project.
Also don't forget to link frameworks
SystemConfiguration, CoreTelephony, Accelerate, Security, CFNetwork,
QuartzCore, libicucore.tbd
I've been struggling to get VLC working in my iOS app for a while now. Using Cocoapods, the MobileVLCKit is imported into my project. When I run the app now, it compiles with no problem. However, when I include anything from the MobileVLCKit (MobileVLCKit.h, VLCMediaPlayer.h), the app crashes, telling me that symbols aren't found.
This is the crash:
Ld /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos/Cameras.app/Cameras normal arm64
cd /Users/JohnDoe/ios-cam-app/iOSCamApp
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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos -LLibraries -LLibraries/FFmpeg -LLibraries/kxmovie -LLibraries/MBProgressHUD -LLibraries/Nabto -LLibraries/FFmpeg/include -LLibraries/kxmovie/kxmovie.bundle -LLibraries/Nabto/include -LLibraries/Nabto/lib -LLibraries/FFmpeg/include/libavcodec -LLibraries/FFmpeg/include/libavdevice -LLibraries/FFmpeg/include/libavfilter -LLibraries/FFmpeg/include/libavformat -LLibraries/FFmpeg/include/libavutil -LLibraries/FFmpeg/include/libswresample -LLibraries/FFmpeg/include/libswscale -L/Users/JohnDoe/ios-cam-app/iOSCamApp/Libraries/FFmpeg -L/Users/JohnDoe/ios-cam-app/iOSCamApp/Libraries/Nabto/lib -F/Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos -FFrameworks -F/Users/JohnDoe/ios-cam-app/iOSCamApp -filelist /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/Debug-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -lPods-AFNetworking -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -lstdc++.6.0.9 -lc++ -liconv.2.4.0 -lbz2 -lz -framework MediaPlayer -framework CoreAudio -framework Crashlytics -framework AudioToolbox -framework Accelerate -framework OpenGLES -lnabto_static_external -framework CoreVideo -framework CoreMedia -framework CFNetwork -framework AVFoundation -lavutil -lavfilter -lPods -lavdevice -lswscale -lnabto_client_api_static -framework Fabric -lavformat -lswresample -lavcodec -framework QuartzCore -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/Debug-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras_dependency_info.dat -o /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos/Cameras.app/Cameras
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_VLCMediaPlayer", referenced from:
objc-class-ref in FirstViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
When I installed VLC through cocoa pods, I got this warning:
The `iOSCamApp [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `../Pods/Target Support Files/Pods-iOSCamApp/Pods-iOSCamApp.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
When I add the $(inherited) flag and try to build, I get the following crash:
Ld /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos/Cameras.app/Cameras normal arm64
cd /Users/JohnDoe/ios-cam-app/iOSCamApp
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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos -LLibraries -LLibraries/FFmpeg -LLibraries/kxmovie -LLibraries/MBProgressHUD -LLibraries/Nabto -LLibraries/FFmpeg/include -LLibraries/kxmovie/kxmovie.bundle -LLibraries/Nabto/include -LLibraries/Nabto/lib -LLibraries/FFmpeg/include/libavcodec -LLibraries/FFmpeg/include/libavdevice -LLibraries/FFmpeg/include/libavfilter -LLibraries/FFmpeg/include/libavformat -LLibraries/FFmpeg/include/libavutil -LLibraries/FFmpeg/include/libswresample -LLibraries/FFmpeg/include/libswscale -L/Users/JohnDoe/ios-cam-app/iOSCamApp/Libraries/FFmpeg -L/Users/JohnDoe/ios-cam-app/iOSCamApp/Libraries/Nabto/lib -F/Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos -FFrameworks -F/Users/JohnDoe/ios-cam-app/iOSCamApp -filelist /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/Debug-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -lPods-AFNetworking -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -ObjC -lPods-AFNetworking -lbz2 -liconv -lstdc++ -lxml2 -lz -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreText -framework MobileCoreServices -framework MobileVLCKit -framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -lstdc++.6.0.9 -lc++ -liconv.2.4.0 -lbz2 -lz -framework MediaPlayer -framework CoreAudio -framework Crashlytics -framework AudioToolbox -framework Accelerate -framework OpenGLES -lnabto_static_external -framework CoreVideo -framework CoreMedia -framework CFNetwork -framework AVFoundation -lavutil -lavfilter -lPods -lavdevice -lswscale -lnabto_client_api_static -framework Fabric -lavformat -lswresample -lavcodec -framework QuartzCore -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Intermediates/iOSCamApp.build/Debug-iphoneos/iOSCamApp.build/Objects-normal/arm64/Cameras_dependency_info.dat -o /Users/JohnDoe/Library/Developer/Xcode/DerivedData/iOSCamApp-cnnuesgeqommwvbqtarspgwsjgbn/Build/Products/Debug-iphoneos/Cameras.app/Cameras
ld: framework not found MobileVLCKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does anyone know what to do? I've tried so many things and nothing seems to help. Autocomplete is able to read the VLC stuff and autocompletes it for me in Xcode, so the framework should be fine.
Undefined symbols for architecture arm64:
That seems to be the problem. You're compiling for the simulator and apparently MobileVLCKit isn't compiled for it. ld is the linker that complains about this. Have you tried running it on the device?
Check what architectures your project and MobileVLCKit are active on.
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 integarting canvaspop in my application.When I am integrating it in sample application it is working fine.But when I am using it in my app with other 3rd pary framework like GPUimage,IKImagePicker,xpload and other more.I am getting these errors while linking framework to my app.
Ld /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/ImageEditorPro.app/ImageEditorPro normal i386
cd "/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab Testing/EditLab"
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/iPhoneSimulator7.1.sdk -L/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator -LVendors/IAPPVerification -LVendors/TestFlight -LVendors/Canvas -F/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator -FVendors/IKImagePickerController/Vendors/FacebookSDK -FImageEditorPro -FVendors/GooglePlus -F/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab\ Testing/EditLab/IddictionSDK.embeddedframework -F/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab\ Testing/EditLab/IddictionSDK.embeddedframework/XplodeSDK.embeddedframework -F/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab\ Testing/EditLab/XplodeSDK.embeddedframework -FVendors/Canvas -F/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab\ Testing/EditLab/Vendors/Canvas -filelist /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/ImageEditorPro.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework Security -framework MobileCoreServices -framework CFNetwork -framework Accelerate -lz -lObjectiveFlickr -framework PopUpLib /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/libTMTumblrSDK.a -framework CoreMotion -framework MediaPlayer -framework StoreKit -framework GoogleOpenSource -framework FacebookSDK -framework SystemConfiguration -framework MapKit -framework CoreVideo -framework CoreMedia -framework OpenGLES -framework AVFoundation /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/libGPUImage.a -framework AdSupport -lsqlite3 -framework Social -framework Accounts -framework AssetsLibrary -lbeeblex -framework ImageIO -framework QuartzCore /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/libIKImagePickerController.a -framework CoreGraphics -framework UIKit -lTestFlight -framework XplodeSDK -framework Foundation -framework GooglePlus -Xlinker -dependency_info -Xlinker /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/ImageEditorPro_dependency_info.dat -o /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/ImageEditorPro.app/ImageEditorPro
duplicate symbol _OBJC_CLASS_$_Reachability in:
/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/Reachability.o
Vendors/Canvas/PopUpLib.framework/PopUpLib(libPopUpLib.a-i386-master.o)
duplicate symbol _OBJC_METACLASS_$_Reachability in:
/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/Reachability.o
Vendors/Canvas/PopUpLib.framework/PopUpLib(libPopUpLib.a-i386-master.o)
duplicate symbol _kReachabilityChangedNotification in:
/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/Reachability.o
Vendors/Canvas/PopUpLib.framework/PopUpLib(libPopUpLib.a-i386-master.o)
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I think there are some setting in the build setting which have to change to successfully link this framework to app.
Thanks
Try having a look at this question and solution:
Conflict between class and static library
It explains how the .m files are possibly conflicting with each other.
Try out this solution and comment on the outcome.
Ld
/Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Products/Debug-iphoneos/Vocab.app/Vocab
normal armv7
cd "/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary
Tutor/Vocab"
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv 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/iPhoneOS7.0.sdk
-L/Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Products/Debug-iphoneos
-L/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary\
Tutor/Vocab/Airship
-L/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary\
Tutor/Vocab
-F/Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Products/Debug-iphoneos
-F/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary\
Tutor/Vocab/../iOS\ Framework
-F/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary\
Tutor/Vocab/../iOS\ Framework -filelist
/Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Intermediates/Vocab.build/Debug-iphoneos/Vocab.build/Objects-normal/armv7/Vocab.LinkFileList
-dead_strip -ObjC -lz -all_load -fobjc-link-runtime -miphoneos-version-min=6.0 -framework MapKit -lUAirship-2.1.0 -lUAirship-2.1.0 -framework Social -framework CoreData -framework CFNetwork -framework CoreLocation -framework StoreKit -framework
CoreTelephony -lz -lOAuth-ios6 -framework MobileCoreServices
-framework MediaPlayer -framework Security -lxml2 -framework QuartzCore -framework MessageUI -framework AVFoundation -framework
AudioToolbox -framework SystemConfiguration -framework CoreText
-lsqlite3 -framework UIKit -framework Foundation -framework CoreGraphics -framework WordnikUI -Xlinker -dependency_info -Xlinker
/Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Intermediates/Vocab.build/Debug-iphoneos/Vocab.build/Objects-normal/armv7/Vocab_dependency_info.dat
-o /Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Products/Debug-iphoneos/Vocab.app/Vocab
Undefined symbols for architecture armv7: "_RELEASE_SAFELY",
referenced from:
-[VocabViewController dealloc] in VocabViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
I am getting this error ,i dont know what does it mean i googled a
lot but not getting any solution.
I am going to submit my app and using libUAirship 1.1.2.a which
causes error Of UDID and apple failed validation.
SO download latest libUariship 2.1.0.a and after implemetaion of that
i am getting this error.Help me.
i tought its coming from xCode version and the macro defined. because RELEASE_SAFELY is not a function.
#define RELEASE_SAFELY(__POINTER) { [__POINTER release]; __POINTER = nil; }
source link this help you more