dji-sdk / Mobile-SDK-iOS

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

Cannot run the swift demo on M1 Macbook pro #554

Closed huaxiao87 closed 10 months ago

huaxiao87 commented 10 months 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 10 months ago

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