dji-sdk / Mobile-SDK-iOS

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

Warning: "Error creating LLDB target at path... using an empty LLDB target which can cause slow memory reads from remote devices" using Xcode and MacBook with Apple M1 processor #535

Open YaroTs opened 1 year ago

YaroTs commented 1 year ago

Device: any Mac device with Apple M1 processor Xcode 13.4.1

Steps to reproduce:

  1. Create empty project
  2. Add DJI SDK using CocoaPods
  3. Build and run project on iOS simulator
  4. Notice that first message in console is warning "Error creating LLDB target at path... using an empty LLDB target which can cause slow memory reads from remote devices"

That's a content of podfile:

source 'https://cdn.cocoapods.org/'

platform :ios, '13.0'

def pods

  pod 'DJI-SDK-iOS', '~> 4.16.1'

end

target 'warningLLDB' do
  use_frameworks!
  inhibit_all_warnings!

  pods

  target 'warningLLDBTests' do
    inherit! :search_paths
  end

  target 'warningLLDBUITests' do

  end
end

post_install do |installer_representation|
  installer_representation.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
        config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
    end
  end
end

I have a plenty of other libs in my primary project, but this message appears only if DJI SDK is included.

DJI-William commented 1 year ago

Unfortunately our iOS MSDK does not supported running on M1 chip Macbook, you have to use Intel chip.