user2924482
user2924482

Reputation: 9120

iOS: Undefined symbols for architecture i386

I'm trying to implement ios-oauthconsumer but I'm getting this error:

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

I tried to add the files following this solution but Xcode re-adds the file to the project. For example:

enter image description here Any of you knows a way were I can add the files to the "Compile Sources" without having to re-add the file?

I'll really appreciated you help.

Upvotes: 0

Views: 453

Answers (1)

Shackleford
Shackleford

Reputation: 620

Make sure that each source file that needs to be linked is part of the Compile Sources section of your target. You can verify this by selecting your project in Navigator pane (as shown in your screenshot) and expanding the section shown here:

Xcode Compile Sources

You can also verify this by selecting the files and viewing their target membership in the Utilities pane in xcode.

Target Membership

Upvotes: 1

Related Questions