开发者

Iphone build error - literal-pointer symbol(s) not found

Sorry I imagine I'm missing something basic here. Before I write up a bunch of details on the specifics of the class I'd appreciate a nudge or smack on the head about the meaning of this build error.

I have a subclass of NSObject SiteAnnotation that should be conforming to the MKAnnotation protocol. It is #imported in the ViewController in question

When I try to alloc/init:

SiteAnnotation *thisAnnotation = [[SiteAnnotation alloc] init];

This is the build error which occurs:

Link /build/Debug-iphonesimulator/testbed.app/testbed
  ".objc_class_name_SiteAnnotation", referenced from:
   literal-pointe开发者_高级运维r@__OBJC@__cls_refs@SiteAnnotation in MapViewController.o
   Symbol(s) not found
   collect2: ld returned 1 exit status

Any tips appreciated.


Check that the file containing SiteAnnotation is still in your build target. Say it's SiteAnnotation.m - click that file, press Cmd+i (for Get Info), and check the Targets tab.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜