体系结构 i386“_OBJC_CLASS_$_Appirater”的未定义符号

发布于 2024-12-28 08:40:32 字数 460 浏览 0 评论 0原文

将Appirater添加到我的iOS项目后,当我编译时,出现错误:

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

在互联网上搜索和搜索后,找到的解决方案都没有帮助。

我的项目和目标都设置为:

在此处输入图像描述

我应该尝试更多什么?

After adding Appirater to my iOS project, when I compile, I get the error:

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

After searching and searching on the internet, none of the solutions found helped.

Both my project and target are setup as:

enter image description here

What should I try more?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

咆哮 2025-01-04 08:40:32

我认为您只将文件添加到项目中,但没有添加到目标中。
单击 Project Navigator 中的 Appirater.m 文件,并在 File InspectorTargetmembership 中设置目标名称附近的复选框>。

I think, that you only added files to project, but not to target.
Click on Appirater.m file in Project Navigator and set checkbox near to your target name in Target membership of File Inspector.

书信已泛黄 2025-01-04 08:40:32

您似乎尚未将 Appirater 代码正确添加到您的项目中。 Appirater.hAppirater.m 都必须是您项目的一部分,并且 Appirater.m 必须像所有其他文件一样进行编译。

It seems that you haven't properly added the Appirater code to your project. Both Appirater.h and Appirater.m must be part of your project, and Appirater.m must be compiled like all your other files.

遗心遗梦遗幸福 2025-01-04 08:40:32

如果您忘记将 CFNetwork 和 SystemConfiguration 框架添加到项目中,您也会收到此错误。

You'll also get this error if you've neglected to add the CFNetwork and SystemConfiguration frameworks to your project.

无风消散 2025-01-04 08:40:32

我刚刚遇到了同样的问题,并修复了它。

我的问题的原因是我将文件从其他项目拖放到当前项目中。

当然,当我们删除并重新创建该文件时,它就可以工作了。

I just had the same problem, and fixed it.

The cause of my issue is I had dragged and dropped a file from other project to the current.

Of course it is working when we remove and recreate the file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文