'Library not found for -lDJIWidget

I am attempting to run the sample developer dji application for the iOS platform via Xcode version 13.2.1. Upon building the application for the ObjectiveC and Swift sample code, I get an error indicating "Library not found for -lDJIWidget".

mac os: 12.2.1

I am a new macOS user, and this is my first time learning to build an iOS application for DJI. How can I resolve this error?

Trouble shooting steps taken

  • ensure cocoapods is installed for both sample codes (objectiveC and swift code)
  • use the <Project>.xcworkspace file for setting the bundle identifier and app key


Solution 1:[1]

Connect your ios device to your computer and run the build off of it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Xavier Guihot