lnafziger / Numberpad

iOS Custom Numberpad
MIT License
79 stars 28 forks source link

Fail to link to LNNumberPad #4

Closed felixriestra closed 11 years ago

felixriestra commented 11 years ago

Hello I followed the instructions to get this in my project. Add the 3 files in the project as show below. lnadded

I import the header and create a "user" text field, synthesize and set delegate to the ViewController.

import "LNNumberpad.h"

@synthesize user;

.........

When I build, got the following message:

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

It look that the compiler do not see the class LNNumberPad.... My project is using ARC.

lnafziger commented 11 years ago

It looks like you did not add the files to your target app when you added them.

Make sure while adding the files that you select the checkmark next to your app in the Add to targets box under the file picker.

You can also go to the Build Phases section under the Targets section of the project settings and make sure that LNNumberpad.m is listed under Compile Sources and LNNumberpad.xib is listed under Copy Bundle Resources.