Xcode Change Your Bundle Identifier to a Unique String to Try Again

To have a better experience of learning how to get started with the DJI iOS Mobile SDK, please check this Getting Started Video.

Register equally a DJI Developer

Register for a DJI Developer account here.

During the registration procedure, email data and a credit card or telephone number will need to be supplied to verify registration. Whatsoever credit card information given will only exist used for verification and will not be charged.

Generate an App Fundamental

Every application needs a unique App Key to initialize the SDK.

To create an App Fundamental for an application:

Go to the DJI developer Developer Center

  • Select the "Apps" tab on the left.

  • Select the "Create App" button on the correct.

  • Enter the name, platform, package identifier, category and description of the application.

    • For iOS, the package identifier is the Bundle Identifier.
    • For Android, the package identifier is the Package Name.
  • An application activation email will be sent to complete App Central generation.

  • The App Key will appear in the developer heart, and can be copied and pasted into the awarding.

iOS Sample App

iOS Sample Code Setup

Download or clone the iOS Sample Github Projection from: https://github.com/dji-sdk/Mobile-SDK-iOS.

The sample code includes both an Objective C sample projection and a Swift Sample project.

The sample project is integrated with DJI iOS SDK CocoaPods - after you take downloaded the project delight follow the the beneath steps to install DJISDK.framework using CocoaPods:

1. Install CocoaPods

Open up Terminal and change to the download projection'southward directory, enter the following command to install information technology:

              sudo precious stone install cocoapods              

The process may take a long fourth dimension, please wait. For further installation instructions, please check this guide.

2. Install SDK with CocoaPods in the Project

Run the following command in the ObjcSampleCode and SwiftSampleCode paths:

              pod install              

If you install it successfully, you lot should get the messages like to the following:

              Analyzing dependencies              
Downloading dependencies
Installing DJI-SDK-iOS (4.12)
Installing DJIWidget (one.6.2)
Generating Pods project
Integrating client projection

[!] Delight shut any electric current Xcode sessions and utilize `DJISdkDemo.xcworkspace` for this project from now on.
Pod installation complete! There is 1 dependency from the Podfile and ane total pod
installed.

Notation: If you saw "Unable to satisfy the following requirements" outcome during pod install, please run the following commands to update your pod repo and install the pod again:

              pod repo update              
pod install

Objective C App Central Setup

Navigate to the ObjcSampleCode folder and open up the DJISdkDemo.xcworkspace project in Xcode.

  • Change the Bundle Identifier to a unique identifier and use it to generate an App Fundamental.

  • Paste the generated App Key string into the DJISDKAppKey string value of the info.plist file of the Xcode project:

appKeyInPlist

Swift App Central Setup

Navigate to the DJISDKSwiftDemo folder and open the DJISDKSwiftDemo.xcodeproj project in Xcode.

  • Change the Bundle Identifier to a unique identifier and utilize it to generate an App Key.

  • Paste the generated App Key string into the DJISDKAppKey string value of the info.plist file of the Xcode projection the same every bit the Objective C App Key Setup.

Android Sample App

The SDK doesn't need to be downloaded to run the Android sample application equally information technology's already included in the project.

Android Sample Lawmaking Setup

Download or clone the Android Sample Github Project from: https://github.com/dji-sdk/Mobile-SDK-Android.

Open the project in Android Studio and paste the generated App Key string into android:value in the "com.dji.sdk.API_KEY" meda-data element in the "AndroidManifest.xml" file.

                            




<meta-data
android:proper noun="com.dji.sdk.API_KEY"
android:value="" />

Run the Sample App

Compile the sample application to the Android or iOS Mobile Device. So the Mobile Device can be connected to the DJI product to run the Sample App.

For Aircraft that use Lightbridge equally the wireless link between the Remote Controller and the Aircraft, the Mobile Device is continued to the product past USB.

For Aircraft or products that apply WiFi as a wireless link, the Mobile Device is connected to the production by WiFi.

USB Connection Procedure

Mavic Pro, Phantom 4, Phantom four Professional, Inspire series, Phantom 3 Professional, Phantom three Advanced, M100, M600, M600 Pro:

Turn on the Remote Controller.

  • Turn on the Shipping and wait until the Remote Controller has connected with the Shipping.
  • Connect iOS/Android Mobile Device to the Remote Controller using a Lightning (iOS) or USB (Android) cable.
  • Run Sample App on the Mobile Device.

Notes:

If you lot are using an Android Device, please make sure your DJI Remote Controller supports AOA earlier you test the Sample app. Yous can upgrade your DJI Remote Controller to the latest firmware and cheque if there is a dialog pops up when yous connect the app to it like this:

dialog

To learn how to change the default app for USB accessory, please cheque these ii FAQs: Android Device, Samsung Device.

WiFi Connection Process

Phantom iii Standard, Phantom three 4K, Spark:

Turn on the Remote Controller.

  • Connect Mobile Device to the WiFi network created past the Remote Controller.
  • Plough on the Aircraft and wait until the Remote Controller has connected with the Aircraft.
  • Run Sample App on the Mobile Device.

Osmo Series, Mavic Pro, Spark:

Plow on the product (Osmo or aircraft).

  • Connect Mobile Device to the WiFi network created by the production.
  • Run Sample App on Mobile Device.

fewprearon86.blogspot.com

Source: https://developer.dji.com/mobile-sdk/documentation/quick-start/index.html

0 Response to "Xcode Change Your Bundle Identifier to a Unique String to Try Again"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel