dji-sdk / Mobile-SDK-iOS

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

Registration Error #525

Open HanJIk opened 1 year ago

HanJIk commented 1 year ago

Error Domain=DJISDKRegistration-ErrorDomain Code=-5 "The bundle identifier of your app should be identical to the one you registered on the website.(code:-5)"

DJI-William commented 1 year ago

If you are using iOS Sample, you must make usre the bundle identifier of your app is the same as the one you have applied for the app key.

HanJIk commented 1 year ago

Could an error occur due to the difference between '_' and '-'?

DJI-William commented 1 year ago

Of course, normally we are using '_'.

HanJIk commented 1 year ago

Does that mean an error occurs? I set the bundle identifier to XXX''XX, and I set it to XXX''XX in info, but it did not apply and was saved as XXX'-'XX. So is there an error?

DJI-William commented 1 year ago

I think it is better that you uploaded some screenshot for me to check what is the issue. I need the bundle identifier you applied for on our developer website and the one in your project.

HanJIk commented 1 year ago

image image

DJI-William commented 1 year ago

Your bundle identifier is weird, normally is like the iamge below, it should be com.xxx image

HanJIk commented 1 year ago

Should I download the dji mobile sdk file from github and edit the key value and bundle identifier value when running the sample project?

DJI-William commented 1 year ago

If you have downloaded the iOS MSDK Sample, you need to re-apply a new appkey with a bundle identifier that is identical with the Sample project. And then, you copy the appkey into your Sample project.

HanJIk commented 1 year ago

Where do you apply it?

HanJIk commented 1 year ago

Can I modify the marked part? Bundle Identifier format com.dji.sdksamplecode. application name Is it image ?

DJI-William commented 1 year ago

Don't modify the Bundle Identifier, you need to modify the DJISDKAppKey. You can apply the appkey from here. Link:https://developer.dji.com/user/apps/

HanJIk commented 1 year ago

In the case of the sample project, it means that only the Appkey is changed. In case of development, do you edit the bundle identifier and the Appkey as in the comments above?

DJI-William commented 1 year ago

In your case of your own development, when you create your own project. The bundle identifier will be your projects, so you just apply an appkey according to what is your IDE generated.