Page 1 of 2
Add IOS plugin
Posted: Fri Oct 25, 2013 10:38 am
by Francisco Narro
Hi,
I need to add an ios plugin from phonegap.
My steps:
1) create a folder in CordovaLibPlugins
2) Create 2 files (.h and .m) with the source of the plugin
3) Create a javascript with the definition
4) Modify de config.xml and add the definition
Questions:
When I export my project to xcode, the folder with the plugin aren't there
If I add these files (h and m) to xcode, I have an error that my plugin is not found.
¿any idea?
¿Do you have an example?
¿Is there any more to define?
Add IOS plugin
Posted: Fri Oct 25, 2013 11:47 am
by Maryna Brodina
Hello! Steps seems to be correct. Could you please share project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a?
Add IOS plugin
Posted: Fri Oct 25, 2013 12:41 pm
by Francisco Narro
Hi Maryna,
I am inspect my code step by step and I think that I have to put my plugin files in any where in the xcode definition. ¿Could be?
I have exported my project to xcode and xcode not open my plugin files.
Add IOS plugin
Posted: Fri Oct 25, 2013 1:36 pm
by Maryna Brodina
Researching this case... it might take some time.
Add IOS plugin
Posted: Mon Oct 28, 2013 2:24 pm
by Maryna Brodina
Hello!
- You should import project to xCode.
- After that add .m and .h files to the project.
Best way create folder inside ../CordovaLibPlugins and add plugin files here.
- Edit config.xml file inside xCode. (it is important! because Appery.io doesn't change config.xml file in template).
Add IOS plugin
Posted: Mon Oct 28, 2013 3:05 pm
by Francisco Narro
Hi,
But then, I lost an important adventaje of the appery environment...
I couldn't continue with Appery to complete my project.
Add IOS plugin
Posted: Mon Oct 28, 2013 4:26 pm
by Maryna Brodina
Sorry for inconvenience. Problem with missing folder with the plugin seems to be a bug (we're researching it). For now you would need to compile app through xCode after plugin is added.
Add IOS plugin
Posted: Tue Oct 29, 2013 9:11 am
by Francisco Narro
Ok, don't worry Maryna I will do that until you could fix this bug.
Thanks.
Add IOS plugin
Posted: Tue Oct 29, 2013 8:08 pm
by Maryna Brodina
Hello! Seems to be your project has been created from backup with another name, so every file path you've added in original project hasn't been changed while restoring project from backup and that's seems to be a problem. So the workaround is to create project with original name. We'll see if we can fix this issue and I let you know.
Add IOS plugin
Posted: Thu Oct 31, 2013 9:21 am
by Maryna Brodina
Hello! Problem with incorrect file path after creating project from backup will be fixed. After this fix there shouldn't be problem with missing folder.