将图像和视频上传到亚马逊 S3(arm64 错误)

uplaod image and video to amazon S3 (arm64 error)

我的代码用于上传视频和照片,它运行良好,但是当我将 arm64 置于有效架构时,它显示以下错误

ld: warning: ignoring file /Users/clicktraders/Desktop/On Going Projects/VideoUploading/AWSRuntime.framework/AWSRuntime, missing required architecture x86_64 in file /Users/clicktraders/Desktop/On Going Projects/VideoUploading/AWSRuntime.framework/AWSRuntime (3 slices)
ld: warning: ignoring file /Users/clicktraders/Desktop/On Going Projects/VideoUploading/AWSS3.framework/AWSS3, missing required architecture x86_64 in file /Users/clicktraders/Desktop/On Going Projects/VideoUploading/AWSS3.framework/AWSS3 (3 slices)
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_AmazonS3Client", referenced from:
      objc-class-ref in CLUploadService.o
      objc-class-ref in SyncViewController.o
      objc-class-ref in FirstViewController.o
  "_OBJC_CLASS_$_S3CannedACL", referenced from:
      objc-class-ref in CLUploadService.o
  "_OBJC_CLASS_$_S3PutObjectRequest", referenced from:
      objc-class-ref in CLUploadService.o
  "_OBJC_CLASS_$_S3TransferManager", referenced from:
      objc-class-ref in SyncViewController.o
      objc-class-ref in FirstViewController.o
  "_OBJC_EHTYPE_$_AmazonClientException", referenced from:
      GCC_except_table1 in CLUploadService.o
  "_OBJC_EHTYPE_$_AmazonServiceException", referenced from:

请指导我这有什么问题。 @z3r0

您所有的链接框架都必须有 64-bit 支持。您的 AWS 框架版本旧。你至少应该有 AWS SDK for iOS 1.7.0。这是第一个支持 64 位的版本。否则,您的应用将不会被 AppStore 接受。您可以从以下位置获取它们:

https://aws.amazon.com/releasenotes/iOS

基于评论:

如果您使用的是预构建 libXYZ.a,您的静态库不是针对 64 位编译的。你需要一个更新的版本。如果有源码,可以重新编译支持64位系统