下载的官方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