dji-sdk / Mobile-SDK-iOS

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

Cannot run the swift demo on M1 Macbook pro #554

Closed huaxiao87 closed 1 year ago

huaxiao87 commented 1 year ago

Firstly, it says cannot find the DJIWidget.h:

/Users/huaxiao/GitHub/Mobile-SDK-iOS/Sample Code/SwiftSampleCode/DJISDKSwiftDemo/DJIWidget-Bridging-Header.h:12:9: 'DJIWidget/DJIWidget.h' file not found

Then, after copying the DJIWidget from the Pod folder, it says this import is problematic:

import <DJIWidget/DJILiveViewColorMonitorFilter.h>

/Users/huaxiao/GitHub/Mobile-SDK-iOS/Sample Code/SwiftSampleCode/DJISDKSwiftDemo/DJIWidget/DJIWidget.h:19:9: 'DJILiveViewColorMonitorFilter.h' file not found with include; use "quotes" instead

huaxiao87 commented 1 year ago

Just connect to the actual machine, say macbook pro, instead of building for simulators.