How to copy a custom ios framework using plugin.xml on Phonegap 3

后端 未结 3 1658
夕颜
夕颜 2021-02-07 07:23

I am currently making a plugin for phonegap 3. I have a custom framework to copy using the source-file directive. In the plugin.xml I tried:



        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-07 08:10

    You can copy the binary file (who should be in "mylib.framework/Versions/A/") and the headers ( ".h" who should be in "mylib.framwork/Versions/A/Headers")

    like this

    
    
    ...
    

    You also have to add the dependencies manually, IE.: this framework needs the iOS AVFoundation.framework so, you need to add this too.

    
    

    One more thing you have to know, if you want to submit this plugin to PhoneGap.

    Plugin Submission Guidelines

    Any application that contains binary libraries will be rejected. This is because we need to be able to see exactly what is in a plugin as part of our code review process. So when submitting a plugin make sure that it doesn’t contain binary libraries. (PhoneGap)

提交回复
热议问题