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

iOS XCode project throwing compiler errors #25

Closed
quinnhoener opened this issue Jan 28, 2015 · 1 comment
Closed

iOS XCode project throwing compiler errors #25

quinnhoener opened this issue Jan 28, 2015 · 1 comment

Comments

@quinnhoener
Copy link

I have a simple scene that adds a web view to the screen. Exporting the project to XCode and trying to run throws compiler errors. It looks like the WebView.mm isn't compatible with Automatic Reference Counting (ARC) which is turned on in the Xcode Project.

I've found references on being able to turn off ARC for specific files in the XCode project, but I'm wondering if there's a way to make this work without having to change the XCode project every time I build.

I'm using Unity 5 beta v18

Thanks in advance for any help on this.

@quinnhoener quinnhoener changed the title iOS WebView throwing compiler errors iOS XCode project throwing compiler errors Jan 28, 2015
@quinnhoener
Copy link
Author

Figured this out! I didn't realize Unity allowed you to put Compile flags on individual plugin files. For those of you that run into this, simply open your Unity project, select Assets/Plugins/iOS/WebView file. Notice in the inspector all of the things. Towards the bottom is "Compile flags" add this to it: -fno-objc-arc

Now Unity will compile the XCode project with no ARC on that one file.

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

1 participant