DJI-Mobile-SDK-Tutorials / iOS-GSDemo

A demo teaches you how to construct a DJIWaypoint Mission app, which allows you to plot a flight route for your drone by placing waypoints on a map.
MIT License
27 stars 5 forks source link

Waypoint-Demo working in Bridge-App but not using actual app on iPhone #12

Closed dklinger closed 6 years ago

dklinger commented 6 years ago

Description of the issues: Waypoint-Tutorial works only using SDK-Bridge-App but not using the deployed app on the iPhone.

The following happen on using the actual app on the iPhone: On the following code-line I get the error: "This feature is not supported in SDK (code:-1000)" [[self missionOperator] loadMission:self.waypointMission];

If I open the app in the simulator conntected using the SDK-Bridge-App everything works fine.

Any recommendations on what I'm doing wrong or what I have missed? I think the problem is around the rights of my app. As the Bridge-App is an official app on the app store, maybe there are some settings in there which I have not set within my app. But apart from setting com.dji.video, com.dji.protocol and com.dji.common within info.plist I don't know what to change. I am deploying using "Free Provisioning", not using "Automatic Provisioning". Maybe that is the problem and i need an official, paid Apple-Dev-Account. If that's the case, that would be ok, just give me a few hints :)

Steps to reproduce the bug or crash issues(It would be great if you can provide this) Create a waypoint-mission using your tutorial, deploy it on iOS 11.3 using the current SDK, connected to a Mavic Pro.

dklinger commented 6 years ago

Issue closed as I've forgotten to call "[DJISDKManager startConnectionToProduct];" after finishing registration. That happens if you're doing two tutorials at once and thinking you do not have to have a look at functions you saw in the tutorial before :)