Francisco Narro
Posts: 0
Joined: Thu Oct 03, 2013 9:58 am

Add IOS plugin

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Add IOS plugin

Hello! Steps seems to be correct. Could you please share project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a?

Francisco Narro
Posts: 0
Joined: Thu Oct 03, 2013 9:58 am

Add IOS plugin

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Add IOS plugin

Researching this case... it might take some time.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Add IOS plugin

Hello!

  1. You should import project to xCode.
  2. After that add .m and .h files to the project.
    Best way create folder inside ../CordovaLibPlugins and add plugin files here.
  3. Edit config.xml file inside xCode. (it is important! because Appery.io doesn't change config.xml file in template).
Francisco Narro
Posts: 0
Joined: Thu Oct 03, 2013 9:58 am

Add IOS plugin

Hi,

But then, I lost an important adventaje of the appery environment...
I couldn't continue with Appery to complete my project.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Add IOS plugin

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.

Francisco Narro
Posts: 0
Joined: Thu Oct 03, 2013 9:58 am

Add IOS plugin

Ok, don't worry Maryna I will do that until you could fix this bug.

Thanks.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Add IOS plugin

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Add IOS plugin

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.

Return to “Issues”