将 .m4a 文件添加到资源时 XCode 崩溃

发布于 2024-08-14 09:18:26 字数 156 浏览 4 评论 0原文

我使用 GarageBand 创建了自己的小 .m4a 文件,以便在 iPhone 上的应用程序中使用。每次我尝试添加现有文件时,当我选择 .m4a 文件时,XCode 都会崩溃。 文件本身可以在 QuickTime Player 和 iTunes 中正常播放。

有什么解决方法吗?

I created my own small .m4a file with GarageBand, for use in my app on the iPhone. Everytime I try to Add existing file, XCode crashes when I select the .m4a file.
The file itself will play nicely in QuickTime Player and iTunes.

Any workarounds?

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

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

发布评论

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

评论(2

终弃我 2024-08-21 09:18:26

因此,这是解决方法:将 .m4a 文件放入一个目录中,并将该目录“添加现有文件”到项目中。这样就可以了,该目录和该目录中的 .m4a 文件现在都是项目的一部分。

如果你问我的话,XCode 会出现很大的错误。

So this is the workaround: put the .m4a file into a directory and "Add existing file" that directory to the project. That works, both the directory and the .m4a file in that directory are now part of the project.

Big XCode bug if you ask me.

谎言月老 2024-08-21 09:18:26

不知道为什么 Xcode 会崩溃,但你可以尝试 将音频文件转换为 iPhone 推荐的格式

Don't know why Xcode would be crashing, but you might try converting the audio file to the recommended format for iPhone.

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