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

Value of type 'UnityAppController' has no member 'unityMessageHandler' #377

Closed
mrdavidrees opened this issue Apr 8, 2021 · 7 comments
Closed

Comments

@mrdavidrees
Copy link
Contributor

Describe the bug
Latest Bitcode fix has broken iOS builds

UnityPlayerUtils.swift line 96
Value of type 'UnityAppController' has no member 'unityMessageHandler'

I can see this is related to the latest change to enable building with bitcode enabled.

@mrdavidrees
Copy link
Contributor Author

Was due to not updating the UnityFlutterIntegration.package

@LaTrita97
Copy link

Excuse me, I have the same error, what do you mean by not updating the UnityFlutterIntegration.package?
Do you mean the flutter_unity_widget package on flutter?

Thanks

@TaiTrien
Copy link

Any solutions? :(

@mrdavidrees
Copy link
Contributor Author

@rocaforarnelo
Copy link

Any solutions?

@mrdavidrees
Copy link
Contributor Author

Sometimes these extra lines that the build process is meant to add in fails to generate.

There should be two entries in UnityAppController.h and UnityAppController.m

I think if you look back at your git history you may be able to restore these files. Alternatively I've just had to keep runnning the build until they actually generate.

Screen Shot 2021-05-04 at 4 30 05 pm

@andyshephard
Copy link

To get this to work, I had to remove the Unity-iPhone.xcodeproj from within my project (Move to Trash), then regenerate the Unity project entirely. Be sure to also clean your build folder(s) to ensure that there are no leftover files that could interfere with any of the fresh build process.

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

5 participants