Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove xcconfig 'VALID_ARCHS' #23

Open
lacklock opened this issue Sep 18, 2020 · 5 comments
Open

remove xcconfig 'VALID_ARCHS' #23

lacklock opened this issue Sep 18, 2020 · 5 comments

Comments

@lacklock
Copy link

On Xcode 12 ‘VALID_ARCHS’ is deprecated,should replace with ‘EXCLUDED_ARCHS’。

DJI-MSDK is working fine。

image

@dji-dev
Copy link
Contributor

dji-dev commented Sep 18, 2020

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

@lacklock
Copy link
Author

image
On Xcode12 ‘VALID_ARCHS’ will cause build error of swift project.

@dji-dev
Copy link
Contributor

dji-dev commented Sep 21, 2020

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

@lacklock
Copy link
Author

image
Replace it to this:
s.xcconfig = { 'EXCLUDED_ARCHS' => 'i386', 'ONLY_ACTIVE_ARCH' => 'YES'}

@mauron85
Copy link

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:

https://stackoverflow.com/a/63714000/3896616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants