Closed dylmye closed 5 years ago
I'm not sure if this is an actual issue with the project or my machine. Happy to help debug this if possible. :) Thank you!
going further into using this project it seems like it's only been tested on MacOS. Having issues with the build.gradle and yarn rename too. Would be useful noting this in the readme if this is the case :/
Hi!
Yeah you are right, we didn't test it on Windows system, only on MacOS.
Even though, the issue happens during the yarn installation and seems related to patch-package
dependency.
I pushed a commit with upgraded dependencies on the package.json, if you can try again and let me know if the issue is still there or not, it would be nice!
Thanks @jeremybarbet, I'll try to let you know within 24 hrs :)
Thanks again for having a look into it. Got further today, unfortunately still couldn't build following instructions.
yarn rename "UenoTest" com.dylmye.uenotest
output:
yarn run v1.9.4
$ sh ./scripts/rename.sh UenoTest com.dylmye.uenotest
Switched to a new branch 'feature/rename'
> Renaming the application
Id: com.dylmye.uenotest
Name: UenoTest
Slug: uenotest
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
> Patching android/app/src/main/AndroidManifest.xml
> Patching android/app/src/androidTest/java/com/dylmye/uenotest/DetoxTest.java
> Patching android/app/proguard-rules.pro
> Patching ios/fastlane/Fastfile
> Patching ios/*/Info.plist
> Patching ios/*.xcodeproj/project.pbxproj
> Patching ios/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme
> Patching scripts/build-env.sh
> Patching appcenter-pre-build.sh
> Patching package.json
[Ueno RNS] Config building...
[Ueno RNS] Warning: No GoogleService-Info.plist file in ios app directory... We created a placeholder for you!
./scripts/build-env.sh: line 44: ./ios/UenoTest/GoogleService-Info.plist: No such file or directory
[Ueno RNS] Building environment config
[Ueno RNS] Using .env
[Ueno RNS] Generating ./src/config.env.js
[Ueno RNS] Config built successfully!
[...some git stuff...]
error: unable to create file scripts/rename.sh: Permission denied
Switched to branch 'master'
> scripts/rename.sh
Your branch is up to date with 'origin/master'.
error: Your local changes to the following files would be overwritten by merge:
scripts/rename.sh
Please commit your changes or stash them before you merge.
Aborting
Updating 70f648a..06660ad
Deleted branch feature/rename (was 06660ad).
> Successfully renamed app
Initialized empty Git repository in X:\path\to\app\uenorns\.git\
error: open("scripts/rename.sh"): Permission denied
error: unable to index file scripts/rename.sh
fatal: adding files failed
[...more git stuff...]
nothing added to commit but untracked files present
error Command failed with exit code 1.
react-native run-android
output:
info Starting JS server...
info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)...
Downloading https://services.gradle.org/distributions/gradle-4.10.2-all.zip
[...gradle downloads and unzips...]
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :
[...no errors here, just modules and their folders...]
> Configure project :@react-native-community_async-storage
WARNING: The option setting 'android.enableD8.desugaring=false' is experimental and unsupported.
The current default is 'true'.
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred evaluating project ':app'.
> A problem occurred starting process 'command './scripts/build-env.sh''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 3m 21s
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: gradlew.bat app:installDebug
Hope this helps. Please let me know if there's anything else I can do to assist.
Hi!
I tried on a windows machine, and it's more broken than expected. The whole rename script is not successfully executed and a lot of files are not renamed because not found.
I pushed some fixes, but it's not complete. I'll look at it when I'll have more time
This has been removed from the package.json file now
Describe the bug When installing react-native-starter as described below on Windows 10, the following error is outputted:
To Reproduce Steps to reproduce the behavior:
yarn
Expected behavior App's dependencies install as expected with no errors
Debug log
Environment
This is a fresh install so versions don't really matter
Additional context