【发布时间】:2017-03-05 07:19:57
【问题描述】:
使用 ios 平台构建流星时出现以下错误。几天前一切正常。操作系统是 Sierra 10.12,meteor 1.4.1.3。当我删除 ios 平台时,它构建得很好。未添加 Android。
我已经试过了:
- 移除并添加了 ios 平台
- 已删除 .meteor/local
这是终端的输出:
Tims-MacBook-Pro:pressIt cmt$ meteor build ../outputPressit --server http://dummy.com
...
=> Errors executing Cordova commands:
While adding plugin https://github.com/meteor/cordova-plugin-meteor-webapp.git#8bf95eed3f313299fc2de33658866278eea2cdc5 to Cordova project:
Cordova error: Failed to fetch plugin https://github.com/meteor/cordova-plugin-meteor-webapp.git via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: git: Command failed with exit code 128 Error output:
fatal: reference is not a tree: 8bf95eed3f313299fc2de33658866278eea2cdc5
(If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration. You can try running again with the --verbose option to help diagnose the issue.)
我也尝试了 --verbose 选项,这是一些输出:
...
%% Copying splash from /Users/cmt/WebstormProjects/pressIt/.meteor/local/cordova-build/resources/iphone6p_landscape.splash.png to /Users/cmt/WebstormProjects/pressIt/.meteor/local/cordova-build/platforms/ios/pressIt/Images.xcassets/LaunchImage.launchimage/Default-Landscape-736h.png
%% updated project successfully
%% Executing "after_plugin_add" hook for all plugins.
Adding plugin https://github.com/meteor/cordova-plugin-meteor weba90-]\m8
-=05643pp.git#8bf95eed3f313299fc2de33658866278eea2cdc5 to Cordova project
%% Executing "before_plugin_add" hook for all plugins.
%% Calling plugman.fetch on plugin "https://github.com/meteor/cordova-plugin-meteor-webapp.git#8bf95eed3f313299fc2de33658866278eea2cdc5"
%% Fetching plugin "https://github.com/meteor/cordova-plugin-meteor-webapp.git" via git clone
%% Running command: git clone https://github.com/meteor/cordova-plugin-meteor-webapp.git /var/folders/p7/s_tltgm15mg63r15wkn1c24c0000gq/T/git/1477224169788
%% Command finished with error code 0: git clone,https://github.com/meteor/cordova-plugin-meteor-webapp.git,/var/folders/p7/s_tltgm15mg63r15wkn1c24c0000gq/T/git/1477224169788
%% Running command: git checkout 8bf95eed3f313299fc2de33658866278eea2cdc5
%% Command finished with error code 128: git checkout,8bf95eed3f313299fc2de33658866278eea2cdc5
=> Errors executing Cordova commands:
While adding plugin https://github.com/meteor/cordova-plugin-meteor-webapp.git#8bf95eed3f313299fc2de33658866278eea2cdc5 to Cordova project:
Cordova error: Failed to fetch plugin https://github.com/meteor/cordova-plugin-meteor-webapp.git via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: git: Command failed with exit code 128 Error output:
fatal: reference is not a tree: 8bf95eed3f313299fc2de33658866278eea2cdc5
at /Users/cmt/.meteor/packages/meteor-tool/.1.4.1_3.1u5hjow++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/fetch.js:88:33
at _rejected
【问题讨论】:
-
你运气好吗?谢谢。
-
是的,我解决了它,但实际上我并不确定是什么解决了它,因为我做了多项更改。最终,我做到了: 1. 'meteor add cordova:cordova-plugin-meteor-webapp@1.4.1' 和 'install meteor 1.4.2-beta4' 让它全部工作。我相信前者解决了这里列出的问题,但我再次不确定。后者是 ios 10 兼容性问题所必需的。