ajccom / phonegap-weixin

47 stars 19 forks source link

plugin 'weixin' not found #4

Open cht8687 opened 10 years ago

cht8687 commented 10 years ago

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)" ] ]

ajccom commented 10 years ago

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, 526365272@qq.com, it's his email.

Good luck :)