0

I am facing linker error after upgrading Xcode from 7.3 to 8.3.1, below is the error coming at the time of project build:

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

Architecture Settings in Build Setting: enter image description here

Compile Sources: enter image description here enter image description here Please help. Thanks in advance.

Vaibhav Agarwal
  • 238
  • 5
  • 19

1 Answers1

0

Check your TestAppDelegate class, especially property loggedinUser. There should be some clues.

This may be a problem, that the target you are compiling is using the UIView+Toast file, which requires the TestAppDelegate to also be compiled. Check your project settings -> build phases -> compile sources and check if any entries are colored red (missing under the path) or are just not there, and readd them.

Alistra
  • 5,177
  • 2
  • 30
  • 42