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

Fix undeclared class issue on iOS #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gentlejo
Copy link

No description provided.

@faku99
Copy link
Member

faku99 commented Aug 21, 2018

First of all, thank you very much for taking the time to do a PR.

Could you please rename the changed files to STStereoPlugin.h and STStereoPlugin.m for consistency? Thank you in advance.

@gentlejo
Copy link
Author

@faku99 I met some error when build on iOS like below. So I've changed name. If I changed name I could fix the issue. Is there any other workaround?

Error output from Xcode build:

** BUILD FAILED **
Xcode's output:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/gentlejo/Projects/myapp/ios/Runner/GeneratedPluginRegistrant.m:25:4: error: unknown receiver 'STStereoPlugin'; did you mean 'StereoPlugin'?
[STStereoPlugin registerWithRegistrar:[registry registrarForPlugin:@"STStereoPlugin"]];
^~~~~~~~~~~~~~
StereoPlugin
In module 'stereo' imported from /Users/gentlejo/Projects/myapp/ios/Runner/GeneratedPluginRegistrant.m:13:
/Users/gentlejo/Projects/myapp/build/ios/Debug-iphonesimulator/stereo/stereo.framework/Headers/StereoPlugin.h:5:12: note: 'StereoPlugin' declared here
@interface StereoPlugin : NSObject
^
1 error generated.

@gentlejo
Copy link
Author

@faku99 Have you check this?

@faku99
Copy link
Member

faku99 commented Oct 2, 2018

I just did. I don't get the compilation error you're referring to in your PR message.

Did you update Flutter to the latest version? It might fix things up.

@mglaman
Copy link

mglaman commented Aug 20, 2019

Would this fix #41?

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

Successfully merging this pull request may close these issues.

3 participants