Sentry-cli: `sentry-cli react-native appcenter`... keep failing due to Could not parse Info.plist file

Created on 6 Feb 2019  路  6Comments  路  Source: getsentry/sentry-cli

I followed all the steps in https://docs.sentry.io/clients/react-native/codepush/. But I keep getting error on running:

$ appcenter codepush release-react -o ../WonderSwipe-bundle -s ../WonderSwipe-bundle/CodePush/main.jsbundle.map -p ./ios/WonderSwipe/Info.plist -d Production
Detecting ios app version:

Using the target binary version value "1.3.0" from "./ios/WonderSwipe/Info.plist".

Running "react-native bundle" command:

node node_modules/react-native/local-cli/cli.js bundle --assets-dest ../WonderSwipe-bundle/CodePush --bundle-output ../WonderSwipe-bundle/CodePush/main.jsbundle --dev false --entry-file index.js --platform ios --sourcemap-output ../WonderSwipe-bundle/CodePush/main.jsbundle.map
Loading dependency graph, done.
bundle: Writing bundle output to: ../WonderSwipe-bundle/CodePush/main.jsbundle
bundle: Writing sourcemap output to: ../WonderSwipe-bundle/CodePush/main.jsbundle.map
bundle: Done writing bundle output
bundle: Done writing sourcemap output
bundle: Copying 1 asset files
bundle: Done copying assets

Releasing update contents to CodePush:

Successfully released an update containing the "../WonderSwipe-bundle/CodePush" directory to the "Production" deployment of the "WonderSwipe" app.

$ sentry-cli react-native appcenter <owner>/WonderSwipe ios ../WonderSwipe-bundle/CodePush
  INFO    2019-02-05 21:51:33.715893 -08:00 Loaded config from ~/.sentryclirc
  INFO    2019-02-05 21:51:33.716815 -08:00 sentry-cli was invoked with the following command line: "sentry-cli" "react-native" "appcenter" "<owner>/WonderSwipe" "ios" "../WonderSwipe-bundle/CodePush"
> Fetching latest AppCenter deployment info
  INFO    2019-02-05 21:51:43.825849 -08:00 Skipping update nagger update check
error: Could not parse Info.plist file
  caused by: expected value at line 1 column 1

Env:
MacOS 10.13.6
appcenter-cli: 1.1.11
sentry-cli: 1.38.0
React Native: 0.57.8

bug

Most helpful comment

Broken in sentry-cli 1.38.0

A temporary solution to the problem is to add in devDependencies
"@sentry/cli": "1.37.4",

Steps to reproduce the problem:

react-native init AwesomeProject
nom install --save react-native-sentry
react-native link react-native-sentry
Open project in Xcode 10.1, build

Result:
error: Could not parse Info.plist file
caused by: expected value at line 1 column 1

All 6 comments

Broken in sentry-cli 1.38.0

A temporary solution to the problem is to add in devDependencies
"@sentry/cli": "1.37.4",

Steps to reproduce the problem:

react-native init AwesomeProject
nom install --save react-native-sentry
react-native link react-native-sentry
Open project in Xcode 10.1, build

Result:
error: Could not parse Info.plist file
caused by: expected value at line 1 column 1

I'm working on a fix right now

I'm working on a fix right now

When does v1.38.1 come?

Coming out now, when this build is done: https://travis-ci.com/getsentry/sentry-cli

New version is on GitHub releases and npm.
Closing this issue but feel free to reopen if something's wrong.

Thanks for the speedy bug fix! Works fine now.

Was this page helpful?
0 / 5 - 0 ratings