gpt4 book ai didi

ios - IPA 创建失败,运行 build-ios-bundle

转载 作者:行者123 更新时间:2023-11-30 12:32:10 25 4
gpt4 key购买 nike

我遵循了以下原则: https://docs.nativescript.org/tutorial/chapter-1#11-creating-apps仅当我尝试运行 cli 中的最后一个命令时,才能创建演示应用程序 hello world:

npm run build-ios-bundle -- --release --copy-to HalloWorld.ipa

构建 iOS 项目并生成可分别在 iOS 模拟器或设备上手动部署的 APP 或 IPA。
重要提示:在针对 iOS 设备进行构建之前,请验证您是否已在 OS X 系统上配置了一对有效的证书和配置文件。

选项

子进程退出,代码为 127
npm 错误! Darwin 16.0.0
npm 错误! argv“/usr/local/Cellar/node/7.9.0/bin/node”“/usr/local/bin/npm”“运行”“ns-bundle”“--ios”“--build-app”“--release""--copy-to""HalloWorld.ipa"
npm 错误!节点 v7.9.0
npm 错误! npm v4.2.0
npm 错误!文件sh
npm 错误!代码 ELIFECYCLE
npm 错误!错误号 ENOENT
npm 错误!系统调用生成
npm 错误! @ ns-bundle: ns-bundle "HalloWorld.ipa"
npm 错误!生成 ENOENT
npm 错误!
npm 错误! @ ns-bundle 脚本“ns-bundle“HalloWorld.ipa”失败。
npm 错误!确保您安装了最新版本的node.js和npm。
npm 错误!如果这样做,这很可能是软件包的问题,​​
npm 错误!不是 npm 本身。
npm 错误!告诉作者这在您的系统上失败:
npm 错误! ns-bundle“HalloWorld.ipa”
npm 错误!您可以通过以下方式获取有关如何为此项目提出问题的信息:
npm 错误! npm 错误
npm 错误!或者,如果不可用,您可以通过以下方式获取他们的信息:
npm 错误! npm 所有者 ls
npm 错误!上面可能有额外的日志输出。
npm 错误!如有任何支持请求,请附上以下文件:
npm 错误!/Users/Hugo/.npm/_logs/2017-04-12T14_47_59_306Z-debug.log
npm 错误! Darwin 16.0.0
npm 错误! argv“/usr/local/Cellar/node/7.9.0/bin/node”“/usr/local/bin/npm”“运行”“build-ios-bundle”“--”“--release”“- -复制到““HalloWorld.ipa”
npm 错误!节点 v7.9.0
npm 错误! npm v4.2.0
npm 错误!代码 ELIFECYCLE
npm 错误!错误号1
npm 错误! @ build-ios-bundle: npm run ns-bundle --ios --build-app "--release""--copy-to""HalloWorld.ipa"
npm 错误!退出状态1
npm 错误!
npm 错误! @ build-ios-bundle 脚本'npm run ns-bundle --ios --build-app "--release""--copy-to""HalloWorld.ipa"' 失败。
npm 错误!确保您安装了最新版本的node.js和npm。
npm 错误!如果这样做,这很可能是软件包的问题,​​
npm 错误!不是 npm 本身。
npm 错误!告诉作者这在您的系统上失败:
npm 错误! npm run ns-bundle --ios --build-app "--release""--copy-to""HalloWorld.ipa"
npm 错误!您可以通过以下方式获取有关如何为此项目提出问题的信息:
npm 错误! npm 错误
npm 错误!或者,如果不可用,您可以通过以下方式获取他们的信息:
npm 错误! npm 所有者 ls
npm 错误!上面可能有额外的日志输出。
npm 错误!如有任何支持请求,请附上以下文件:
npm 错误!/Users/Hugo/.npm/_logs/2017-04-12T14_47_59_349Z-debug.log

调试日志

    0 info it worked if it ends with ok  
1 verbose cli [ '/usr/local/Cellar/node/7.9.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build-ios-bundle',
1 verbose cli '--',
1 verbose cli '--release',
1 verbose cli '--copy-to',
1 verbose cli 'HalloWorld.ipa' ]
2 info using npm@4.2.0
3 info using node@v7.9.0
4 verbose run-script [ 'prebuild-ios-bundle',
4 verbose run-script 'build-ios-bundle',
4 verbose run-script 'postbuild-ios-bundle' ]
5 info lifecycle @~prebuild-ios-bundle: @
6 silly lifecycle @~prebuild-ios-bundle: no script for prebuild-ios-bundle, continuing
7 info lifecycle @~build-ios-bundle: @
8 verbose lifecycle @~build-ios-bundle: unsafe-perm in lifecycle true
9 verbose lifecycle @~build-ios-bundle: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/Hugo/Desktop/HelloWorld/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle @~build-ios-bundle: CWD: /Users/Hugo/Desktop/HelloWorld
11 silly lifecycle @~build-ios-bundle: Args: [ '-c',
11 silly lifecycle 'npm run ns-bundle --ios --build-app "--release" "--copy-to" "HalloWorld.ipa"' ]
12 silly lifecycle @~build-ios-bundle: Returned: code: 1 signal: null
13 info lifecycle @~build-ios-bundle: Failed to exec build-ios-bundle script
14 verbose stack Error: @ build-ios-bundle: `npm run ns-bundle --ios --build-app "--release" "--copy-to" "HalloWorld.ipa"`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:194:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:194:7)
14 verbose stack at maybeClose (internal/child_process.js:899:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid @
16 verbose cwd /Users/Hugo/Desktop/HelloWorld
17 error Darwin 16.0.0
18 error argv "/usr/local/Cellar/node/7.9.0/bin/node" "/usr/local/bin/npm" "run" "build-ios-bundle" "--" "--release" "--copy-to" "HalloWorld.ipa"
19 error node v7.9.0
20 error npm v4.2.0
21 error code ELIFECYCLE
22 error errno 1
23 error @ build-ios-bundle: `npm run ns-bundle --ios --build-app "--release" "--copy-to" "HalloWorld.ipa"`
23 error Exit status 1
24 error Failed at the @ build-ios-bundle script 'npm run ns-bundle --ios --build-app "--release" "--copy-to" "HalloWorld.ipa"'.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error npm run ns-bundle --ios --build-app "--release" "--copy-to" "HalloWorld.ipa"
24 error You can get information on how to open an issue for this project with:
24 error npm bugs
24 error Or if that isn't available, you can get their info via:
24 error npm owner ls
24 error There is likely additional logging output above.
25 verbose exit [ 1, true ]

你能帮我吗

问候,

最佳答案

我刚刚遇到了同样的问题,切换回节点 6.11 工作正常。

关于ios - IPA 创建失败,运行 build-ios-bundle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43376917/

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