开发者

Framework errors: ".objc_class_name_XXX", referenced from

I have taken over a Cocoa project that includes some frameworks, and I can get no help from the previous developer. When building one of the frameworks, I get 8开发者_开发知识库 errors like this:

".objc_class_name_XXX", referenced from

I have tried googling the problem, but I cant get my head around it. Any ideas?

I also get some warnings saying "missing required architecture ppc in file" for a linked framework, could this hint at the problem?

Any help will be greatly appreciated. Thank you Søren


The missing .objc_class_name_XXX means you’re sending class messages to XXX, but not linking to the binary where XXX’s main implementation is. Presumably this is the framework that doesn’t have a PPC part.

There are three possible ways to fix this:

  • Get a version of the framework with a PowerPC part.
  • Stop building for PowerPC (the ARCHS build setting).
  • Stop using those classes in the PowerPC build of the project (either look them up dynamically using NSClassFromString or #ifdef them out).
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜