Mobile-SDK-iOS icon indicating copy to clipboard operation
Mobile-SDK-iOS copied to clipboard

Error "library not found for -lDJIWidget" running the sample code for iOS

Open raphaelspimenta opened this issue 3 years ago • 9 comments

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:

Screen Shot 2021-04-28 at 20 35 43

Do I need to do anything else more than what's described in the docs?

raphaelspimenta avatar Apr 28 '21 23:04 raphaelspimenta

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

°°°

dji-dev avatar Apr 29 '21 09:04 dji-dev

Thanks for the quick response!

Yes, I did. I'm using the .xcowrkspace to open the project on XCode.

raphaelspimenta avatar Apr 29 '21 23:04 raphaelspimenta

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

°°°

dji-dev avatar May 06 '21 04:05 dji-dev

Hi and good day,

I also encounter similar problems. I'm using Xcode version 13.1 with M1 laptop.

Any solution available?

Aris-Edham avatar Nov 17 '21 04:11 Aris-Edham

Any update on this?

Nakzz avatar Feb 05 '22 20:02 Nakzz

Same issue on M2 macbook air

warycat avatar Oct 09 '22 00:10 warycat

Same issue Macbook M1 Pro with latest xCode.

jbierling avatar Feb 27 '23 14:02 jbierling

for anyone still seeing this issue...maybe my reply here can help https://github.com/dji-sdk/Mobile-SDK-iOS/issues/550#issuecomment-1533806166

hungeric avatar May 03 '23 21:05 hungeric

Same issue with Air M2, Xcode 15

danekpilar01 avatar Sep 26 '23 13:09 danekpilar01