dji-sdk / Mobile-SDK-iOS

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

DJI Objective C Demo Fails on Start #367

Open schromotion opened 4 years ago

schromotion commented 4 years ago

Hi,

I'm following the instructions on this page to try to get the sample application working.

  1. I cloned the repo, installed the pods, generated and setup the app key

  2. When I build 135 warnings show, but none of them seem like deal breakers.

  3. When I run the application on my phone it crashes with this output and hangs on the splash screen "DJI Mobile SDK Sample Code"

 dyld: Library not loaded: @rpath/DJINetworkRTKHelper.framework/DJINetworkRTKHelper
    Referenced from: /private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/DJISdkDemo
    Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/Frameworks/DJINetworkRTKHelper.framework/DJINetworkRTKHelper: code signature invalid for '/private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/Frameworks/DJINetworkRTKHelper.framework/DJINetworkRTKHelper'

    /private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/Frameworks/DJINetworkRTKHelper.framework/DJINetworkRTKHelper: stat() failed with errno=25
    /private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/Frameworks/DJINetworkRTKHelper.framework/DJINetworkRTKHelper: code signature invalid for '/private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/Frameworks/DJINetworkRTKHelper.framework/DJINetworkRTKHelper'

    /private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/Frameworks/DJINetworkRTKHelper.framework/DJINetworkRTKHelper: stat() failed with errno=1
    /private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/Frameworks/DJINetworkRTKHelper.framework/DJINetworkRTKHelper: code signature invalid for '/private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/Frameworks/DJINetworkRTKHelper.framework/DJINetworkRTKHelper'

    /private/var/containers/Bundle/Application/E6C6B19B-89D1-4A2D-B948-7927AEEA156D/DJISdkDemo.app/Frameworks/DJINetworkRTKHelper.framework/DJINetworkRTKHelper: stat() failed with errno=1
    (lldb) `

Screenshot of the Workspace at Runtime.

image

Any ideas of what might be broken or where I can start to look? Thanks!

dji-dev commented 4 years ago

Agent comment from Luce Luo in Zendesk ticket #35198:

Dear Customer,

Thank you for contacting DJI. It seems that fails to find the framework. I try to find documentation about how to integrate the MSDK project, please follow it. https://developer.dji.com/mobile-sdk/documentation/application-development-workflow/workflow-integrate.html#xcode-project-integration

If the problem again, please send us some screenshots of which step in trouble.

Thanks,

Luce Luo DJI Dev Team

schromotion commented 4 years ago

Hi Luce Luo,

I followed that tutorial and was able to get a demo app to register. I verified all of the key steps from that demo in Objective C Sample App - but i'm still hitting the same problem

I'm using XCode 11.5, iPhone 11 (13.3.1), a Mavic Pro (eventually), and these machine settings image

Any ideas? Thanks for the help so far!

kellen

dji-dev commented 4 years ago

Agent comment from Luce Luo in Zendesk ticket #35198:

Dear Customer,

Thank you for contacting DJI. I see. Please try to add the below into your pod file and install it again with "pod repo update", "pod install". pod 'DJI-SDK-iOS', '~> 4.12' pod 'DJIWidget', '~> 1.6.2' pod 'DJIFlySafeDatabaseResource', '~> 01.00.01.17' pod 'DJINetworkRTKHelper', '~> 1.1'

To refer to this: https://github.com/dji-sdk/Mobile-SDK-iOS/blob/master/Sample%20Code/ObjcSampleCode/Podfile

Thanks,

Luce Luo DJI Dev Team

schromotion commented 4 years ago

Luce Lou,

Thanks for the help!

This is my podfile. It matches the podfile in the sample repo (I cloned this repo) image

I only added a "project 'DJISDKDemo.xcodeproj'" line after getting this failure with the exact clone podfile. Failure message before line addition and success message after line addition below.

image

Is there a different file I can share to help the debug process?

Thanks again,

Kellen

dji-dev commented 4 years ago

Agent comment from Luce Luo in Zendesk ticket #35198:

Dear Customer,

Thank you for contacting DJI. That's so weird.​ I try to download a new project and run it after 'pod repo update', 'pod install' commands inputted. Everything works well here.

Can you please tell me which pod version you are using? I tried it with 1.9.3, please try to upgrade it if you have an old one used and try it again.

Thanks,

Luce Luo DJI Dev Team
截屏2020-06-02 下午3.01.30.png