Please select Into the mobile phone version | Continue to access the computer ver.
[SDK][Swift] DJIWidget error
1522 2 2021-1-8
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_ExdexQw4vQQx
New

Japan
Offline

When I build DJI-sdk sample code for swift, some error happend.

Xcode build failed message:

```
ld: warning: directory not found for option '-L/Users//Library/Developer/Xcode/DerivedData/DJISDKSwiftDemo-gycpbdwdcadfmfaxpnqhcfhkwgrh/Build/Products/Debug-iphonesimulator/DJIWidget'
ld: library not found for -lDJIWidget
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
Are there the person who can understand this problem ?


2021-1-8
Use props
想养一条边牧
lvl.3
Flight distance : 1155 ft
Hong Kong
Offline

Have you installed SDK and DJIWidget with CocoaPods in the Project?
I try to find a guide steps for you, please check if any missing.
https://github.com/dji-sdk/Mobile-SDK-iOS
2021-1-11
Use props
djiuser_SOsMqwiQcCmS
lvl.1
Flight distance : 2835 ft
Canada
Offline

Still a problem from what I can see as I am getting the same errors.

It appears from other postings that DJIWidget is only accessible when a *physical device* is connected to the computer compiling and running the app being build (ref below)

If that is the case, this is a problem for two reasons below for @DJI and I think you should look seriously at it. If that is NOT the case can @DJI PLEASE provide some kind of guidance as to how to deal with this?

>1. If we need a physical device connected, no developer would be able to design any app (we need to build them iteratively while we write them!) without a device (iPhone etc.) plugged into the development machine. If we are building an app for more than one device and trying to make sure it has cross-compatibility, we can't, the quality of the apps will suffer a great deal, unless we all buy the latest iPhone iPad, iPad mini etc. etc.
>2. if we need a physical device it would be a huge barrier to an already restricted development environment under Apple. just my example, some of us of us run hosted remote Apple instances such as "macincloud" to be sure we have the latest versions of Xcode etc. and it is impossible to use any kind of hosted service like this and plug in an iPhone to it.

I understand we can't pull flight data, or anything really off of a drone without being plugged into the real device running the app but is that what the restriction is? By essentially locking the build function without a device connected to the computer, this prevents even confirming GUI layouts, producing a draft app to run in alpha or beta testing or anything else, as we can't even build/compile the apps we're writing.

I can confirm that per this link https://github.com/dji-sdk/DJIWidget the DJIWidget is included in my podfile for the evaluation code DJI provides for their SDK sample code.

_Other instances of this being reported and seeming unfixed in years?_
https://stackoverflow.com/questi ... ot-loaded-djiwidget
https://github.com/dji-sdk/Mobile-SDK-iOS/issues/460

_suggestions that connecting an iOS device solves the issue?_
https://www.appsloveworld.com/sw ... ound-for-ldjiwidget
2022-10-7
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules