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

(Android) IL2CPP scripting backend seems to be not supported #26

Closed
FejZa opened this issue Jul 26, 2018 · 5 comments
Closed

(Android) IL2CPP scripting backend seems to be not supported #26

FejZa opened this issue Jul 26, 2018 · 5 comments
Labels
how to Explains how to accomplish something

Comments

@FejZa
Copy link

FejZa commented Jul 26, 2018

I tried building an Arfoundation android sample with IL2CPP and it did not ask for camera permissions at all and hence failed. Once I changed to Mono scripting backend and re-deployed, it asked for permission.

@FejZa FejZa changed the title IL2CPP seems to be not supported (Android) IL2CPP scripting backend seems to be not supported Jul 26, 2018
@ghost
Copy link

ghost commented Jul 26, 2018

There is a bug in Unity where IL2CPP strips the entire ARCore assembly when it shouldn't. That will be fixed in a future update, but for now you can workaround this by adding a link.xml file to your Assets folder. We do this in the samples project, and you can just copy this file:

https://github.com/Unity-Technologies/arfoundation-samples/blob/master/Assets/link.xml

@ghost
Copy link

ghost commented Jul 26, 2018

I just tested pulling a fresh copy of this repo and deployed it to a Pixel using IL2CPP. Works as expected (including the prompt for camera permission), so I suspect you're just missing the link.xml.

@ghost ghost added the how to Explains how to accomplish something label Jul 26, 2018
@FejZa
Copy link
Author

FejZa commented Jul 26, 2018

Thanks! Totally missed that file.

@FejZa
Copy link
Author

FejZa commented May 10, 2019

Hi. Has this issue been fixed by now? So I can close the issue.

@tdmowrer
Copy link
Contributor

tdmowrer commented Oct 6, 2019

The link.xml workaround is no longer necessary.

@tdmowrer tdmowrer closed this as completed Oct 6, 2019
tdmowrer pushed a commit that referenced this issue Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
how to Explains how to accomplish something
Projects
None yet
Development

No branches or pull requests

2 participants