Good day. I am writing a widget. When adding a class and compiling, the error described below comes out. I read that it is possible when assembling files and the compiler (assembler) simply does not see and does it depend on these questions on the picture?

questions

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

  • one
    from the error it follows that TodayVC refers to Forcast, which the compiler does not see. maybe it is not added to the current target, maybe something else. - Max Mikheyenko

1 answer 1

On the right panel in the open m. The file is "Target membership". Put a tick in Forcast.m opposite the name of your target "Today Extension".