dji-sdk / Mobile-UXSDK-iOS

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of iOS applications using the DJI Mobile SDK.
Other
72 stars 40 forks source link

dyld: Library not loaded: @rpath/DJIWidget.framework/DJIWidget #64

Open UnknownWarning opened 5 years ago

UnknownWarning commented 5 years ago

ISSUE: dyld: Library not loaded: @rpath/DJIWidget.framework/DJIWidget

Description

dyld: Library not loaded: @rpath/DJIWidget.framework/DJIWidget
    Referenced from: /Users/... .../Frameworks/DJIUXSDK.framework/DJIUXSDK
    Reason: image not found

Environment

objc + Xcode 10.1 Create a new project and create a Podfile, nothing else added. The Podfile is show below:

platform :ios, '10.0'

target 'DJISDK4.9' do
    pod 'DJI-SDK-iOS'
    pod 'DJI-UXSDK-iOS'
    pod 'DJIWidget'
end

even if I set the specific version of DJISDK and UXSDK, the project still got the same problem.

Has anyone met this issue?

dji-sdk[bot] commented 5 years ago

Hi, there are two options for you to ask for help:

  1. Post your issues on StackOverflow: https://stackoverflow.com/questions/tagged/dji-sdk, the community can help you.

  2. Report your issues to dev@dji.com, as it's our official channel for developers to request DJI Developer Support now.

For DJI Developer Support, we have the following three tiers:

UnknownWarning commented 5 years ago

Here is the link of my demo:

https://github.com/UnknownWarning/DJISDK4.9

vivekTusiyd commented 5 years ago

@UnknownWarning

I am also facing the same issue:-

dyld: Library not loaded: @rpath/DJIWidget.framework/DJIWidget Referenced from: /private/var/containers/Bundle/Application/6F0ABB75-34B6-45E1-8737-8EBF8C1E0829/Waypoint2DSample.app/Frameworks/DJIUXSDK.framework/DJIUXSDK Reason: image not found

Environment :

Xcode 10.0 Swift 4.0

platform :ios, '9.0'

use_modular_headers! target 'Waypoint2DSample' do pod 'GoogleMaps' pod 'Google-Maps-iOS-Utils' pod 'IQKeyboardManagerSwift' pod 'DJI-SDK-iOS' , '~> 4.10’ pod 'DJI-UXSDK-iOS' , '~> 4.10' pod 'DJIWidget' , '~> 1.5' end

I followed this link also but no help.

https://github.com/dji-sdk/Mobile-UXSDK-iOS/issues/51

JohnnyWhoo commented 4 years ago

@UnknownWarning Have you resolved the issue?

nacho-carnicero commented 4 years ago

You should add use_frameworks! to your Podfile. For instance in the repo that @UnknownWarning shared the Podfile should look like:

platform :ios, '10.0'

target 'DJISDK4.9' do
    use_frameworks!
    pod 'DJI-SDK-iOS'
    pod 'DJI-UXSDK-iOS'
    pod 'DJIWidget'
end
cxd1314 commented 2 years ago

Amazing! It works! Thank you from China!