Closed imalbert closed 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?
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
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.
Provide environment information
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. Runningturbo 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
t3-oss/create-t3-turbo
then follow installation processeas build -p ios --profile preview
then wait to finishyes
upon prompt"Install and run the iOS build on a simulator? … yes"
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