BLACK FRIDAY SALE: Save 50% on all my Swift books and bundles! >>

Day 54 - "Undefined symbols for architecture arm64" errors

Forums > 100 Days of SwiftUI

Hi guys,

I have 6 errors during day 54 of the course:

Undefined symbols for architecture arm64: "_$s8Bookworm10RatingViewV6rating5label07maximumB08offImage02onH07ofColor0iK0AC7SwiftUI7BindingVySiGSSSiAK0H0VSgApK0K0VAStcfC", referenced from: $s8Bookworm11AddBookViewV4bodyQrvg7SwiftUI4FormVyAE05TupleD0VyAE9TextFieldVyAE0J0VG_AnE6PickerVyAMSSAE7ForEachVySaySSGSSAMGGAE7SectionVyAmIyAE0J6EditorV_AA06RatingD0VtGAE05EmptyD0VGAWyA2_AE6ButtonVyAMGA2_GtGGyXEfU_A8_yXEfU_A0yXEfU0 in AddBookView.o "_$s8Bookworm10RatingViewV6rating5label07maximumB08offImage02onH07ofColor0iK0AC7SwiftUI7BindingVySiGSSSiAK0H0VSgApK0K0VAStcfcfA0", referenced from: _$s8Bookworm11AddBookViewV4bodyQrvg7SwiftUI4FormVyAE05TupleD0VyAE9TextFieldVyAE0J0VG_AnE6PickerVyAMSSAE7ForEachVySaySSGSSAMGGAE7SectionVyAmIyAE0J6EditorV_AA06RatingD0VtGAE05EmptyD0VGAWyA2_AE6ButtonVyAMGA2_GtGGyXEfU_A8_yXEfU_A0yXEfU0 in AddBookView.o "_$s8Bookworm10RatingViewV6rating5label07maximumB08offImage02onH07ofColor0iK0AC7SwiftUI7BindingVySiGSSSiAK0H0VSgApK0K0VAStcfcfA1", referenced from: _$s8Bookworm11AddBookViewV4bodyQrvg7SwiftUI4FormVyAE05TupleD0VyAE9TextFieldVyAE0J0VG_AnE6PickerVyAMSSAE7ForEachVySaySSGSSAMGGAE7SectionVyAmIyAE0J6EditorV_AA06RatingD0VtGAE05EmptyD0VGAWyA2_AE6ButtonVyAMGA2_GtGGyXEfU_A8_yXEfU_A0yXEfU0 in AddBookView.o "_$s8Bookworm10RatingViewV6rating5label07maximumB08offImage02onH07ofColor0iK0AC7SwiftUI7BindingVySiGSSSiAK0H0VSgApK0K0VAStcfcfA3", referenced from: _$s8Bookworm11AddBookViewV4bodyQrvg7SwiftUI4FormVyAE05TupleD0VyAE9TextFieldVyAE0J0VG_AnE6PickerVyAMSSAE7ForEachVySaySSGSSAMGGAE7SectionVyAmIyAE0J6EditorV_AA06RatingD0VtGAE05EmptyD0VGAWyA2_AE6ButtonVyAMGA2_GtGGyXEfU_A8_yXEfU_A0yXEfU0 in AddBookView.o "_$s8Bookworm10RatingViewV6rating5label07maximumB08offImage02onH07ofColor0iK0AC7SwiftUI7BindingVySiGSSSiAK0H0VSgApK0K0VAStcfcfA4", referenced from: _$s8Bookworm11AddBookViewV4bodyQrvg7SwiftUI4FormVyAE05TupleD0VyAE9TextFieldVyAE0J0VG_AnE6PickerVyAMSSAE7ForEachVySaySSGSSAMGGAE7SectionVyAmIyAE0J6EditorV_AA06RatingD0VtGAE05EmptyD0VGAWyA2_AE6ButtonVyAMGA2_GtGGyXEfU_A8_yXEfU_A0yXEfU0 in AddBookView.o "_$s8Bookworm10RatingViewV6rating5label07maximumB08offImage02onH07ofColor0iK0AC7SwiftUI7BindingVySiGSSSiAK0H0VSgApK0K0VAStcfcfA5", referenced from: _$s8Bookworm11AddBookViewV4bodyQrvg7SwiftUI4FormVyAE05TupleD0VyAE9TextFieldVyAE0J0VG_AnE6PickerVyAMSSAE7ForEachVySaySSGSSAMGGAE7SectionVyAmIyAE0J6EditorV_AA06RatingD0VtGAE05EmptyD0VGAWyA2_AE6ButtonVyAMGA2_GtGGyXEfU_A8_yXEfU_A0yXEfU0 in AddBookView.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

and I can't find a solution for it. Could you help me, please?

   

Is this in the "log" window? Do the code work or crashes? If so read On Log Noise.

   

I went line by line and found the problem...there was a "section" missing in the code.

   

Hacking with Swift is sponsored by Guardsquare

SPONSORED AppSweep by Guardsquare helps developers automate the mobile app security testing process with fast, free scans. By using AppSweep’s actionable recommendations, developers can improve the security posture of their apps in accordance with security standards like OWASP.

Learn more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.