SwiftUI Charts iPhone Crash: Symbol not found (iPhone public Beta 2)

When trying to add modifiers to a chart axis using this code

.chartYAxis(content: {
                  
})

the app shows no problem running on the simulator and was working fine when running on iOS16 public beta 1, but is now crashing on iOS16 public beta 2.

Here's the whole crash data:

_Symbol not found: _$s6Charts16EmptyAxisContentVAA0cD0AAWP  Referenced from: /private/var/containers/Bundle/Application/8F31A53B-BC55-46B5-9304-A30F816BDA2A/PadelCharts.app/PadelCharts  Expected in:    /System/Library/Frameworks/Charts.framework/Charts Symbol not found: $s6Charts16EmptyAxisContentVAA0cD0AAWP  Referenced from: /private/var/containers/Bundle/Application/8F31A53B-BC55-46B5-9304-A30F816BDA2A/PadelCharts.app/PadelCharts  Expected in:    /System/Library/Frameworks/Charts.framework/Charts dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

Answered by vg0x01 in 723041022

I had the same issue occurring on Xcode 14 Beta 3.

Resolved by upgrading to Xcode 14 Beta 4.

Same here, on the latest beta my app crashes on launch with this:

Symbol not found: _$s6Charts11BuilderPairVA2A12ChartContentRzAaDR_rlEyACyxq_Gx_q_tcfC
Referenced from: <A7EC8CAD-CFC3-3B01-974C-E975A7A55E85> /private/var/containers/Bundle/Application/BF90DC89-243C-499E-9023-C8B0816CACA0/AppName.app/AppName
Expected in:     <D800F5CA-04A9-3D85-A4A1-8AEACDF75A13> /System/Library/Frameworks/Charts.framework/Charts
Symbol not found: _$s6Charts11BuilderPairVA2A12ChartContentRzAaDR_rlEyACyxq_Gx_q_tcfC
Referenced from: <A7EC8CAD-CFC3-3B01-974C-E975A7A55E85> /private/var/containers/Bundle/Application/BF90DC89-243C-499E-9023-C8B0816CACA0/AppName.app/AppName
Expected in:     <D800F5CA-04A9-3D85-A4A1-8AEACDF75A13> /System/Library/Frameworks/Charts.framework/Charts
dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

Same for me trying to ship a TestFlight beta of my app which uses the new Charts framework. Crashes on launch for a large proportion of users with the following message:

Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 4 Symbol missing
Symbol not found: _$s6Charts11BuilderPairVMn
Referenced from: <E7FDC397-7B61-3C7C-A6A0-441BD43EFDC1> /Volumes/VOLUME/*/<App_Name>.app/Heart Hive
Expected in:     <D800F5CA-04A9-3D85-A4A1-8AEACDF75A13> /System/Library/Frameworks/Charts.framework/Charts
(terminated at launch; ignore backtrace)

Same here, charts are crashing on device, on Simulator, working just fine

Accepted Answer

I had the same issue occurring on Xcode 14 Beta 3.

Resolved by upgrading to Xcode 14 Beta 4.

This issue has not been solved for me even using Xcode 14 Beta 4 when distributing via TestFlight. I've not been able to test Beta 5 yet as I can't submit any builds currently, will report back once I've tested this.

Hi all, issue for me solved in Xcode 14 Beta 5

SwiftUI Charts iPhone Crash: Symbol not found (iPhone public Beta 2)
 
 
Q