-
Notifications
You must be signed in to change notification settings - Fork 110
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
Mixed project swift and objc #9
Comments
Ok, maybe I know reason. Plugin I'am developing in Swift is in one of the .m files importing autogenerated ProductModuleName-Swift.h header. That is fine. But the problem is that ProductModuleName should be not name of plugin module, but actual application which is using the plugin. |
Hello, Did you well add your file in your |
It would not help. ProductModuleName depends on the name of App not plugin and as such is not know in advance. In other words when your swift plugin ProductModuleName is CDVMySwiftPlugin and you install it into your CoolCDVApp, then header has to import CoolCDVApp not CDVMySwiftPlugin |
Also to clarify bit more. This is all about exposing swift classes to objc. The other way round was already handled by this plugin. |
Hello @mauron85 , Thanks for your PR ! |
Hi. Great plugin. However I have problem with my mixed project where I'am using switft and objc. Bridging header is generated fine by this plugin, but somehow "ProductModuleName-header" for objc is not. I'll get compilation error:
fatal error: 'CDVUniversalGeolocation-Swift.h' file not found
Taking excerpt from apple docs related to this:
import "ProductModuleName-Swift.h"
The text was updated successfully, but these errors were encountered: