-
Notifications
You must be signed in to change notification settings - Fork 506
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' #426
Comments
I got the same problem and did find out, that sometimes export did not generate proper AppController class. What i mean is that the changes that are needed for this package are missing. Just copy those files to your project ( xxxx/ios/unitylibrary/classes/) and it should be fine. If you check then you see that there are additional exports which the properties that you need. |
I had the same issue. Did you find the solution for it @faridg18 ? Copying the files that @camao-apo provided gave me new compiler error, line 454 in UnityAppController.mm "Use of undeclared identifier 'UnityDisplayLinkCallback'" |
I have the same issue, did anyone solve it? |
So it seems that export from Unity did not went well. Two questions:
|
|
ok, here's the solution for those that are not able to read the instructions (including myself): DO NOT USE THE REGULAR BUILD OPTION WITHOUT THE FLUTTER UNITY PLUGIN! There is a reason for the existence of this plugin, and it is mandatory to do the export for Android and iOS via the "Flutter" menu. Just for reference, if you are working on the Unity part and you want to "append" instead of build anew, you might have to fix the For iOS, replace this line in DoBuildIOS() -
with
For Android, replace this line in DoBuildAndroid() -
with
|
The issue has been asked and answered here: #377 It's an error that's occurring when you're exporting the iOS project from Unity using an older FlutterUnityIntegration package. Use this one (v4.1.0): You'll know that it's exported correctly when your UnityAppController.h file contains these changes: NOTE: Be sure to follow the steps mentioned in the above comment by @belveder79 in order to export iOS without errors. |
I just found a reliable way to replicate this error. Reproduction
This results in an incomplete build, because any code in The build script will change the buildtarget automatically, but somehow the Current solutionChange the Unity build target before clicking Flutter -> Export. If you use batchmode or command line, make sure to include |
Describe the bug
I am past the steps of compiling unity an trying to run the app. Xcode gives me the following message: "Value of type 'UnityAppController' has no member 'unityMessageHandler'"
![Screen Shot 2021-06-29 at 10 19 58 AM](https://user-images.githubusercontent.com/17852285/123833435-90883500-d8c3-11eb-9624-f6a7d2decd48.png)
**Screenshots**Unity (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: