問題1:授權(quán)注冊和開放注冊的區(qū)別?
注冊模式分為兩種,
1、開放注冊:直接注冊,不需要任何驗證,設(shè)置后客戶端sdk可以調(diào)用注冊方法。
2、授權(quán)注冊:通過后臺調(diào)用REST API注冊,需要有token,客戶端sdk注冊會返回405錯誤。
授權(quán)注冊安全性高,可以防止他人惡意注冊,正式項目中應(yīng)該使用該方式注冊。
問題2:按照官方視頻,創(chuàng)建的pch文件導(dǎo)入頭文件失敗?
正確的姿勢:
#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
通過設(shè)置embedded Binaries
屏幕快照 2017-08-30 上午8.32.18.png