stereo icon indicating copy to clipboard operation
stereo copied to clipboard

Fix undeclared class issue on iOS

Open gentlejo opened this issue 7 years ago • 5 comments

gentlejo avatar Aug 19 '18 02:08 gentlejo

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.

faku99 avatar Aug 21 '18 14:08 faku99

@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 <FlutterPlugin> ^ 1 error generated.

gentlejo avatar Aug 22 '18 12:08 gentlejo

@faku99 Have you check this?

gentlejo avatar Sep 28 '18 08:09 gentlejo

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.

faku99 avatar Oct 02 '18 13:10 faku99

Would this fix #41?

mglaman avatar Aug 20 '19 20:08 mglaman