【发布时间】:2017-07-12 12:07:32
【问题描述】:
我有一个简单的科尔多瓦项目,我在 1.5 年前制作。 几个月前,我将它构建到 android 并且它工作正常。
现在我尝试为 iOS 构建它,但 cordova build ios 失败:
Discovered plugin "InAppBrowser" in config.xml. Adding it to the project
Failed to restore plugin "InAppBrowser" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/InAppBrowser
Discovered plugin "Network Information" in config.xml. Adding it to the project
Failed to restore plugin "Network Information" from config.xml. You might need to try adding it again. Error: Error: Invalid package.json
Building project: /Users/user1/projectname/platforms/ios/projectname.xcworkspace
Macbook、Sierra、Xcode 8.1
npm 版本 { npm: '3.10.9', 战神:'1.10.1-DEV', http_parser: '2.7.0', 重症监护室:'57.1', 模块:'48', 节点:'6.9.2', openssl: '1.0.2j', 紫外线:'1.9.1', v8: '5.1.281.88', zlib: '1.2.8' }
cordova 版本 6.5.0
在我的 config.xml 中它说:
-->
我注释掉了第一个,但第二个也不起作用
【问题讨论】: