-
Notifications
You must be signed in to change notification settings - Fork 330
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
[question] no such module 'background_locator' #45
Comments
You have Objective-C project, There is no need to add
|
The ios part has been generated when I first started the project and I have no knowledge about it. Maybe previous Object-C were generated instead of Swift. Anyways your suggestion worked: I placed it in the .h just because there I found imports while the .m had includes. But it should be the same I guess. Thanks a lot! |
Please allow me to reopen this, since it looks related.
I am quite sure I followed the instructions properly, but clearly something is off. DO you see something that might lead me to the error? Thanks a ton. |
Are you running the project "example" inside this repository or is it a new application that you copied the configuration? |
@gpibarra it is a different application inside which I am trying to use the library. update: I have been able to successfully install the example project and run. The only difference I see is the nature of the ios part (swift vs object-c). I will investigate. Thanks for the hint. |
Alright, finally been able to run my app throught Xcode on a device. I am getting this:
So I assume I am just doing something wrong in the object-c code. Since I have no idea about what I am doing in there, I will try to post my files, since I feel something is missing: main.m
AppDelegate.h
AppDelegate.m
Shouldn't I be able to call: BackgroundLocatorPlugin.setPluginRegistrantCallback(registerPlugins) |
Alright, I think I found a solution. I tried to migrate the ios part to swift before but it would not find the background_locator module and therefore not build. But then I noticed those lines where missing in my Podfile:
After adding those and running pod install the Pods_Runner.framework is used in the libs section and things are loaded properly. |
If it is of interest, I could write a small entry about this migration in the wiki setup part. Maybe another complete ignorant in ios as myself could find benefit. |
You are very welcome to do that; |
It is the least I can do :-) I just noticed that there is no way to make pull requests against the wiki. I therefore attach my proposal of the setup file (zipped sine github doesn't allow md file to be uploaded):Setup.md.zip For better readability I inverted the steps. It should not be a problem, but you better check if things look right. Thanks! |
Hi, I am trying to setup the lib to be used in IOS and I am probably doing something wrong.
I followed the wiki page but inside my swift file it can't load the module:
When I started this, I didn't have a swift file, but Appdelegate.m and .h files and a main.
Any idea what I might be missing. Thanks a ton. Looking forward to test this library.
The text was updated successfully, but these errors were encountered: