为什么我在使用 SoundCloud API 时会收到以下编译器错误?

发布于 2024-09-30 02:10:34 字数 663 浏览 2 评论 0原文

我已经创建了一个 iPhone 应用程序。我想将 SoundCloud API 与我的应用程序集成。我创建了一个单独的应用程序来集成 SoundCloud API。它与 SoundCloud API 配合良好。

但我尝试与现有的应用程序集成,但出现以下错误。我已经将 SoundCloud API 代码添加到我现有的应用程序中。

错误:

ld: warning: directory '/Alex/project/../../iHearFmod/iphoneos3.1.3/System/Library/Frameworks' following -F not found
Undefined symbols:
  "_OBJC_CLASS_$_SCSoundCloudAPIConfiguration", referenced from:
      objc-class-ref-to-SCSoundCloudAPIConfiguration in MyProjectAppDelegate.o
  "_OBJC_CLASS_$_SCSoundCloudAPI", referenced from:
      objc-class-ref-to-SCSoundCloudAPI in MyProjectAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

I have created an iPhone application. I want to integrate SoundCloud API with my application. I have created one separate application to integrate SoundCloud API. It is working fine with SoundCloud API.

But I tried to integrate with my existing application, I am getting following error. Already I have added the SoundCloud API code to my existing application.

error:

ld: warning: directory '/Alex/project/../../iHearFmod/iphoneos3.1.3/System/Library/Frameworks' following -F not found
Undefined symbols:
  "_OBJC_CLASS_$_SCSoundCloudAPIConfiguration", referenced from:
      objc-class-ref-to-SCSoundCloudAPIConfiguration in MyProjectAppDelegate.o
  "_OBJC_CLASS_$_SCSoundCloudAPI", referenced from:
      objc-class-ref-to-SCSoundCloudAPI in MyProjectAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

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

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

发布评论

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

评论(1

一城柳絮吹成雪 2024-10-07 02:10:34

在 soundcloud 文档上查找:

Mac 框架应复制到您的应用程序中并链接到您的目标。还要向您的目标添加一个构建阶段,将框架复制到 Frameworks 目标。

最后一步你做了吗?

Find on soundclound doc:

The Mac framework should be copied into your application and linked to your target. Also add a build phase to your target that copies the framework to the Frameworks destination.

Did you do the last step ?

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