使用GooglePlus.framework处理iOS应用。当我构建应用程序时,它会崩溃并显示以下日志
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_AWSSignInManager", referenced from:
objc-class-ref in AWSFacebookSignIn(AWSFacebookSignInProvider.o)
"_OBJC_CLASS_$_CLLocationManager", referenced from:
objc-class-ref in GooglePlus(UIDevice+GPPAdditions.o)
"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
objc-class-ref in GooglePlus(NSData+GPPAdditions.o)
我做的是,我只是在其他链接器标志设置中添加-ObjC来解决上述崩溃问题。但它会引发一些链接器错误,如下所示,
from django.core.paginator import Paginator
import itertools
page_size1 = 2
page_size2 = 8
queryset_obj1 = Food.objects.filter(is_fat_food=True)
queryset_obj2 = Food.objects.filter(is_fat_food=False)
data1 = Paginator(queryset_obj1, page_size).page(page_number).object_list
data2 = Paginator(queryset_obj2, page_size).page(page_number).object_list
merged = list(itertool.chain(data1, data2)) # merged is a list containing Food objects.
有没有办法修复此链接器错误 ,因为-ObjC对于Google +身份验证 至关重要。任何人都可以帮我解决这个问题。另外,如果有任何可能性或程序可以使其工作 (Google Plus)而不使用-ObjC选项 ,请与我们联系。
答案 0 :(得分:1)
在"链接的框架和库中添加缺少的框架" XCode中的部分。