找不到符号:_OBJC_CLASS _ $ _ UIPopoverController [英] Symbol not found: _OBJC_CLASS_$_UIPopoverController

查看:115
本文介绍了找不到符号:_OBJC_CLASS _ $ _ UIPopoverController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的通用应用程序出现问题。
我已将Base SDK设置为iPhone 3.2并将目标设置为3.1。

I am having problems with my universal app. I have set the Base SDK to iPhone 3.2 and set the target to 3.1.

我已将使用UIPopoverController的文件移动到他们自己的文件中在iPhone上加载应用程序时不应加载它们。
但是,当我构建我的应用程序时,我在构建和调试到我的设备时出现以下错误:

I have moved the files that are using the UIPopoverController to their own files and they shouldn't be loaded when loading the app on the iPhone. Still, when I build my app I get the following error when I build and debug to my device:


dyld:Symbol找不到:
_OBJC_CLASS _ $ _ UIPopoverController来自:
/var/mobile/Applications/B3B90643-92DC-4E5C-8B2F-83A42D6D57E0/citybikes.app/citybikes
预计:
/System/Library/Frameworks/UIKit.framework/UIKit
in
/var/mobile/Applications/B3B90643-92DC-4E5C-8B2F-83A42D6D57E0/citybikes.app/citybikes

dyld: Symbol not found: _OBJC_CLASS_$_UIPopoverController Referenced from: /var/mobile/Applications/B3B90643-92DC-4E5C-8B2F-83A42D6D57E0/citybikes.app/citybikes Expected in: /System/Library/Frameworks/UIKit.framework/UIKit in /var/mobile/Applications/B3B90643-92DC-4E5C-8B2F-83A42D6D57E0/citybikes.app/citybikes

我真的希望有人可以帮助我。

I really hope someone can help me.

祝你好运,
Paul Peelen

Best regards, Paul Peelen

推荐答案

即使它们未在运行时加载,这些文件仍会在链接中处理。因此,符号 _OBJC_CLASS _ $ _ UIPopoverController 会被添加到您的应用中,作为需要动态链接的符号之一。

Even if they're not loaded in runtime, those files are still processed in linking. The symbol _OBJC_CLASS_$_UIPopoverController is therefore added into your app as one of those requiring dynamic linking.

有2个变通办法,


  1. 在消息中替换UIPopoverController的所有外观(例如 [UIPopoverController alloc] NSClassFromString(@UIPopoverController)

  2. 使UIKit弱链接。

  1. Replace all appearance of UIPopoverController in a message (e.g. [UIPopoverController alloc]) with NSClassFromString(@"UIPopoverController"), or
  2. Make UIKit weakly linked.

这篇关于找不到符号:_OBJC_CLASS _ $ _ UIPopoverController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆