Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
So, after pod install
in my ios folder and yarn ios
, I got all these errors saying stuff was duplicated.
error: Multiple commands produce '/Users/angelodias/Library/Developer/Xcode/DerivedData/gobarber-fbmfdupvkffmushjnumgyoenfzpe/Build/Products/Debug-iphonesimulator/gobarber.app/Zocial.ttf':
1) Target 'gobarber' (project 'gobarber') has copy command from '/Users/angelodias/GIT/bootcamp/gobarber/node_modules/react-native-vector-icons/Fonts/Zocial.ttf' to '/Users/angelodias/Library/Developer/Xcode/DerivedData/gobarber-fbmfdupvkffmushjnumgyoenfzpe/Build/Products/Debug-iphonesimulator/gobarber.app/Zocial.ttf'
2) That command depends on command in Target 'gobarber' (project 'gobarber'): script phase “[CP] Copy Pods Resources”
I have no knowledge of how XCode works, so I went with the good and old try-and-error to make things good.
git config --global alias.checkoutr checkout
$EDITOR /usr/local/share/zsh/site-functions/git-completion.bash
...and then modify the file as follows...
-__gitcomp_nl "$(__git_refs '' $track)"
+if [ "$command" = "checkoutr" ]; then
+ __gitcomp_nl "$(__git_refs '' $track)"
+else
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this to your typescript.json snippet file in VSCode | |
// cmd+shift+p > Snippet: configure user snippets > typescript.json | |
{ | |
// OTHER SNIPPETS ABOVE | |
"Storybook CSF 3.0": { | |
"scope": "typescript,typescriptreact", | |
"prefix": "storybook", | |
"body": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const totalDeJogos = Array(10).fill() // Total de jogos: 10 | |
const numerosPorJogo = Array(6).fill() // Números por jogo: 6 | |
const numeroMaximo = 60 // Mínimo é 1, máximo é 60 | |
const gerarNumeroAleatorio = () => Math.floor(Math.random() * numeroMaximo) + 1 | |
// Pra cada jogo, gerar 10 números aleatórios e deixar legível para humanos | |
const jogos = totalDeJogos.map((_, index) => | |
`Jogo ${index + 1}: ${numerosPorJogo.map(() => | |
gerarNumeroAleatorio()).join(', ')}`).join('\n') |