' meteor build',cordova - ios平台的错误

时间:2017-08-25 03:33:43

标签: ios cordova meteor

我正在尝试为移动平台构建我的hello应用程序(适用于Web浏览器)。我运行了命令' meteor build ../mobile/hello --server = localhost:3000'在终端上。 Android的构建过程是成功的,但不适用于iOS。

有谁知道这个问题是什么?

错误:

=>执行Cordova命令时出错:

为平台iOS准备Cordova项目时:    错误:ENOENT:没有这样的文件或目录,打开    ' /Users/John/apps/hello/.meteor/local/cordova-build/platforms/ios/hello.xcodeproj/project.pbxproj'

我在google上搜索过,有些人认为这可能是mobile-config.js文件的问题。我已经检查过该文件了,似乎没问题。

// This section sets up some basic app metadata, the entire section is optional.
App.info({
  id: 'com.example.hello',
  name: 'hello',
  description: 'hello',
  author: 'John',
  email: 'contact@example.com',
  website: 'http://example.com'
});
// Set up resources such as icons and launch screens.
App.icons({
  'iphone': 'icons/phone.png',
  'iphone_2x': 'icons/phone2.png'
  // More screen sizes and platforms...
});
App.launchScreens({
  'iphone': 'splash/anotherPhone.png',
  'iphone_2x': 'splash/anotherPhone2.png'
  // More screen sizes and platforms...
});
// Set PhoneGap/Cordova preferences.
App.setPreference('BackgroundColor', '0xff0000ff');
App.setPreference('HideKeyboardFormAccessoryBar', true);
App.setPreference('Orientation', 'default');
App.setPreference('Orientation', 'all', 'ios');
// Pass preferences for a particular PhoneGap/Cordova plugin.
App.configurePlugin('com.phonegap.plugins.facebookconnect', {
  APP_ID: '1234567890',
  API_KEY: 'supersecretapikey'
});
// Add custom tags for a particular PhoneGap/Cordova plugin to the end of the
// generated config.xml. 'Universal Links' is shown as an example here.
App.appendToConfig(`
  <universal-links>
    <host name="localhost:3000" />
  </universal-links>
`);

1 个答案:

答案 0 :(得分:1)

  1. 从项目中删除文件夹/.meteor/local
  2. 再次启动Meteor
  3. 警告:您将丢失DataBase(它位于本地文件夹中)

    Tks @ghybs寻求解决方案。我遇到了同样的问题,对我来说效果很好。