私はモバイルプラットフォーム用のhelloアプリ(Webブラウザで動作)を構築しようとしています。ターミナルで 'meteor build ../mobile/hello --server = localhost:3000'というコマンドを実行しました。 Androidのビルドプロセスは成功しましたが、iOSでは成功しませんでした。'meteor build'、iosプラットフォームのコードバ - エラー
誰でも問題の原因を知ることができますか?
エラー:コルドバを実行
=>エラーコマンド:
をプラットフォームiOS用コルドバプロジェクトを準備中: エラー:ENOENT:そのようなファイルやディレクトリはありません、オープン 「/ユーザ/ジョン私はGoogleで検索/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
非常に良い!どうもありがとうございます。私はそのディレクトリを削除した後、スムーズに動作しました。 削除する前にプロジェクトに何が起こったのですか? – Greg
'.meteor/local/cordova-build /'フォルダが奇妙な状態になることがあります。 Meteorを削除して再構築すると、ほとんどの場合この問題が解決されます。 – ghybs