從19年的6.1.0
升級(jí)最新版本:9.1.1(iOS SDK (9.1.1)含圈組模塊)
下載地址:http://yunxin.163.com/im-sdk-demo?solutionType=0#solution
配置步驟:https://doc.yunxin.163.com/docs/TM5MzM5Njk/DQ5MTA5ODQ?platformId=60278
請(qǐng)先前往SDK下載頁面獲取當(dāng)前最新版本。
將解壓得到的NIMSDK.framework拷貝到工程項(xiàng)目文件夾下酝碳。
以 Xcode Version 11.5 為例辜昵,進(jìn)入TARGETS > Project Name > General > Frameworks, Libraries, and Embedded Content 菜單常侣,點(diǎn)擊 +刽辙,再點(diǎn)擊 Add Other…勺爱,將NIMSDK.framework添加進(jìn)去促煮。同時(shí)迫吐,將Embed 屬性設(shè)置為 Embed & Sign库菲,以使得SDK動(dòng)態(tài)庫和應(yīng)用簽名保持一致。
至此志膀, SDK 已經(jīng)導(dǎo)入完成熙宇。
由于項(xiàng)目一開始是19年的6.1.0版本 里面用了?音視頻功能,項(xiàng)目本身并沒用音視頻功能
NIMAVChat.framework(已廢棄了吧溉浙,現(xiàn)在官方采用NERtcSDK)
NMCBasicModuleFramework.framework
NMC.framework
這次三個(gè)庫都刪除烫止,
刪除整個(gè)VideoChat文件:
另外還有一些引用的代碼也刪除或者注釋掉:
NIMAVChatSDK
NTESVideoChatViewController
NIMNetCallManagerDelegate
NTESTeamMeetingCallingViewController
NTESTeamMeetingViewController
- (NSInteger)chatroomRetryCount
NTESAudioChatViewController
NTESTeamMeetingCalleeInfo
[NIMAVChatSDK sharedSDK]
- (NSString *)textByCaller:(NSString *)caller type:(NIMNetCallMediaType)type
- (NSInteger)chatroomRetryCount
其中- (NSString?*)description?改成如下:
- (NSString?*)description{
?return?[NSString?stringWithFormat:
?@"\n\n\n"?\
?"enabled_remove_recent_session %d\n"?\
?"local_search_time_order_desc %d\n"?\
?"auto_remove_remote_session %d\n"?\
?"auto_remove_snap_message %d\n"?\
?"add_friend_need_verify %d\n"?\
?"show app %d\n"?\
?"maximum log days %zd\n"?\
?"using amr %d\n"?\
?"ignore_team_types %@ \n"?\
?"server_record_audio %d\n"?\
?"server_record_video %d\n"?\
?"server_record_whiteboard_data %d\n"?\
?"videochat_auto_rotate_remote_video %d \n"?\
?"videochat_start_with_back_camera %zd\n"?\
?"videochat_video_encode_max_kbps %zd\n"?\
?"videochat_local_record_video_kbps %zd\n"?\
?"videochat_auto_disable_audiosession %zd\n"?\
?"videochat_audio_denoise %zd\n"?\
?"videochat_voice_detect %zd\n"?\
?"videochat_prefer_hd_audio %zd\n"\
?"chatroom_retry_count %zd\n"\
?"sync_when_remote_fetch_messages %zd\n"\
?"\n\n\n",
? ? ? ? ? ? ? ? [self?removeSessionWhenDeleteMessages],
? ? ? ? ? ? ? ? [self?localSearchOrderByTimeDesc],
? ? ? ? ? ? ? ? [self?autoRemoveRemoteSession],
? ? ? ? ? ? ? ? [self?autoRemoveSnapMessage],
[self?needVerifyForFriend],
[self?showFps],
[self?maximumLogDays],
[self?usingAmr],
? ? ? ? ? ? ? ? [self?ignoreTeamNotificationTypes],
[self?serverRecordAudio],
[self?serverRecordVideo],
? ? ? ? ? ? ? ? [self?serverRecordWhiteboardData],
? ? ? ? ? ? ? ? [self?videochatAutoRotateRemoteVideo],
[self?startWithBackCamera],
[self?videoMaxEncodeKbps],
[self?localRecordVideoKbps],
? ? ? ? ? ? ? ? [self?autoDeactivateAudioSession],
[self?audioDenoise],
[self?voiceDetect],
[self?preferHDAudio],
[self?chatroomRetryCount],
? ? ? ? ? ? ? ? [self?enableSyncWhenFetchRemoteMessages]
? ? ? ? ? ? ];
}
編譯報(bào)錯(cuò)的代碼也直接注釋掉。
若遇到:
“Building for iOS Simulator, but the linked and embedded framework '***' wa...
參看:http://www.reibang.com/p/c6a68d421644
整體感覺NIMSDK.framework并沒有其他變化: