Reputation: 3007
I've created an IOS application,But when i'm trying to archive my project i get two errors saying-
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_AppDelegate", referenced from:
objc-class-ref in main.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_AppDelegate", referenced from:
objc-class-ref in main.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
can anyone help me?
Thanks.
Upvotes: 1
Views: 1242
Reputation: 4365
I also had the same issue. The following steps solved my problem:
Click on the project (left upper corner on your Xcode window)
Click on Build Phases tab -> Compile Sources
Check whether AppDelegate.m
is on the list. If not,
click +
button
search AppDelegate.m
and then add it.
Upvotes: 0