ueno-llc / react-native-starter

Professional react-native starter kit with everything you'll ever need to deploy rock solid apps
https://ueno-llc.github.io/react-native-starter
MIT License
574 stars 90 forks source link

fastlane tag_version failed in App Center Build #191

Closed zhangtaii closed 5 years ago

zhangtaii commented 5 years ago

Related logs as below:

[10:04:20]: ▸ [35mfatal: could not read Password for 'https://***@dev.azure.com': Device not configured[0m +----------------------+---------------------+ | [33mLane Context[0m | +----------------------+---------------------+ | DEFAULT_PLATFORM | android | | PLATFORM_NAME | android | | LANE_NAME | android tag_version | | ANDROID_VERSION_NAME | 1.0.1 | | ANDROID_VERSION_CODE | 2 | +----------------------+---------------------+

jeremybarbet commented 5 years ago

As far as I understand you ran a build through App center and you got this issue. I can suggest you to look at the guide here newly edited to check if you didn't forget anything in your environnement variables.

zhangtaii commented 5 years ago

@jeremybarbet, thanks for your concern, the problem arise when fasltlane tries to interact with the remote git repo, but fails as no git credential configured in the building server. According to the Docs, seams no git credential exists in the ENV. image

P.S. I'm using Azure DevOps to host the git repo, if that could be the cause of the problem?

birkir commented 5 years ago

That could be the case. I haven't tried any other repository providers than GitHub.

Try raising an issue with AppCenter and see what they say. There is a trick to make this work with an ssh-agent though (logging in to git as anyone you like), we had this for v1:

https://github.com/ueno-llc/react-native-starter/blob/ed361e77e8b9d45f1fb0bbff8612b61aa5f7d6c1/.travis/build.sh#L9-L21

zhangtaii commented 5 years ago

Thanks for the suggestion, I'll give it a try.

jeremybarbet commented 5 years ago

I close this issue, feel free to reopen it if needed!