Bharat
Bharat

Reputation: 3007

Error occurred while Archive my IOS application?

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

Answers (2)

arunjos007
arunjos007

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

Bharat
Bharat

Reputation: 3007

Yes i got it, AppDelegate.m was missing from Compile sources.

Upvotes: 4

Related Questions