DJI_Lisa
lvl.4
United States
Offline
|
For the developers who use the UX SDK, you may have run into some issues running the DJI sample apps in the simulator because of some recent changes to how Xcode 12 supports various architectures.
You may either see, no simulated devices listed or at build time get an error that the UX SDK is not found.
Our team is looking at ways to make running the UX SDK sample apps more seamless in the next release but for now you can find the solution from this Stack Overflow article: https://stackoverflow.com/questi ... lt-for-ios/63955114
Which states to do the following:
Step 1:
Add arm64 to the exclude list in the Target project (note that "Architectures" will be different than the screenshot. It will show "Standard Architectures". After running pod install after Step 2 it updates to "arm64 x86_64"):
SEE SCREENSHOT #1 BELOW
Step 2:
Add the following to your podfile and install:
post_install do |installer|
{{ installer.pods_project.build_configurations.each do |config|}}
{{ config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"}}
{{ end}}
{{ end}}
SEE SCREENSHOT #2 BELOW
*Please note, that you should have no issue running the sample apps on a real device - no modifications are needed after putting in your app key
|
|