2017-08-25 11 views
2

私はモバイルプラットフォーム用の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> 
`); 
+1

あなたの ' /。meteor/local'フォルダを削除してもう一度実行しようとしましたか? – ghybs

+0

非常に良い!どうもありがとうございます。私はそのディレクトリを削除した後、スムーズに動作しました。 削除する前にプロジェクトに何が起こったのですか? – Greg

+0

'.meteor/local/cordova-build /'フォルダが奇妙な状態になることがあります。 Meteorを削除して再構築すると、ほとんどの場合この問題が解決されます。 – ghybs

答えて

1
  1. プロジェクトから/.meteor/localフォルダ
  2. 打ち上げ流星を削除して再び

警告:あなたは(それがローカルフォルダ内にあり)

データベースを失うことになります

解決策のためのTks @ghybs。私は同じ問題に遭遇し、私にとって完璧にうまくいった。

関連する問題