I currently have an app in TestFlight on apple for beta testing, but being my first time, I’m experiencing difficulty in troubleshooting crashes that are occurring.
When I test it in a simulator and on my phone via Expo Go, there’s nothing wrong and it’s just crashing while in a production build.
On one crash report I believe the thread that crashed was the following:
Thread 2 name:
Thread 2 Crashed:
0 CoreFoundation 0x0000000190771038 CF_IS_OBJC + 24 (CFRuntime.c:472)
1 CoreFoundation 0x00000001907711dc CFStringGetLength + 148 (CFString.c:2484)
2 CoreFoundation 0x00000001907c81dc CFStringFind + 60 (CFString.c:4495)
3 Pumpzoid 0x0000000104be1bf0 weightOfFont(UIFont*) + 212 (RCTFont.mm:60)
4 Pumpzoid 0x0000000104be16e4 +[RCTFont updateFont:withFamily:size:weight:style:variant:scaleMultiplier:] + 1788 (RCTFont.mm:477)
5 Pumpzoid 0x0000000104d7cd30 -[RCTTextAttributes effectiveFont] + 128 (RCTTextAttributes.mm:220)
6 Pumpzoid 0x0000000104d7c910 -[RCTTextAttributes effectiveTextAttributes] + 64 (RCTTextAttributes.mm:150)
7 Pumpzoid 0x0000000104d78b60 -[RCTBaseTextShadowView attributedTextWithBaseTextAttributes:] + 472 (RCTBaseTextShadowView.mm:101)
8 Pumpzoid 0x0000000104d78bd8 -[RCTBaseTextShadowView attributedTextWithBaseTextAttributes:] + 592 (RCTBaseTextShadowView.mm:111)
9 Pumpzoid 0x0000000104d7e740 -[RCTTextShadowView attributedTextWithMeasuredAttachmentsThatFitSize:] + 80 (RCTTextShadowView.mm:179)
10 Pumpzoid 0x0000000104d7eac0 -[RCTTextShadowView textStorageAndLayoutManagerThatFitsSize:exclusiveOwnership:] + 312 (RCTTextShadowView.mm:227)
11 Pumpzoid 0x0000000104d7db34 RCTTextShadowViewMeasure(YGNode const*, float, YGMeasureMode, float, YGMeasureMode) + 132 (RCTTextShadowView.mm:385)
Specifically where the weightOfFont(UIFont*) + 212 (RCTFont.mm:60)
is occuring.
At first glance this tells me that I need to check where I’m using fontWeights, so I do and there’s nothing out of ordinary with how I use them. The error isn’t exactly descriptive so if anyone can provide insight I’d appreciate it!