开发者

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

开发者 https://www.devze.com 2022-12-28 21:50 出处:网络
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

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

精彩评论

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