UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

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?

2      

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

2      

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

2      

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

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

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

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.