问题1:授权注册和开放注册的区别?
注册模式分为两种,
1、开放注册:直接注册,不需要任何验证,设置后客户端sdk可以调用注册方法。
2、授权注册:通过后台调用REST API注册,需要有token,客户端sdk注册会返回405错误。
授权注册安全性高,可以防止他人恶意注册,正式项目中应该使用该方式注册。
问题2:按照官方视频,创建的pch文件导入头文件失败?
正确的姿势:
#ifndef EaseTest_pch
#define EaseTest_pch
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
#endif /* EaseTest_pch */
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <Hyphenate/Hyphenate.h>
#import "EaseUI.h"
#endif
问题3:
报错dyld: Library not loaded: @rpath/Hyphenate.framework/Hyphenate
Referenced from: /Users/yasuharuhare/Library/Developer/CoreSimulator/Devices/3ED27069-ACBF-4944-83B0-78593BDE8780/data/Containers/Bundle/Application/57EA9572-3351-439B-9C4D-9074E9DE36B2/EaseIM.app/EaseIM
Reason: image not found
通过设置embedded Binaries