简体   繁体   中英

Build Failed Error: Undefined Symbols

I am getting this error when I try to build my project.

Undefined symbols for architecture i386:
  "_OBJC_IVAR_$_UINavigationBar.images", referenced from:
      -[UINavigationBar(CustomImage) drawRect:] in AppDelegate.o
      -[UINavigationBar(CustomImage) setImagesNames:] in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Anyone can help?

Go to your AppDelegate class and check the include for your UINavigationBar category. Your category is either missing from the project, or it is private. My best guess is that it's missing or when you created it you didn't check the target checkbox. They removing it and re-add it. Be careful when you add it back to have your active target checked for the file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM