在theos makefile中找不到架构arm64的AWSCore

时间:2017-06-28 09:15:22

标签: ios makefile theos

因此,我下载了最新的AWS iOS SDK源代码,并将AWSS3和AWSCore更改为静态库格式,并使用最新的Xcode 8构建它以获取框架;

然后我将它放在我的项目文件夹AWS /

并在下面添加makefile代码:

MyWorker_LDFLAGS += AWS/AWSCore.framework/AWSCore AWS/AWSS3.framework/libAWSS3

然后它报告:

ld: framework not found AWSCore for architecture arm64

我仔细检查了框架,它有arm64:

xuan:AWSCore.framework xuan$ lipo -detailed_info AWSCore 
Fat header in: AWSCore
fat_magic 0xcafebabe
nfat_arch 2
architecture armv7
    cputype CPU_TYPE_ARM
    cpusubtype CPU_SUBTYPE_ARM_V7
    offset 48
    size 9208616
    align 2^2 (4)
architecture arm64
    cputype CPU_TYPE_ARM64
    cpusubtype CPU_SUBTYPE_ARM64_ALL
    offset 9208664
    size 9764784
    align 2^3 (8)

然后,我尝试将AWSCore移到AWS/lib/libAWSCore.aAWSS3也是如此,并将makefile更改为:

MyWorker_LDFLAGS = -L./AWS/lib -lsqlite3 -lz -lAWSCore -lAWSS3

它仍然报道:

ld: framework not found AWSCore for architecture arm64

我试图只建立arm64拱门,但它没有帮助。有人可以帮忙吗?谢谢!

1 个答案:

答案 0 :(得分:1)

我建议您在项目根目录中创建一个名为frameworks的新文件夹,并将AWS SDK放在那里。

然后你可以这样做:

MyWorker_LDFLAGS = -F./frameworks MyWorker_FRAMEWORKS = AWSCore AWSS3