Coder Social home page Coder Social logo

Comments (9)

dji-lisafedane avatar dji-lisafedane commented on September 26, 2024 1

Another user posted on Stack that could be useful: https://stackoverflow.com/questions/51992339/error-on-app-compilation-using-new-dji-uxsdk-ios-4-7-ffmpeg-library-not-found/51993999#51993999

from mobile-uxsdk-ios.

repomies avatar repomies commented on September 26, 2024

Tried to clean the project and build folder, and to delete and reinstall all pods. Still same problem.

from mobile-uxsdk-ios.

dji-lisafedane avatar dji-lisafedane commented on September 26, 2024

It looks like you missed bringing in the DJIWidget file - try integrating that, which should take care of your crash. If you need examples of how to do the integration see our Sample Code. Also, you must then remove the ios-videopreviewer project if you were using it previously.​

from mobile-uxsdk-ios.

repomies avatar repomies commented on September 26, 2024

@dji-lisafedane thanks, this ultimately solved the problem! (Yes, our app was using the old VideoPreviewer project.) Might be helpful for other developers to add a note on the exact integration steps somewhere in the SDK installation guide, too – it's a bit tricky to look just at the sample project to see which parts to embed and where.

from mobile-uxsdk-ios.

repomies avatar repomies commented on September 26, 2024

Ah, now I noticed it was already added there: b348db8 :)

Though still a bit more elaborated instructions might be useful – I first tried to just add the whole DJIWidget folder and that didn't work, I had to add the DJIWidget project and the FFmpeg framework separately, and then add them both to Embedded binaries under my build target.

from mobile-uxsdk-ios.

molynerd avatar molynerd commented on September 26, 2024

for those coming to this issue now, DJIWidget is its own pod now. steps:

  • remove VideoPreviewer from your frameworks folder
  • add pod 'DJIWidget' to your podfile
  • pod install
  • replace VideoPreviewer imports with DJIWidget
  • replace VideoPreviewer class references with DJIVideoPreviewer

from mobile-uxsdk-ios.

rlynjb avatar rlynjb commented on September 26, 2024

how do we solve this issue when im not using VideoPreviewer? sorry i am new to xcode and ios development.

i followed the instructions here: https://developer.dji.com/mobile-sdk/documentation/ios-tutorials/UXSDKDemo.html

and im getting this error when i compile and test on simulator ios 12
dyld: Library not loaded: @rpath/DJIWidget.framework/DJIWidget
Referenced from: /Users/user147152/Library/Developer/CoreSimulator/Devices/8341CFF8-3236-40CB-8339-21D791BD3F39/data/Containers/Bundle/Application/6287AD61-2F34-42A2-9A94-D492A41CFB8C/ImportSDKDemo.app/Frameworks/DJIUXSDK.framework/DJIUXSDK
Reason: image not found
(lldb)

from mobile-uxsdk-ios.

tarmopr avatar tarmopr commented on September 26, 2024

I have the exact same issue as @rlynjb :

I changed the Podfile as instructed (https://developer.dji.com/mobile-sdk/documentation/ios-tutorials/UXSDKDemo.html). Project builds fine, but running on the device it crashes and outputs the error:

dyld: Library not loaded: @rpath/DJIWidget.framework/DJIWidget
Referenced from: /private/var/containers/Bundle/Application/4AD487FA-EE69-4378-984F-1DB69B6BD969/FIS-iOS.app/Frameworks/DJIUXSDK.framework/DJIUXSDK
Reason: image not found

The Podfile config is following:

pod 'DJI-SDK-iOS', '~> 4.8'
pod 'DJI-UXSDK-iOS', '~> 4.8'
pod 'DJIWidget', '~> 1.2'

from mobile-uxsdk-ios.

tarmopr avatar tarmopr commented on September 26, 2024

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

from mobile-uxsdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.