Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to solve this error : "Undefined symbols for architecture arm64"

I am getting this error continue, and there is no any error in the particular class. Can anyone tell me that how can i fix this error ?

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_MYCLASS", referenced from: objc-class-ref in MYCLASS.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

like image 587
Kalpesh Panchasara Avatar asked Dec 18 '22 09:12

Kalpesh Panchasara


1 Answers

  1. Press "Cmmand+Shift+K" to clean up, and quit Xcode.
  2. delete the cache Run "rm -rf ~/Library/Developer/Xcode/DerivedData" in terminal
  3. open the project and re-build it
like image 122
张富城 Avatar answered Dec 24 '22 00:12

张富城