使用 alassestsLibrary 时出错

发布于 2024-10-27 08:15:46 字数 550 浏览 3 评论 0原文

我正在尝试使用 ALAssetsLibrary 从相册加载图像 iphone/ipad 的。我在构建和存档时收到以下警告。

ld: warning: in /Users/mark/Projects/Speech_Recognition/Protoype_Test1/AssetsLibrary.framework/AssetsLibrary, file was built for i386 which is not the architecture being linked (armv7)

我还收到错误“

  "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
  objc-class-ref-to-ALAssetsLibrary in PhotoPuller.o
  ld: symbol(s) not found
  collect2: ld returned 1 exit status

在模拟器中运行时没有错误”,但我没有收到返回给我的任何图像

,我已经不知道该怎么做了

Im trying to use ALAssetsLibrary to load images fromthe photo album
of iphone/ipad.Im getting the following warning while doing build and archive.

ld: warning: in /Users/mark/Projects/Speech_Recognition/Protoype_Test1/AssetsLibrary.framework/AssetsLibrary, file was built for i386 which is not the architecture being linked (armv7)

Also i get the error

  "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
  objc-class-ref-to-ALAssetsLibrary in PhotoPuller.o
  ld: symbol(s) not found
  collect2: ld returned 1 exit status

There is no error while running in simulator , but there im not getting any images returned to me

I have ran out of ideas about what to do

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

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

发布评论

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

评论(2

梦断已成空 2024-11-03 08:15:46

您尚未链接到 AssetsLibrary 框架,或者您的 SDK 设置不是您想象的那样。

You haven't linked to the AssetsLibrary framework or your SDK setting isn't what you think it is.

爱的故事 2024-11-03 08:15:46

请将这两个框架添加到您的项目中

<AssetsLibrary/AssetsLibrary.h>
 <AVFoundation/AVFoundation.h>

please add the these two frame worksin to your project

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