【问题标题】:React Native expo upload:ios issueReact Native expo 上传:ios 问题
【发布时间】:2020-01-31 23:34:32
【问题描述】:

我在运行时遇到未知问题

sudo expo 上传:ios

这是首先出现在 iOS 和 Android 上的错误:

大家好, 我成功地为 Android 和 iOs 创建了第一个版本,但后来我无法更新它们。这是我得到的错误:

**iOS**

Error: xcrun exited with non-zero code: 1
at ChildProcess.completionListener (/usr/local/turtle-js/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
…
at spawnAsync (/usr/local/turtle-js/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
at spawnAsyncThrowError (/usr/local/turtle-js/node_modules/@expo/xdl/build/detach/ExponentTools.js:233:45)
at Object.buildAssetArchiveAsync (/usr/local/turtle-js/node_modules/@expo/xdl/build/detach/IosAssetArchive.js:82:51)
at
at process._tickDomainCallback (internal/process/next_tick.js:229:7)



**Android**

[stderr]

  /app/turtle/workingdir/android/sdk34/android-shell-app/app/src/main/res/mipmap-mdpi/ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
[stderr]

* Try:
[stderr]

Run with --stacktrace
[stderr]

 option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr]

* Get more help at https://help.gradle.org
[stderr]

BUILD FAILED in 1m 32s
832 actionable tasks: 832 executed
Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
    ...
    at spawnAsync (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
    at spawnAsyncThrowError (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:233:45)
    at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:812:11)
    at <anonymous>

有人可以帮忙吗?

【问题讨论】:

    标签: android ios upload expo


    【解决方案1】:

    验证您的资产:例如 iOS 上传一个 54x60 的图标,但它必须是 60x60 或任何其他有效尺寸。

    【讨论】:

    • 谢谢,问题是iOS不支持透明文件。解决了。​​
    猜你喜欢
    • 2019-02-28
    • 2021-03-25
    • 1970-01-01
    • 1970-01-01
    • 2021-11-20
    • 2020-02-23
    • 1970-01-01
    • 2022-12-22
    • 2020-10-09
    相关资源
    最近更新 更多