Mobile-SDK-iOS
Mobile-SDK-iOS copied to clipboard
ld: library not found for -lDJIWidget
I have installed DJIWidget with cocoaPods, but when I tried to build my iOS app, ld: library not found for -lDJIWidget is raised. I also tried Step 5 in this cocoapods guideline https://guides.cocoapods.org/using/troubleshooting.html, but it doesn't work. Can anyone help? XD
Ld /Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Build/Products/Debug-iphoneos/DJISDKSwiftDemo.app/DJISDKSwiftDemo normal (in target 'DJISDKSwiftDemo' from project 'DJISDKSwiftDemo') cd /Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -L/Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Build/Products/Debug-iphoneos -LPods -LPods/DJI-SDK-iOS -LPods/DJIFlySafeDatabaseResource -LPods/DJIWidget -LPods/Headers -LPods/Local\ Podspecs -LPods/Target\ Support\ Files -LPods/DJI-SDK-iOS/iOS_Mobile_SDK -LPods/DJIFlySafeDatabaseResource/DJIFlySafeDatabaseResource.bundle -LPods/DJIWidget/DJIWidget -LPods/DJIWidget/FFmpeg -LPods/Headers/Private -LPods/Headers/Public -LPods/Target\ Support\ Files/DJI-SDK-iOS -LPods/Target\ Support\ Files/DJIFlySafeDatabaseResource -LPods/Target\ Support\ Files/DJIWidget -LPods/Target\ Support\ Files/Pods-DJISDKSwiftDemo -LPods/DJIFlySafeDatabaseResource/DJIFlySafeDatabaseResource.bundle/Contents -LPods/DJIWidget/DJIWidget/RTMPProcessor -LPods/DJIWidget/DJIWidget/VideoLiveCamera -LPods/DJIWidget/DJIWidget/VideoPreviewer -LPods/DJIWidget/DJIWidget/VideoService -LPods/Headers/Private/DJIWidget -LPods/Headers/Public/DJIWidget -LPods/DJIFlySafeDatabaseResource/DJIFlySafeDatabaseResource.bundle/Contents/Resources -LPods/DJIFlySafeDatabaseResource/DJIFlySafeDatabaseResource.bundle/Contents/_CodeSignature -LPods/DJIWidget/DJIWidget/VideoLiveCamera/RecordVideo -LPods/DJIWidget/DJIWidget/VideoLiveCamera/ShootPhoto -LPods/DJIWidget/DJIWidget/VideoPreviewer/H264Parser -LPods/DJIWidget/DJIWidget/VideoPreviewer/Helper -LPods/DJIWidget/DJIWidget/VideoPreviewer/Lb2AUD -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render -LPods/DJIWidget/DJIWidget/VideoService/H1Camera -LPods/DJIWidget/DJIWidget/VideoService/VTH264Encoder -LPods/DJIWidget/DJIWidget/VideoLiveCamera/RecordVideo/VideoWriter -LPods/DJIWidget/DJIWidget/VideoPreviewer/Helper/DJIImageCache -LPods/DJIWidget/DJIWidget/VideoPreviewer/Helper/DJIImageCalibrationFrame -LPods/DJIWidget/DJIWidget/VideoPreviewer/Helper/ImageCalibrate -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/Base -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/CalibrateFilter -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/ColorMatrixFilter -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/ColorMonitor -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/ColorSpaceFilter -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/HSBFilter -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/HighLightShadowFilter -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/LookupFilter -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/ReversDLogLookup -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/ScaleFilter -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/SobelFilter -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/Texture -LPods/DJIWidget/DJIWidget/VideoPreviewer/Render/Upload -LPods/DJIWidget/DJIWidget/VideoLiveCamera/RecordVideo/VideoWriter/Context -LPods/DJIWidget/DJIWidget/VideoPreviewer/Helper/ImageCalibrate/Holder -LPods/DJIWidget/DJIWidget/VideoPreviewer/Helper/ImageCalibrate/PixelBufferProvider -LPods/DJIWidget/DJIWidget/VideoLiveCamera/RecordVideo/VideoWriter/Context/Muxer -F/Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Build/Products/Debug-iphoneos -F/Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Pods/DJI-SDK-iOS/iOS_Mobile_SDK -F/Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Pods/DJIWidget/FFmpeg -filelist /Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Build/Intermediates.noindex/DJISDKSwiftDemo.build/Debug-iphoneos/DJISDKSwiftDemo.build/Objects-normal/arm64/DJISDKSwiftDemo.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Build/Intermediates.noindex/DJISDKSwiftDemo.build/Debug-iphoneos/DJISDKSwiftDemo.build/Objects-normal/arm64/DJISDKSwiftDemo_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -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/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Build/Intermediates.noindex/DJISDKSwiftDemo.build/Debug-iphoneos/DJISDKSwiftDemo.build/Objects-normal/arm64/DJISDKSwiftDemo.swiftmodule -ObjC -lDJIWidget -framework DJISDK -framework FFmpeg -lDJIWidget -lPods-DJISDKSwiftDemo -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Build/Intermediates.noindex/DJISDKSwiftDemo.build/Debug-iphoneos/DJISDKSwiftDemo.build/Objects-normal/arm64/DJISDKSwiftDemo_dependency_info.dat -o /Users/jzh/Documents/Mobile-SDK-iOS/Sample\ Code/SwiftSampleCode/Build/Products/Debug-iphoneos/DJISDKSwiftDemo.app/DJISDKSwiftDemo
ld: library not found for -lDJIWidget clang: error: linker command failed with exit code 1 (use -v to see invocation)
Agent comment from Luce Luo in Zendesk ticket #46502:
Dear Customer,
Thank you for contacting DJI.
Thanks,
Luce Luo DJI Developer Support
Agent comment from Hummels Lei in Zendesk ticket #46502:
Dear Jason0917,
We value your experience with DJI Developer Support! You ticket has been closed.
If your request in ticket has been resolved. Please give us your feedback by participating in this customer survey via the following link:
https://questionnaire.djicorp.com/en/30/?ticketid=46502&groupname=DJI_Dev_Team&agent=LuceLuo
Notice: If your request hasn't been resolved, please ignore the above survey and reply to this email directly.
Thank you for your participation!
Best regards,
DJI Developer Support
Any update on this?
Same problem.
for anyone who need help check out this comment i had..i hope it will help you https://github.com/dji-sdk/Mobile-SDK-iOS/issues/550#issuecomment-1533806166