t3-oss / create-t3-turbo

Clean and simple starter repo using the T3 Stack along with Expo React Native
https://turbo.t3.gg
MIT License
4.46k stars 376 forks source link

bug: eas preview build instantly crashes on launch #207

Closed imalbert closed 1 year ago

imalbert commented 1 year ago

Provide environment information

System:
    OS: macOS 13.0
    CPU: (8) arm64 Apple M1
    Memory: 189.45 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 19.6.0 - /opt/homebrew/bin/node
    npm: 9.4.0 - /opt/homebrew/bin/npm
    Watchman: 2023.02.13.00 - /opt/homebrew/bin/watchman

Describe the bug

On a fresh install of create-t3-turbo, eas build -p ios --profile preview creates and installs a build into iOS Simulator but crashes instantly. Running turbo run dev --filter=expo successfully launches the app.

Expected: App to launch successfully

Link to reproduction

https://github.com/t3-oss/create-t3-turbo

To reproduce

  1. Clone t3-oss/create-t3-turbo then follow installation process
  2. Using EAS, run eas build -p ios --profile preview then wait to finish
  3. Select yes upon prompt "Install and run the iOS build on a simulator? … yes"
  4. App is installed and launched on the selected simulator
  5. App crashes immediately; Same happens when re-opening the app (like in the video below)

Additional information

https://user-images.githubusercontent.com/12537973/225820569-2a6ec6f3-8a05-4eca-ad33-86d74250b6bd.mov

Error logs from ~/Library/Logs/DiagnosticReports/createt3turbo-2023-03-17**.ips ``` {"app_name":"createt3turbo","timestamp":"2023-03-17 13:28:18.00 +0800","app_version":"1.0.0","slice_uuid":"f79f2b68-4188-3ab0-9b21-7cc999da15d4","build_version":"1","platform":7,"bundleID":"your.bundle.identifier","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.0 (22A380)","roots_installed":0,"name":"createt3turbo","incident_id":"6A9C1542-6F4E-4FE9-B2A6-BCB0A3CA6CF7"} { "uptime" : 35000, "procRole" : "Foreground", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "MacBookAir10,1", "coalitionID" : 24711, "osVersion" : { "train" : "macOS 13.0", "build" : "22A380", "releaseType" : "User" }, "captureTime" : "2023-03-17 13:28:16.7099 +0800", "incident" : "6A9C1542-6F4E-4FE9-B2A6-BCB0A3CA6CF7", "pid" : 64234, "translated" : false, "cpuType" : "ARM-64", "roots_installed" : 0, "bug_type" : "309", "procLaunch" : "2023-03-17 13:28:15.9476 +0800", "procStartAbsTime" : 850330327429, "procExitAbsTime" : 850348082512, "procName" : "createt3turbo", "procPath" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/99599CC0-CF2B-46D8-9766-DB593EED4EC2\/data\/Containers\/Bundle\/Application\/7F7E1AC0-B6A7-4AD2-83D9-8E8095D2BA28\/createt3turbo.app\/createt3turbo", "bundleInfo" : {"CFBundleShortVersionString":"1.0.0","CFBundleVersion":"1","CFBundleIdentifier":"your.bundle.identifier"}, "storeInfo" : {"deviceIdentifierForVendor":"8DCB6EF4-5811-5212-AA86-BADDB3BF6E99","thirdParty":true}, "parentProc" : "launchd_sim", "parentPid" : 54301, "coalitionName" : "com.apple.CoreSimulator.SimDevice.99599CC0-CF2B-46D8-9766-DB593EED4EC2", "crashReporterKey" : "7EC063EE-E764-C659-3CAD-B450F03A38C4", "responsiblePid" : 673, "responsibleProc" : "SimulatorTrampoline", "wakeTime" : 5631, "sleepWakeUUID" : "46720C36-E7CF-455F-A94E-5CF3700453DA", "sip" : "enabled", "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"}, "ktriageinfo" : "VM - pmap_enter retried due to resource shortage\n", "asiBacktraces" : ["0 CoreFoundation 0x00000001803f3d70 __exceptionPreprocess + 236\n1 libobjc.A.dylib 0x000000018019814c objc_exception_throw + 56\n2 createt3turbo 0x00000001005f2000 RCTFormatError + 0\n3 createt3turbo 0x0000000100664014 -[RCTExceptionsManager reportFatal:stack:exceptionId:extraDataAsJSON:] + 476\n4 createt3turbo 0x0000000100664858 -[RCTExceptionsManager reportException:] + 1292\n5 CoreFoundation 0x00000001803fa230 __invoking___ + 144\n6 CoreFoundation 0x00000001803f7754 -[NSInvocation invoke] + 300\n7 CoreFoundation 0x00000001803f7a14 -[NSInvocation invokeWithTarget:] + 76\n8 createt3turbo 0x000000010062166c -[RCTModuleMethod invokeWithBridge:module:arguments:] + 388\n9 createt3turbo 0x0000000100623850 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicEiN12_GLOBAL__N_117SchedulingContextE + 452\n10 createt3turbo 0x00000001006234d8 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 112\n11 libdispatch.dylib 0x000000018010d244 _dispatch_call_block_and_release + 24\n12 libdispatch.dylib 0x000000018010ea98 _dispatch_client_callout + 16\n13 libdispatch.dylib 0x0000000180115acc _dispatch_lane_serial_drain + 652\n14 libdispatch.dylib 0x0000000180116648 _dispatch_lane_invoke + 400\n15 libdispatch.dylib 0x0000000180120e10 _dispatch_workloop_worker_thread + 736\n16 libsystem_pthread.dylib 0x00000001cc0af8fc _pthread_wqthread + 284\n17 libsystem_pthread.dylib 0x00000001cc0ae6c0 start_wqthread + 8"], "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "lastExceptionBacktrace" : [{"imageOffset":1146204,"symbol":"__exceptionPreprocess","symbolLocation":216,"imageIndex":1},{"imageOffset":139596,"symbol":"objc_exception_throw","symbolLocation":56,"imageIndex":10},{"imageOffset":811008,"symbol":"RCTFormatError","symbolLocation":0,"imageIndex":4},{"imageOffset":1277972,"symbol":"-[RCTExceptionsManager reportFatal:stack:exceptionId:extraDataAsJSON:]","symbolLocation":476,"imageIndex":4},{"imageOffset":1280088,"symbol":"-[RCTExceptionsManager reportException:]","symbolLocation":1292,"imageIndex":4},{"imageOffset":1172016,"symbol":"__invoking___","symbolLocation":144,"imageIndex":1},{"imageOffset":1161044,"symbol":"-[NSInvocation invoke]","symbolLocation":300,"imageIndex":1},{"imageOffset":1161748,"symbol":"-[NSInvocation invokeWithTarget:]","symbolLocation":76,"imageIndex":1},{"imageOffset":1005164,"symbol":"-[RCTModuleMethod invokeWithBridge:module:arguments:]","symbolLocation":388,"imageIndex":4},{"imageOffset":1013840,"symbol":"facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)","symbolLocation":452,"imageIndex":4},{"imageOffset":1012952,"symbol":"invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)","symbolLocation":112,"imageIndex":4},{"imageOffset":8772,"symbol":"_dispatch_call_block_and_release","symbolLocation":24,"imageIndex":11},{"imageOffset":15000,"symbol":"_dispatch_client_callout","symbolLocation":16,"imageIndex":11},{"imageOffset":43724,"symbol":"_dispatch_lane_serial_drain","symbolLocation":652,"imageIndex":11},{"imageOffset":46664,"symbol":"_dispatch_lane_invoke","symbolLocation":400,"imageIndex":11},{"imageOffset":89616,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":736,"imageIndex":11},{"imageOffset":14588,"symbol":"_pthread_wqthread","symbolLocation":284,"imageIndex":7},{"imageOffset":9920,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":7}], "faultingThread" : 3, "threads" : [{"id":561515,"queue":"com.apple.main-thread","frames":[{"imageOffset":4876,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":74092,"symbol":"mach_msg2_internal","symbolLocation":76,"imageIndex":0},{"imageOffset":38156,"symbol":"mach_msg_overwrite","symbolLocation":536,"imageIndex":0},{"imageOffset":5756,"symbol":"mach_msg","symbolLocation":20,"imageIndex":0},{"imageOffset":546668,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":1},{"imageOffset":523128,"symbol":"__CFRunLoopRun","symbolLocation":1096,"imageIndex":1},{"imageOffset":520728,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":1},{"imageOffset":13836,"symbol":"GSEventRunModal","symbolLocation":160,"imageIndex":2},{"imageOffset":12638872,"symbol":"-[UIApplication _run]","symbolLocation":992,"imageIndex":3},{"imageOffset":12658228,"symbol":"UIApplicationMain","symbolLocation":112,"imageIndex":3},{"imageOffset":10668,"symbol":"main","symbolLocation":80,"imageIndex":4},{"imageOffset":7384,"symbol":"start_sim","symbolLocation":20,"imageIndex":5},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":6}]},{"id":561532,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":561533,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"triggered":true,"id":561534,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":6444822577},{"value":6168192016},{"value":110},{"value":18446744069414586112},{"value":6168195072},{"value":4432940169323021183},{"value":512},{"value":11},{"value":0},{"value":736333824},{"value":16},{"value":0},{"value":328},{"value":2},{"value":0},{"value":6},{"value":6168195072},{"value":4355},{"value":6168195296},{"value":4351},{"value":0},{"value":4},{"value":0},{"value":0},{"value":105553146947712}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7718253032},"cpsr":{"value":1073745920},"fp":{"value":6168191872},"sp":{"value":6168191840},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7717904672,"matchesCrashFrame":1},"far":{"value":5703288144}},"queue":"com.facebook.react.ExceptionsManagerQueue","frames":[{"imageOffset":37152,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":29160,"symbol":"pthread_kill","symbolLocation":256,"imageIndex":7},{"imageOffset":480244,"symbol":"abort","symbolLocation":124,"imageIndex":8},{"imageOffset":69300,"symbol":"abort_message","symbolLocation":128,"imageIndex":9},{"imageOffset":5740,"symbol":"demangling_terminate_handler()","symbolLocation":300,"imageIndex":9},{"imageOffset":20128,"symbol":"_objc_terminate()","symbolLocation":124,"imageIndex":10},{"imageOffset":66404,"symbol":"std::__terminate(void (*)())","symbolLocation":16,"imageIndex":9},{"imageOffset":66316,"symbol":"std::terminate()","symbolLocation":60,"imageIndex":9},{"imageOffset":15020,"symbol":"_dispatch_client_callout","symbolLocation":36,"imageIndex":11},{"imageOffset":43724,"symbol":"_dispatch_lane_serial_drain","symbolLocation":652,"imageIndex":11},{"imageOffset":46664,"symbol":"_dispatch_lane_invoke","symbolLocation":400,"imageIndex":11},{"imageOffset":89616,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":736,"imageIndex":11},{"imageOffset":14588,"symbol":"_pthread_wqthread","symbolLocation":284,"imageIndex":7},{"imageOffset":9920,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":7}]},{"id":561535,"name":"com.apple.uikit.eventfetch-thread","frames":[{"imageOffset":4876,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":74092,"symbol":"mach_msg2_internal","symbolLocation":76,"imageIndex":0},{"imageOffset":38156,"symbol":"mach_msg_overwrite","symbolLocation":536,"imageIndex":0},{"imageOffset":5756,"symbol":"mach_msg","symbolLocation":20,"imageIndex":0},{"imageOffset":546668,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":1},{"imageOffset":523128,"symbol":"__CFRunLoopRun","symbolLocation":1096,"imageIndex":1},{"imageOffset":520728,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":1},{"imageOffset":1210408,"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","symbolLocation":232,"imageIndex":12},{"imageOffset":1211104,"symbol":"-[NSRunLoop(NSRunLoop) runUntilDate:]","symbolLocation":88,"imageIndex":12},{"imageOffset":13385756,"symbol":"-[UIEventFetcher threadMain]","symbolLocation":472,"imageIndex":3},{"imageOffset":1381752,"symbol":"__NSThread__start__","symbolLocation":792,"imageIndex":12},{"imageOffset":29924,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":7},{"imageOffset":9932,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]},{"id":561536,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":561537,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":561538,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":561551,"name":"com.facebook.react.JavaScript","frames":[{"imageOffset":4876,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":74092,"symbol":"mach_msg2_internal","symbolLocation":76,"imageIndex":0},{"imageOffset":38156,"symbol":"mach_msg_overwrite","symbolLocation":536,"imageIndex":0},{"imageOffset":5756,"symbol":"mach_msg","symbolLocation":20,"imageIndex":0},{"imageOffset":546668,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":1},{"imageOffset":523128,"symbol":"__CFRunLoopRun","symbolLocation":1096,"imageIndex":1},{"imageOffset":520728,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":1},{"imageOffset":884344,"symbol":"+[RCTCxxBridge runRunLoop]","symbolLocation":212,"imageIndex":4},{"imageOffset":1381752,"symbol":"__NSThread__start__","symbolLocation":792,"imageIndex":12},{"imageOffset":29924,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":7},{"imageOffset":9932,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]},{"id":561552,"name":"hades","frames":[{"imageOffset":18448,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31392,"symbol":"_pthread_cond_wait","symbolLocation":1220,"imageIndex":7},{"imageOffset":49548,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock&)","symbolLocation":24,"imageIndex":13},{"imageOffset":1163624,"imageIndex":14},{"imageOffset":1163036,"imageIndex":14},{"imageOffset":29924,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":7},{"imageOffset":9932,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]},{"id":561553,"name":"hermes-chrome-inspector-conn","frames":[{"imageOffset":18448,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31392,"symbol":"_pthread_cond_wait","symbolLocation":1220,"imageIndex":7},{"imageOffset":49548,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock&)","symbolLocation":24,"imageIndex":13},{"imageOffset":1966004,"symbol":"facebook::hermes::inspector::detail::SerialExecutor::runLoop()","symbolLocation":120,"imageIndex":4},{"imageOffset":1674928,"symbol":"void* std::__1::__thread_proxy >, void (*)(std::__1::basic_string, std::__1::allocator >, std::__1::function), std::__1::basic_string, std::__1::allocator >, std::__1::function > >(void*)","symbolLocation":116,"imageIndex":4},{"imageOffset":29924,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":7},{"imageOffset":9932,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]},{"id":561554,"name":"hermes-inspector","frames":[{"imageOffset":18448,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31392,"symbol":"_pthread_cond_wait","symbolLocation":1220,"imageIndex":7},{"imageOffset":49548,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock&)","symbolLocation":24,"imageIndex":13},{"imageOffset":1966004,"symbol":"facebook::hermes::inspector::detail::SerialExecutor::runLoop()","symbolLocation":120,"imageIndex":4},{"imageOffset":1674928,"symbol":"void* std::__1::__thread_proxy >, void (*)(std::__1::basic_string, std::__1::allocator >, std::__1::function), std::__1::basic_string, std::__1::allocator >, std::__1::function > >(void*)","symbolLocation":116,"imageIndex":4},{"imageOffset":29924,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":7},{"imageOffset":9932,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64", "base" : 7717867520, "size" : 229376, "uuid" : "99ef4d89-bf00-3860-a076-24f05834886c", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6445449216, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.CoreFoundation", "size" : 3866624, "uuid" : "673c8a21-98bf-38f0-a038-55ab0de23142", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/Frameworks\/CoreFoundation.framework\/CoreFoundation", "name" : "CoreFoundation", "CFBundleVersion" : "1863" }, { "source" : "P", "arch" : "arm64", "base" : 6646251520, "CFBundleShortVersionString" : "1.0", "CFBundleIdentifier" : "com.apple.GraphicsServices", "size" : 36864, "uuid" : "9334a354-2177-30b1-b919-4fecf59fef22", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/GraphicsServices.framework\/GraphicsServices", "name" : "GraphicsServices", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 6511112192, "CFBundleShortVersionString" : "1.0", "CFBundleIdentifier" : "com.apple.UIKitCore", "size" : 21573632, "uuid" : "7bbc9f13-df06-3c47-9a63-8483442bdfcb", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/UIKitCore.framework\/UIKitCore", "name" : "UIKitCore", "CFBundleVersion" : "5612" }, { "source" : "P", "arch" : "arm64", "base" : 4300390400, "CFBundleShortVersionString" : "1.0.0", "CFBundleIdentifier" : "your.bundle.identifier", "size" : 2965504, "uuid" : "f79f2b68-4188-3ab0-9b21-7cc999da15d4", "path" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/99599CC0-CF2B-46D8-9766-DB593EED4EC2\/data\/Containers\/Bundle\/Application\/7F7E1AC0-B6A7-4AD2-83D9-8E8095D2BA28\/createt3turbo.app\/createt3turbo", "name" : "createt3turbo", "CFBundleVersion" : "1" }, { "source" : "P", "arch" : "arm64", "base" : 4311859200, "size" : 245760, "uuid" : "67298116-bb18-3438-b22e-8d2b9d4618e9", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/dyld_sim", "name" : "dyld_sim" }, { "source" : "P", "arch" : "arm64e", "base" : 4314284032, "size" : 573440, "uuid" : "1f56ab4e-f398-3a9c-bfba-fbbd17808963", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "source" : "P", "arch" : "arm64", "base" : 7718223872, "size" : 53248, "uuid" : "030d2641-514f-373f-9688-582d9d3b369a", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6443028480, "size" : 516096, "uuid" : "d02ea88f-ad2d-354c-85eb-14cf4b6b1bb6", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/system\/libsystem_c.dylib", "name" : "libsystem_c.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6444740608, "size" : 94208, "uuid" : "60908b1e-a8d3-3ecb-b51f-5ba5ca88d367", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/libc++abi.dylib", "name" : "libc++abi.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6443982848, "size" : 204800, "uuid" : "925dbcc5-c31e-336d-aede-6fbce41d5415", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/libobjc.A.dylib", "name" : "libobjc.A.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6443544576, "size" : 274432, "uuid" : "a06c95dc-09e7-3a87-afb6-7e1b0bec1287", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/system\/libdispatch.dylib", "name" : "libdispatch.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6449790976, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.Foundation", "size" : 2899968, "uuid" : "ded71e05-af0a-3172-b09e-7f070ec7d4aa", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/Frameworks\/Foundation.framework\/Foundation", "name" : "Foundation", "CFBundleVersion" : "1863" }, { "source" : "P", "arch" : "arm64", "base" : 6444920832, "size" : 376832, "uuid" : "03a5f91e-2bc5-3d4f-b91f-729633a08579", "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/libc++.1.dylib", "name" : "libc++.1.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 4321968128, "CFBundleShortVersionString" : "0.12.0", "CFBundleIdentifier" : "dev.hermesengine.iphonesimulator", "size" : 2981888, "uuid" : "dd8fec13-4cd7-34e2-aa9f-24aaa9550681", "path" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/99599CC0-CF2B-46D8-9766-DB593EED4EC2\/data\/Containers\/Bundle\/Application\/7F7E1AC0-B6A7-4AD2-83D9-8E8095D2BA28\/createt3turbo.app\/Frameworks\/hermes.framework\/hermes", "name" : "hermes", "CFBundleVersion" : "0.12.0" } ], "sharedCache" : { "base" : 6442450944, "size" : 2232827904, "uuid" : "5b1b5894-31e5-3364-8135-7be20300b458" }, "vmSummary" : "ReadOnly portion of Libraries: Total=877.8M resident=0K(0%) swapped_out_or_unallocated=877.8M(100%)\nWritable regions: Total=624.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=624.3M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nColorSync 128K 4 \nFoundation 16K 1 \nIOSurface 416K 2 \nKernel Alloc Once 32K 1 \nMALLOC 216.5M 45 \nMALLOC guard page 128K 8 \nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.2M 12 \nStack 13.8M 12 \nVM_ALLOCATE 8688K 8 \n__DATA 12.9M 388 \n__DATA_CONST 32.0M 386 \n__DATA_DIRTY 50K 9 \n__FONT_DATA 4K 1 \n__LINKEDIT 523.1M 7 \n__OBJC_RO 63.1M 1 \n__OBJC_RW 3168K 1 \n__TEXT 354.8M 394 \n__UNICODE 592K 1 \ndyld private memory 1536K 3 \nmapped file 37.4M 7 \nshared memory 16K 1 \n=========== ======= ======= \nTOTAL 1.7G 1294 \nTOTAL, minus reserved VM space 1.3G 1294 \n", "legacyInfo" : { "threadTriggered" : { "queue" : "com.facebook.react.ExceptionsManagerQueue" } }, "trialInfo" : { "rollouts" : [ { "rolloutId" : "60186475825c62000ccf5450", "factorPackIds" : { }, "deploymentId" : 240000026 }, { "rolloutId" : "60f8ddccefea4203d95cbeef", "factorPackIds" : { }, "deploymentId" : 240000025 } ], "experiments" : [ ] } } ```
juliusmarminge commented 1 year ago

Noticed this too - assumed it was just me as noone had reported any issues. I don't have an Apple Dev account so not sure if it works when built outside preview? What could the issue be?

imalbert commented 1 year ago

For me it turned out that I just didn't set up the base url for trpc https://github.com/t3-oss/create-t3-turbo/blob/main/apps/expo/src/utils/api.tsx#L26-L32 🤦

The same problem was referenced in here https://github.com/t3-oss/create-t3-turbo/pull/168/files. I think we should put this in README somehow since debugging at this point was a big headache

juliusmarminge commented 1 year ago

For me it turned out that I just didn't set up the base url for trpc https://github.com/t3-oss/create-t3-turbo/blob/main/apps/expo/src/utils/api.tsx#L26-L32 🤦

The same problem was referenced in here https://github.com/t3-oss/create-t3-turbo/pull/168/files. I think we should put this in README somehow since debugging at this point was a big headache

Oh right... Yea there's no debugger host when launching the built app...

Yea we can add that to the readme i guess.

juliusmarminge commented 1 year ago

Fixed here: https://github.com/t3-oss/create-t3-turbo/commit/162853558a750e3a3d3fb898c593332318aa5e36

https://github.com/t3-oss/create-t3-turbo#expo