Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.7.1升级到4.8.1之后运行闪崩(组件化开发) #61

Open
MrHanbing opened this issue Dec 21, 2018 · 3 comments
Open

4.7.1升级到4.8.1之后运行闪崩(组件化开发) #61

MrHanbing opened this issue Dec 21, 2018 · 3 comments

Comments

@MrHanbing
Copy link

dyld: Library not loaded: @rpath/DJIWidget.framework/DJIWidget
Referenced from: /private/var/containers/Bundle/Application/041A9035-F827-41A7-8A06-BDB7B914367A/YZKFlyControl_DJ_Example.app/Frameworks/DJIUXSDK.framework/DJIUXSDK
Reason: image not found

旧版本使用正常

@dji-sdk
Copy link

dji-sdk bot commented Dec 21, 2018

Hi, have you resolved your issue with the latest DJI SDK version? If not, please help to report your issues to [email protected], as it's our official channel for developers to request DJI SDK support now. Thanks!

@tarmopr
Copy link

tarmopr commented Jan 2, 2019

I have the exact same issue. I have tried DJI SDK version 4.8.1 and 4.8.2 and both have the same issue.
The project builds fine but running on device the app crashes and Xcode shows error:

dyld: Library not loaded: @rpath/DJIWidget.framework/DJIWidget
  Referenced from: /private/var/containers/Bundle/Application/46FA6E50-E721-4EB4-B6A5-FDD738C82DED/FIS-iOS.app/Frameworks/DJIUXSDK.framework/DJIUXSDK
  Reason: image not found

@tarmopr
Copy link

tarmopr commented Jan 10, 2019

Adding use_frameworks! fixed the issue. I also had to add use_modular_headers! so that other Pods also worked.

My Podfile:

use_modular_headers!
target 'ProjectName' do
    use_frameworks!
    pod 'DJI-SDK-iOS', '~> 4.8'
    pod 'DJI-UXSDK-iOS', '~> 4.8'
    pod 'DJIWidget', '~> 1.2'
    ...
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants