从...开始?对于nil:NilClass未定义方法expo-cli@2.9.0/src/commands/upload/utils.js

Bar*_*ron 5 testflight react-native expo

我已经构建了一个React本机应用程序,并且可以通过expo运行它,并且正在使用expo build:ios和expo upload:ios。在上传时,它使用未定义的方法“ start_with?”崩溃 对于exps的utils.js中的nil:NilClass。

Error: undefined method `start_with?' for nil:NilClass
    at _callee2$ (/expo-cli@2.9.0/src/commands/upload/utils.js:53:11)
    at tryCatch (/usr/local/lib/node_modules/expo-cli/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/expo-cli/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/expo-cli/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (/usr/local/lib/node_modules/expo-cli/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /usr/local/lib/node_modules/expo-cli/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
Run Code Online (Sandbox Code Playgroud)

博览会诊断:

Expo CLI 2.9.0 environment info:
    System:
      OS: macOS 10.14.3
      Shell: 3.2.57 - /bin/sh
    Binaries:
      Node: 10.15.1 - /usr/local/bin/node
      npm: 6.4.1 - /usr/local/bin/npm
    IDEs:
      Xcode: /undefined - /usr/bin/xcodebuild
    npmPackages:
      expo: ^32.0.0 => 32.0.4 
      react: 16.5.0 => 16.5.0 
      react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1 
      react-navigation: ^3.0.9 => 3.1.4 
    npmGlobalPackages:
      expo-cli: 2.9.0
Run Code Online (Sandbox Code Playgroud)

我以前从未上传过应用程序,因此我不知道如果安装了我的代码,构建和软件,解决方案将是什么。

小智 1

我有同样的问题,问题是

\n\n
IDEs:\n\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0Xcode: / undefined - / usr / bin / xcodebuild\n
Run Code Online (Sandbox Code Playgroud)\n\n

如果你从未执行过 xcode,你必须运行它,加载一些项目,运行模拟器,或类似的东西,但如果你下载了一些测试版并将测试版粘贴到应用程序的文件夹中,就像我一样,我的解决方案是将 xcode 名称从 更改xcode-betaxcode就这样

\n\n

另一个问题可能是您没有将 xcode 放入应用程序文件夹中

\n\n

我希望这可以帮助你

\n