swift - Linker Error occurs when using Firebase and Google pods -
i having linker error being produced on build , don't know how fix it. have tried many solutions on stackoverflow , none of them have worked me. appreciated.
(summary of error: ld: 44 duplicate symbols architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation)
error message:
to begin, had looked through many solutions , tried of them, none of them had worked, started go through these steps:
recreate project, keep important things. recreated project copying assets , main.storyboard files new 1 had created.
installing pods correctly. went terminal, , watched video carefully, explained pods needed firebase/auth , googlesignin. used pod init initialize pods in project. then, used open podfile, install pods needed. when in podfile, turned off smart quotes because had created errors in project before. typed in pod 'firebase/auth' , pod 'googlesignin' saved file, , ran pod install. afterwards, must open .xcworkspace file project , not original project file.
coding viewcontroller.swift , appdelegate files. went through tutorial using, , inputted same code guy telling code. after coding of these files, code ran , worked!
Comments
Post a Comment