IOS ring-Letter integration issues (even documents are not described in the pits: )

Source: Internet
Author: User
Tags live chat

First of all, about the download of the Ring Letter SDK and the addition of some dependent libraries, I do not do a detailed introduction, (HTTP://WWW.EASEMOB.COM/DOWNLOAD/IM) attached to the official website of the ring letter, you can look at the above can be downloaded, there are related configuration introduction.

Today mainly say, ring letter integration encountered a variety of pits, a variety of problems, and some even documents are not described in the pit. (mainly to explain the full integration of the ring, the UI of the chat interface, the single-chat feature is also the case of the ring letter)

You may just download it on the official website chatdemo-ui3.0 This version, you will find HYPHENATEFULLSDK and official documents there is a different place, a file is missing (LIBHYPHENATESDK.A)

And you can also see that the document above also shows the import of this dependent library, here you do not have to control, continue to do, because you will find that there is no. a file. Next is all the work done, you think you want to witness the time of the miracle, (I mainly say that after the introduction of the SDK is not wrong, if there is a problem, the document has a description, Baidu also has, I am here to say that the document does not explain the reason). Then you will be eager to run the whole project, but you will notice an error:

Dyld:library not loaded: @rpath/hyphenate.framework/hyphenate
Referenced from:/users/liangyi/library/developer/coresimulator/devices/f3f0cb24-f891-489d-b71f-1aa6da17832c/ Data/containers/bundle/application/8d4d4f2e-a19f-4590-be80-41403c735448/emdemo.app/emdemo
Reason:image not found

You see the last sentence feeling is missing a picture, this time you will be confused, why import ring letter will appear less a picture?! You all kinds of Baidu, estimated also can not find the problem of the location

Your search results should be the same way, and you open after basically full of English, you are a face confused force, you may also find that some people say that relying on the status of the library back to change the state can solve the problem, the required changed to optional, You may put the hyphenate.framework back status to give, and then you run to find the right, the heart of all kinds of excitement, but the problem comes again, you will find that can not send the message, and then you all sorts of Baidu, all kinds of questions, but also feel and the document said the same do out, but just can't send messages, may not find the problem , and finally you will find Easemessageviewcontroller in this file _conversation = [[Emclient sharedclient].chatmanager getconversation: Conversationchatter Type:conversationtype Createifnotexist:yes]; This method of _conversation=nil, is always nil, so certainly can't live chat, This is the method of creating the Session object, this is empty, also play an egg.

The final word is the solution, if you are careful you will find that your project and the demo project has a different place

You'll see the demo there's a number of hyphenate.framework, yes, it's also going to add a hyphenate.framework (that's not even the documentation), and you can't find the reason, and if you've changed the status of the dependent library, don't forget to change it back, as long as it's empty. White Place to join hyphenate.framework this dependent library, the entire ring letter chat function is complete.

(Newcomers, in this is only my development encountered problems, take to share with the big God, if there is no detailed place, you can leave a message to say, learn from each other, thank you)

IOS ring-Letter integration issues (even documents are not described in the pits: )

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.