Instabug / Instabug-React-Native

In-app feedback and bug reporting tool for React Native
https://instabug.com/platforms/react-native
MIT License
308 stars 100 forks source link

Error archiving ios builds: required option '-t, --token <value>' not specified #1179

Closed jonathan-edgar closed 5 months ago

jonathan-edgar commented 6 months ago

Steps to Reproduce the Problem

Archive an ios build with Xcode without build failing. Doesn't fail for android - able to generate signed apk on android

Expected Behavior

Archive without error. Running on simulator successfully

Actual Behavior

Build Failed:
error: required option '-t, --token <value>' not specified

Usage: instabug upload-sourcemaps [options]

Options:
  -p, --platform <value>  Platform (choices: "ios", "android")
  -f, --file <path>       The path of the source map file
  -t, --token <value>     Your App Token (env: INSTABUG_APP_TOKEN)
  -n, --name <value>      The app version name (env: INSTABUG_APP_VERSION_NAME)
  -c, --code <value>      The app version code (env: INSTABUG_APP_VERSION_CODE)
  -l, --label <value>     The CodePush label if it's a CodePush release (env:
                          INSTABUG_APP_VERSION_LABEL)
  -h, --help              display help for command

Instabug integration code

      Instabug.init({
        token: 'myToken',
        invocationEvents: [InvocationEvent.floatingButton],
      });

SDK Version

"instabug-reactnative": "^12.8.0",

React Native, iOS and Android Versions

System:
  OS: macOS 14.4.1
  CPU: (10) arm64 Apple M1 Pro
Binaries:
  Node:
    version: 18.14.0
    path: ~/.nvm/versions/node/v18.14.0/bin/node
  Yarn:
    version: 3.4.1
    path: ~/.nvm/versions/node/v18.14.0/bin/yarn
  npm:
    version: 9.3.1
    path: ~/.nvm/versions/node/v18.14.0/bin/npm
  Watchman:
    version: 2023.10.09.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: [mypath]
IDEs:
  Android Studio: 2023.2 AI-232.10300.40.2321.11567975
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: ^18.2.0
  react-native:
    installed: 0.73.6
    wanted: ^0.73.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
jonathan-edgar commented 6 months ago

My (temp) workaround was deleting the instubugs sourcemaps build phase in xcode

stale[bot] commented 6 months ago

This issue has been automatically marked as pending feedback because we need additional information to be able to investigate it further. It will be closed in 7 days if it remains inactive. Thank you for your contributions.

stale[bot] commented 5 months ago

This issue has been automatically closed since we haven't heard back from you. Please feel free to re-open the issue if you have more information to add.