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