Open lacklock opened 3 years ago
Agent comment from Luce Luo in Zendesk ticket #39280:
Dear Customer,
Thank you for contacting DJI. Sorry, I'm not sure it's clear for me. Can you please show me a screenshot or more detail where the VALID_ARCHS configured in Widger?
Thanks,
Luce Luo DJI Developer Support
On Xcode12 ‘VALID_ARCHS’ will cause build error of swift project.
Agent comment from Luce Luo in Zendesk ticket #39280:
Dear Customer,
Thank you for contacting DJI. I see, will escalate this issue to the engineer.
Thanks,
Luce Luo DJI Developer Support
Replace it to this:
s.xcconfig = { 'EXCLUDED_ARCHS' => 'i386', 'ONLY_ACTIVE_ARCH' => 'YES'}
On Xcode 12.1 when you don't remove that VALID_ARCHS, widget won't build for Simulator. More info here https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-object-file-built-for-ios
And solution here:
On Xcode 12 ‘VALID_ARCHS’ is deprecated,should replace with ‘EXCLUDED_ARCHS’。
DJI-MSDK is working fine。