phonegap-weixin icon indicating copy to clipboard operation
phonegap-weixin copied to clipboard

plugin 'weixin' not found

Open cht8687 opened this issue 11 years ago • 1 comments

Hi,

I added this plugin using: phonegap add plugin https://github.com/ajccom/phonegap-weixin/issues/new

I also include the following in config xml:

<feature name="WeiXin">
    <param name="ios-package" value="WeiXin" />
</feature>

when I execute the register in my app:

navigator.weixin.register(wechatId,

            function () {

                alert("success");

            },
            function () {

                alert("fail");

            });

}

I got following error:

CDVPlugin class WeiXin (pluginName: WeiXin) does not exist.

-[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [ "WeiXin326347642", "WeiXin", "register", [ "wechatId (here is my id)" ] ]

cht8687 avatar Aug 16 '14 07:08 cht8687

Hi cht8687

Here is msg from Richie who create the plugin of IOS part:

你可以确认下项目设置 Targets -> Project -> Build Phases -> Compile Sources 中是否包含Weixin.m 文件 如果没有的话,应该就会引起这个异常

You could check the project set "Targets -> Project -> Build Phases -> Compile Sources ". If there is no "Weixin.m", system will throw the exception.

If the problem still there, you could send more message to Richie, [email protected], it's his email.

Good luck :)

ajccom avatar Aug 18 '14 02:08 ajccom