Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid package.json #48

Open
lg8294 opened this issue Sep 1, 2016 · 7 comments
Open

Invalid package.json #48

lg8294 opened this issue Sep 1, 2016 · 7 comments

Comments

@lg8294
Copy link

lg8294 commented Sep 1, 2016

image

@charleyw
Copy link
Owner

charleyw commented Sep 1, 2016

记得替换 [] 为真实的内容

@lg8294
Copy link
Author

lg8294 commented Sep 1, 2016

这里这个error是什么原因呢

@lg8294
Copy link
Author

lg8294 commented Sep 1, 2016

image
这里返回空字符串是怎么回事

@lg8294
Copy link
Author

lg8294 commented Sep 1, 2016

我已经填了私钥了,签名这一步一直返回nil

@charleyw
Copy link
Owner

charleyw commented Sep 1, 2016

找一下这个文件:[项目根目录]/platforms/ios/[你的工程名字]/config.xml
在文件里面找一下privatekey这个参数,看有没有值

    <preference name="private_key" value="MIICdgIBADANBgkqhki......SCAmAw....AJ2yLuDc6lX0UzaaOKb/GC9xIfvpWQ7Tgvk9cWQ2z6ruG5t/M7nUh6hU4yrlhfF1opxWoplglv3w+cpScXWzm0RqzFXyXPMeuen41lzZzBgrvkl9kqhJSFAACQ/A/.............." />

么有的话,说明安装的时候可能出错了。卸了重新装一下,注意填那个privatekey

@lg8294
Copy link
Author

lg8294 commented Sep 3, 2016

有的,上面源码中可以取到self.privateKey,执行signString方法后返回的签名字符串一直是nil

@charleyw
Copy link
Owner

charleyw commented Sep 5, 2016

那有可能是私钥的格式错了。确认一下是PKCS
关于私钥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants