gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:31:58 25 4
gpt4 key购买 nike

我正在尝试为移动平台构建我的 hello 应用程序(在网络浏览器上运行)。我在终端上运行了命令 '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'


我在谷歌上进行了搜索,有人认为这可能是 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. 从您的项目中删除文件夹/.meteor/local
  2. 再次启动 Meteor

警告:您将丢失您的数据库(它位于本地文件夹内)

感谢@ghybs 的解决方案。我遇到了同样的问题并且对我来说工作得很好。

关于ios - 'meteor build',cordova - ios 平台错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45874044/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com