s***@163.com
s***@163.com
  • 发布:2019-02-11 09:43
  • 更新:2019-02-11 12:49
  • 阅读:803

IOS平台流应用引擎SDK 运行报错

分类:流应用

下载的官方demo和自己集成

运行模拟器报错见以下:
Undefined symbols for architecture x86_64:
"_OBJCCLASS$_CNContactStore", referenced from:
objc-class-ref in iflyMSC(IFlyContact.o)
"_OBJCCLASS$_CNContactFetchRequest", referenced from:
objc-class-ref in iflyMSC(IFlyContact.o)
"_CNContactGivenNameKey", referenced from:
-[IFlyContact fetchContactWithContactStore:] in iflyMSC(IFlyContact.o)
"_CNContactFamilyNameKey", referenced from:
-[IFlyContact fetchContactWithContactStore:] in iflyMSC(IFlyContact.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

真机报错见以下:
ld: warning: arm64 function not 4-byte aligned: _ffi_call_SYSV from /Users/suidehang/Documents/work/code/uniAPP iOS/StreamSDK-3/SDK/Libs/libStreamSDK.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_closure_SYSV from /Users/suidehang/Documents/work/code/uniAPP iOS/StreamSDK-3/SDK/Libs/libStreamSDK.a(sysv_arm64.o)
Undefined symbols for architecture arm64:
"_OBJCCLASS$_CNContactStore", referenced from:
objc-class-ref in iflyMSC(IFlyContact.o)
"_OBJCCLASS$_CNContactFetchRequest", referenced from:
objc-class-ref in iflyMSC(IFlyContact.o)
"_CNContactGivenNameKey", referenced from:
-[IFlyContact fetchContactWithContactStore:] in iflyMSC(IFlyContact.o)
"_CNContactFamilyNameKey", referenced from:
-[IFlyContact fetchContactWithContactStore:] in iflyMSC(IFlyContact.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

重现步骤
官方demo用xcode 10.1 运行模拟器或真机

IDE运行环境说明
[mac版本号] 10.13.6

联系方式
QQ: 149378327

2019-02-11 09:43 负责人:无 分享
已邀请:
DCloud_IOS_XTY

DCloud_IOS_XTY

需要添加Contacts.framework

s***@163.com

s***@163.com (作者) - 无码胜有码

收到,已解决。

该问题目前已经被锁定, 无法添加新回复