ld: entry point (_main) undefined. for architecture arm64

ld: entry point (_main) undefined. for architecture arm64

就这个问题正正浪费了好几天时间啊。。。原来还是自己犯蠢,要哭死了、

首先进入targets-->Build Phases-->Compile Sources看看有没有导入main.m文件




usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_profile.c.o): in function `s_profile_file_credentials_provider_ destroy': credentials_provider_profile.c:(.text+0x35): undefined reference to `aws_profile_collection_release' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_profile.c.o): in function `s_profile_file_credentials_provider_ get_credentials_async': credentials_provider_profile.c:(.text+0x8f): undefined reference to `aws_profile_collection_acquire' /usr/bin/ld: credentials_provider_profile.c:(.text+0xa7): undefined reference to `aws_profile_collection_get_profile' /usr/bin/ld: credentials_provider_profile.c:(.text+0x14c): undefined reference to `aws_profile_collection_release' /usr/bin/ld: credentials_provider_profile.c:(.text+0x24d): undefined reference to `aws_profile_collection_new_from_file' /usr/bin/ld: credentials_provider_profile.c:(.text+0x2b2): undefined reference to `aws_profile_collection_new_from_file' /usr/bin/ld: credentials_provider_profile.c:(.text+0x315): undefined reference to `aws_profile_collection_new_from_merge' /usr/bin/ld: credentials_provider_profile.c:(.text+0x320): undefined reference to `aws_profile_collection_release' /usr/bin/ld: credentials_provider_profile.c:(.text+0x328): undefined reference to `aws_profile_collection_release' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_profile.c.o): in function `s_create_sts_based_provider': credentials_provider_profile.c:(.text+0x49b): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_profile.c:(.text+0x4af): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_profile.c:(.text+0x4c1): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_profile.c:(.text+0x501): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0x517): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0x569): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_profile.c:(.text+0x576): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0x5c9): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0x689): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0x7af): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0x7fd): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0x808): undefined reference to `aws_profile_get_name' /usr/bin/ld: credentials_provider_profile.c:(.text+0x869): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0x888): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0xa2d): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0xa62): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_profile.c:(.text+0xae4): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_profile.c.o):credentials_provider_profile.c:(.text+0xb6b): more undefined references to `aws_profile_property_get_value' follow /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_profile.c.o): in function `s_credentials_provider_new_profile_i nternal': credentials_provider_profile.c:(.text+0xbe0): undefined reference to `aws_get_profile_name' /usr/bin/ld: credentials_provider_profile.c:(.text+0xbfe): undefined reference to `aws_profile_collection_acquire' /usr/bin/ld: credentials_provider_profile.c:(.text+0xc31): undefined reference to `aws_profile_collection_get_profile' /usr/bin/ld: credentials_provider_profile.c:(.text+0xc4c): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_profile.c:(.text+0xc60): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_profile.c:(.text+0xc72): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_profile.c:(.text+0xce5): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_profile.c:(.text+0xd7d): undefined reference to `aws_profile_collection_release' /usr/bin/ld: credentials_provider_profile.c:(.text+0xd87): undefined reference to `aws_profile_collection_release' /usr/bin/ld: credentials_provider_profile.c:(.text+0xd90): undefined reference to `aws_profile_collection_release' /usr/bin/ld: credentials_provider_profile.c:(.text+0xe96): undefined reference to `aws_profile_collection_release' /usr/bin/ld: credentials_provider_profile.c:(.text+0xe9d): undefined reference to `aws_profile_collection_release' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_profile.c.o):credentials_provider_profile.c:(.text+0xea4): more undefined references to `aws_profile_collection_release' follow /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_profile.c.o): in function `s_credentials_provider_new_profile_i nternal': credentials_provider_profile.c:(.text+0xee0): undefined reference to `aws_get_credentials_file_path' /usr/bin/ld: credentials_provider_profile.c:(.text+0xefa): undefined reference to `aws_get_config_file_path' /usr/bin/ld: credentials_provider_profile.c:(.text+0xf18): undefined reference to `aws_profile_collection_new_from_file' /usr/bin/ld: credentials_provider_profile.c:(.text+0xf32): undefined reference to `aws_profile_collection_new_from_file' /usr/bin/ld: credentials_provider_profile.c:(.text+0xf50): undefined reference to `aws_profile_collection_new_from_merge' /usr/bin/ld: credentials_provider_profile.c:(.text+0x1107): undefined reference to `aws_profile_collection_acquire' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_sts.c.o): in function `s_resolve_endpoint': credentials_provider_sts.c:(.text+0x177c): undefined reference to `aws_profile_collection_acquire' /usr/bin/ld: credentials_provider_sts.c:(.text+0x1794): undefined reference to `aws_get_profile_name' /usr/bin/ld: credentials_provider_sts.c:(.text+0x17a7): undefined reference to `aws_profile_collection_get_profile' /usr/bin/ld: credentials_provider_sts.c:(.text+0x17d2): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_sts.c:(.text+0x17e2): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_sts.c:(.text+0x184a): undefined reference to `aws_profile_collection_release' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_sts_web_identity.c.o): in function `s_load_profile': credentials_provider_sts_web_identity.c:(.text+0x16ff): undefined reference to `aws_get_config_file_path' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1717): undefined reference to `aws_profile_collection_new_from_file' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x17b6): undefined reference to `aws_profile_collection_destroy' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_sts_web_identity.c.o): in function `aws_credentials_provider_ne w_sts_web_identity': credentials_provider_sts_web_identity.c:(.text+0x19ae): undefined reference to `aws_profile_collection_acquire' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x19bf): undefined reference to `aws_get_profile_name' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x19d1): undefined reference to `aws_profile_collection_get_profile' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1a18): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1a2d): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1a72): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1a87): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1ad1): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1ae8): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1b2f): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1b44): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x1d44): undefined reference to `aws_profile_collection_release' /usr/bin/ld: credentials_provider_sts_web_identity.c:(.text+0x209f): undefined reference to `aws_profile_collection_release' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_utils.c.o): in function `aws_load_profile_collection_from_config_file': credentials_utils.c:(.text+0x9de): undefined reference to `aws_get_config_file_path' /usr/bin/ld: credentials_utils.c:(.text+0x9fa): undefined reference to `aws_profile_collection_new_from_file' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_utils.c.o): in function `s_get_override_endpoint': credentials_utils.c:(.text+0xc39): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_utils.c:(.text+0xc4a): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_utils.c:(.text+0xc5a): undefined reference to `aws_profile_collection_get_section' /usr/bin/ld: credentials_utils.c:(.text+0xc6f): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_utils.c:(.text+0xc86): undefined reference to `aws_profile_property_get_sub_property' /usr/bin/ld: credentials_utils.c:(.text+0xce2): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_utils.c:(.text+0xcf2): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(aws_profile.c.o): in function `aws_credentials_new_from_profile': aws_profile.c:(.text+0x32): undefined reference to `aws_profile_get_property' /usr/bin/ld: aws_profile.c:(.text+0x42): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: aws_profile.c:(.text+0x54): undefined reference to `aws_profile_get_property' /usr/bin/ld: aws_profile.c:(.text+0x65): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: aws_profile.c:(.text+0x89): undefined reference to `aws_profile_get_property' /usr/bin/ld: aws_profile.c:(.text+0x99): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: aws_profile.c:(.text+0xab): undefined reference to `aws_profile_get_property' /usr/bin/ld: aws_profile.c:(.text+0xbb): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: /home/zwy/gitcode/snapShotServer/lib/lib_aws/libaws-c-auth.a(credentials_provider_process.c.o): in function `aws_credentials_provider_new_process ': credentials_provider_process.c:(.text+0x353): undefined reference to `aws_profile_collection_acquire' /usr/bin/ld: credentials_provider_process.c:(.text+0x369): undefined reference to `aws_get_profile_name' /usr/bin/ld: credentials_provider_process.c:(.text+0x389): undefined reference to `aws_profile_collection_get_profile' /usr/bin/ld: credentials_provider_process.c:(.text+0x3c0): undefined reference to `aws_profile_get_property' /usr/bin/ld: credentials_provider_process.c:(.text+0x3cd): undefined reference to `aws_profile_property_get_value' /usr/bin/ld: credentials_provider_process.c:(.text+0x464): undefined reference to `aws_profile_collection_release' /usr/bin/ld: credentials_provider_process.c:(.text+0x5de): undefined reference to `aws_get_config_file_path' /usr/bin/ld: credentials_provider_process.c:(.text+0x5fa): undefined reference to `aws_profile_collection_new_from_file'
最新发布
06-15
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值