Mobile-SDK-iOS
Mobile-SDK-iOS copied to clipboard
Error "library not found for -lDJIWidget" running the sample code for iOS
Hi folks!
I downloaded the sample code and tried to run it following the documentation, but it logs the error below:
ld: warning: directory not found for option '-L/Users/raphael.pimenta/Library/Developer/Xcode/DerivedData/DJISdkDemo-cfvyajwmnmyvygdnpvqrxdyohuiu/Build/Products/Debug-iphonesimulator/DJIWidget
ld: warning: directory not found for option '-F/Users/.../Mobile-SDK-iOS/Sample Code/ObjcSampleCode/../DJIWidget'
ld: warning: directory not found for option '-F/Users/.../Mobile-SDK-iOS/Sample Code/ObjcSampleCode/../DJIWidget/FFmpeg'
ld: library not found for -lDJIWidget
I've installed the pods as you can see in the screenshot below:

Do I need to do anything else more than what's described in the docs?
Agent comment from Luce Luo in Zendesk ticket #47121:
Dear Customer,
Thank you for contacting DJI.
It seems everything installs successfully.
Have you used the .xcowrkspace to open the project?
Thanks,
Luce Luo
DJI Developer Support
inline703986573.png
°°°
Thanks for the quick response!
Yes, I did. I'm using the .xcowrkspace to open the project on XCode.
Agent comment from Luce Luo in Zendesk ticket #47121:
Dear Customer,
Thank you for contacting DJI. That's weird. Can you tell me what Xcode version using? The sample was based on the Xcode 12+, if you are on an old version please upgrade first.
Thanks,
Luce Luo
DJI Developer Support
°°°
Hi and good day,
I also encounter similar problems. I'm using Xcode version 13.1 with M1 laptop.
Any solution available?
Any update on this?
Same issue on M2 macbook air
Same issue Macbook M1 Pro with latest xCode.
for anyone still seeing this issue...maybe my reply here can help https://github.com/dji-sdk/Mobile-SDK-iOS/issues/550#issuecomment-1533806166
Same issue with Air M2, Xcode 15