dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
576 stars 255 forks source link

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

Open raphaelspimenta opened 3 years ago

raphaelspimenta commented 3 years ago

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?

dji-dev commented 3 years ago

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

°°°

raphaelspimenta commented 3 years ago

Thanks for the quick response!

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

dji-dev commented 3 years ago

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

°°°

Aris-Edham commented 2 years ago

Hi and good day,

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

Any solution available?

Nakzz commented 2 years ago

Any update on this?

warycat commented 1 year ago

Same issue on M2 macbook air

jbierling commented 1 year ago

Same issue Macbook M1 Pro with latest xCode.

hungeric commented 1 year ago

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

danekpilar01 commented 9 months ago

Same issue with Air M2, Xcode 15