ios平台的meteor cordova构建错误

时间:2016-10-23 12:10:08

标签: ios cordova meteor

使用ios平台构建meteor时,我收到以下错误。几天前一切都运转良好。操作系统是Sierra 10.12,流星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 个答案:

答案 0 :(得分:0)

这似乎是一个暂时的问题,因为它在第二天得到了解决而没有做出相关修改。