dji-sdk / Mobile-UXSDK-iOS

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of iOS applications using the DJI Mobile SDK.
Other
73 stars 43 forks source link

Can't get Mobile-UXSDK-iOS to build in non bitcode and framework environment #54

Closed valentary closed 5 years ago

valentary commented 5 years ago

I'm trying to get an FPV view, but the SDKs confound me at every step.

We're running in a cocoapods environment, ultimately the SDKs will be dependents of another cocoapod. We do not use Bitcode. We use use_frameworks! for dynamic frameworks and we're in a dual Swift/Obj-c environment. I've tried using DJIWidget but we can't get that to load either (I'll make a seperate issue).

So, 1st Problem, I created a empty demo project here : https://github.com/valentary/DJISDKTest It's a default single view swift project, all I did was to configure the podfile and run pod install. If we try and build we get a link error : ld: '<home_dir>/DJISDKTest/DJISDKTest/Pods/DJI-SDK-iOS/iOS_Mobile_SDK/DJISDK.framework/DJISDK' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '<home_dir>/DJISDKTest/DJISDKTest/Pods/DJI-SDK-iOS/iOS_Mobile_SDK/DJISDK.framework/DJISDK' for architecture arm64

This only happens if I include the DJI-UXSDK-iOS pod. We don't want bitcode anyway, so I'm a bit unclear why it's asking for it.

valentary commented 5 years ago

Demo project not correct