問(wèn)題1:授權(quán)注冊(cè)和開放注冊(cè)的區(qū)別洗显?
注冊(cè)模式分為兩種祸挪,
1锣披、開放注冊(cè):直接注冊(cè),不需要任何驗(yàn)證,設(shè)置后客戶端sdk可以調(diào)用注冊(cè)方法雹仿。
2增热、授權(quán)注冊(cè):通過(guò)后臺(tái)調(diào)用REST API注冊(cè),需要有token胧辽,客戶端sdk注冊(cè)會(huì)返回405錯(cuò)誤峻仇。
授權(quán)注冊(cè)安全性高,可以防止他人惡意注冊(cè)邑商,正式項(xiàng)目中應(yīng)該使用該方式注冊(cè)摄咆。
問(wèn)題2:按照官方視頻,創(chuàng)建的pch文件導(dǎo)入頭文件失斎硕稀吭从?
正確的姿勢(shì):
#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
問(wèn)題3:
報(bào)錯(cuò)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
通過(guò)設(shè)置embedded Binaries
屏幕快照 2017-08-30 上午8.32.18.png