WrathChaos / react-native-typescript-boilerplate

πŸš€ All-in-one React Native Typescript Boilerplate, Ready to Start πŸ₯³
https://freakycoder.com
390 stars 89 forks source link

Unable to run on first run #25

Open ladaposamuel opened 2 weeks ago

ladaposamuel commented 2 weeks ago

Hello Wrath, Thank you for this boiler template, I understand this might seem unfair as you have done alot of work coming up with the free rousource of this boilertemplate and I still asking more of you but I would really appreciate you input and assistance on getting it to run on my PC as I have tried multiple time to even get the hello-world/homepage to run successfully.

Here's my terminal for npx react-native run-ios

➜  lapupo-mobile git:(master) βœ— react-native run-ios
(node:36365) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
info Found Xcode workspace "rntypescriptBoilerplate.xcworkspace"
info Found booted Samuel’s iPhone
info Building (using "xcodebuild -workspace rntypescriptBoilerplate.xcworkspace -configuration Debug -scheme rntypescriptBoilerplate -destination id=00008101-000E18D81110001E")

info πŸ’‘ Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

error Failed to build ios project. "xcodebuild" exited with error code '70'. To debug build logs further, consider building your app with Xcode.app, by opening 'rntypescriptBoilerplate.xcworkspace'.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace rntypescriptBoilerplate.xcworkspace -configuration Debug -scheme rntypescriptBoilerplate -destination id=00008101-000E18D81110001E

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

2024-09-03 20:06:00.730 xcodebuild[37325:5331216] Writing error result bundle to /var/folders/zp/prq2qccj3ps7rmp43zwkdk0c0000gp/T/ResultBundle_2024-03-09_8-06-0000β€―PM.xcresult
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
        { id:00008101-000E18D81110001E }

    Ineligible destinations for the "rntypescriptBoilerplate" scheme:
        { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.5 is not installed. To use with Xcode, first download and install the platform }

and the Metro

➜  ~/Code/lapupo-mobile/node_modules/.generated/launchPackager.command; exit
info Welcome to React Native v0.74
info Starting dev server on port 8081...

                        β–’β–’β–“β–“β–“β–“β–’β–’
                     β–’β–“β–“β–“β–’β–’β–‘β–‘β–’β–’β–“β–“β–“β–’
                  β–’β–“β–“β–“β–“β–‘β–‘β–‘β–’β–’β–’β–’β–‘β–‘β–‘β–“β–“β–“β–“β–’
                 β–“β–“β–’β–’β–’β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–’β–’β–’β–“β–“
                 β–“β–“β–‘β–‘β–‘β–‘β–‘β–’β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–‘β–‘β–‘β–“β–“
                 β–“β–“β–‘β–‘β–“β–“β–’β–‘β–‘β–‘β–’β–’β–‘β–‘β–‘β–’β–“β–’β–‘β–‘β–“β–“
                 β–“β–“β–‘β–‘β–“β–“β–“β–“β–“β–’β–’β–’β–’β–“β–“β–“β–“β–’β–‘β–‘β–“β–“
                 β–“β–“β–‘β–‘β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–“β–“
                 β–“β–“β–’β–‘β–‘β–’β–’β–“β–“β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–‘β–’β–“β–“
                  β–’β–“β–“β–“β–’β–‘β–‘β–‘β–’β–“β–“β–’β–‘β–‘β–‘β–’β–“β–“β–“β–’
                     β–’β–“β–“β–“β–’β–‘β–‘β–‘β–‘β–’β–“β–“β–“β–’
                        β–’β–’β–“β–“β–“β–“β–’β–’

                Welcome to Metro v0.80.5
              Fast - Scalable - Integrated

info React Native v0.75.2 is now available (your project is running on v0.74.3).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.75.2
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.3
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
info Dev server ready

i - run on iOS
a - run on Android
d - open Dev Menu
r - reload app

info Opening app on iOS...
info A dev server is already running for this project on port 8081.
info Found Xcode workspace "rntypescriptBoilerplate.xcworkspace"
info Found booted Samuel’s iPhone
info Building (using "xcodebuild -workspace rntypescriptBoilerplate.xcworkspace -configuration Debug -scheme rntypescriptBoilerplate -destination id=00008101-000E18D81110001E")

info πŸ’‘ Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace rntypescriptBoilerplate.xcworkspace -configuration Debug -scheme rntypescriptBoilerplate -destination id=00008101-000E18D81110001E

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

2024-09-03 20:06:02.579 xcodebuild[37468:5331477] Writing error result bundle to /var/folders/zp/prq2qccj3ps7rmp43zwkdk0c0000gp/T/ResultBundle_2024-03-09_8-06-0002β€―PM.xcresult
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
        { id:00008101-000E18D81110001E }

    Ineligible destinations for the "rntypescriptBoilerplate" scheme:
        { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.5 is not installed. To use with Xcode, first download and install the platform }

here's my PC specs:


                 ,xNMM.          ----------------------------
               .OMMMMo           OS: macOS 14.6.1 23G93 arm64
               OMMM0,            Host: MacBookPro18,2
     .;loddo:' loolloddol;.      Kernel: 23.6.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 3 days, 2 hours, 23 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 142 (brew)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.9
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 2056x1329
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Dark)
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: iTerm2
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: agaveNerdFontComplete-r 13
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Apple M1 Max
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Apple M1 Max
       .cooc,.    .,coo:.        Memory: 6249MiB / 32768MiB

I have both iOs and Android emulators setup:

➜  lapupo-mobile git:(master) βœ— xcrun simctl list devices
== Devices ==
-- iOS 17.0 --
    iPhone SE (3rd generation) (7FA2A784-7261-4EBA-A4B1-637632FEE415) (Shutdown)
    iPhone 15 (76AF8A88-55F0-49ED-AFE2-5A10F981DE76) (Booted)
    iPhone 15 Plus (A025CB07-3610-44C7-B06A-FB3800C37572) (Shutdown)
    iPhone 15 Pro (A5CA215C-8941-4B34-BE5D-A619981443DA) (Shutdown)
    iPhone 15 Pro Max (02221D24-4AB2-4024-95EE-87845CBDAE71) (Shutdown)
    iPad Air (5th generation) (5B2E7CE3-58DC-4AF2-B0C0-BF35AADEA2A9) (Shutdown)
    iPad (10th generation) (98DC6117-91B6-43A0-AD88-A4DECE866620) (Shutdown)
    iPad mini (6th generation) (BCF5852C-6EE2-45B1-B959-879AA139A7B3) (Shutdown)
    iPad Pro (11-inch) (4th generation) (BF088605-731B-4AB9-84EB-E0AF72F36D23) (Shutdown)
    iPad Pro (12.9-inch) (6th generation) (F1D1C165-08F2-449B-A53C-E17768360976) (Shutdown)
➜  lapupo-mobile git:(master) βœ— emulator -list-avds
INFO    | Storing crashdata in: /tmp/android-me/emu-crash-35.1.20.db, detection is enabled for process: 43805
Pixel_8_Pro_API_32
WrathChaos commented 1 week ago

Hello @ladaposamuel

Thank you so much for reporting the issue! I was on vacation, now I am back! I will take care of this and also I will upgrade the react native and other dependencies :)

I will let you know when it is done, hopefully it will be done today