使用 alassestsLibrary 时出错
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您尚未链接到 AssetsLibrary 框架,或者您的 SDK 设置不是您想象的那样。
You haven't linked to the AssetsLibrary framework or your SDK setting isn't what you think it is.
请将这两个框架添加到您的项目中
please add the these two frame worksin to your project