2
我正在尝试为移动平台构建我的hello应用程序(适用于Web浏览器)。我在终端上运行命令'meteor build ../mobile/hello --server = localhost:3000'。 Android的构建过程很成功,但不适用于iOS。'流星建立',科尔多瓦 - ios平台错误
有谁知道这个问题可能是什么?
错误:
=>错误执行科尔多瓦命令:
在准备科尔多瓦项目为平台的iOS: 错误:ENOENT:没有这样的文件或目录中,打开 “/用户/约翰/apps/hello/.meteor/local/cordova-build/platforms/ios/hello.xcodeproj/project.pbxproj”
我搜索的谷歌有些人认为这可能是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: '[email protected]',
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>
`);
是否尝试删除您的 /。meteor/local'文件夹并重新运行? –
ghybs
非常好!谢谢@ghybs。我在删除该目录后运行顺利。 删除之前项目发生了什么? – Greg
有时会发生'.meteor/local/cordova-build /'文件夹处于奇怪状态。删除它并让Meteor重建它可以在大多数时间解决这个问题。 – ghybs