You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
quinnhoener
changed the title
iOS WebView throwing compiler errors
iOS XCode project throwing compiler errors
Jan 28, 2015
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.
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.
The text was updated successfully, but these errors were encountered: