guness / bitrise-step-firebase-app-distribution

Upload your apps to Firebase and sends email to your testers.
MIT License
35 stars 28 forks source link

syntax error near unexpected token `newline' #46

Closed liplylie closed 2 years ago

liplylie commented 2 years ago

Message:

Setting permissions on binary...
/usr/local/bin/firebase: line 1: syntax error near unexpected token `newline'
/usr/local/bin/firebase: line 1: `<html>'
Something went wrong, firebase has not been installed.
Please file a bug with your system information on Github.
https://github.com/firebase/firebase-tools/
-- All done!

Using latest version: 0.10.0 Android build Enable Firebase Tools Upgrade set to true

guness commented 2 years ago

can you please provide build logs? this is not helping.

liplylie commented 2 years ago

@guness this is from the build logs on bitrise.

I can send more of it:

Downloaded Service Credentials File to path: /Users/vagrant/git/credentials.json
-- Checking for existing firebase-tools on PATH...
-- Your machine has firebase-tools@9.20.0, attempting upgrade...
-- Checking your machine type...
-- Downloading binary from https://firebase.tools/bin/macos/latest
#=#=#                                                                         

######################################################################## 100.0%##O#- #                                                                       
##=O#- #                                                                      

######################################################################## 100.0%
-- Setting permissions on binary...
/usr/local/bin/firebase: line 1: syntax error near unexpected token `newline'
/usr/local/bin/firebase: line 1: `<html>'
Something went wrong, firebase has not been installed.
Please file a bug with your system information on Github.
https://github.com/firebase/firebase-tools/
-- All done!
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | firebase-app-distribution@0.10 (exit code: 1)                 | 27.24 sec|
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...b.com/guness/bitrise-step-firebase-app-distribution/issues |
| Source: https://github.com/guness/bitrise-step-firebase-app-distribution     |
+---+---------------------------------------------------------------+----------+
guness commented 2 years ago

it is something with https://firebase.tools/bin/macos/latest on bitrise. can you turn the update flag off and re-try?

liplylie commented 2 years ago

Yep, that worked! Thank you for the help, and for quickly responding :)