Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master branch pod install #50

Closed
danielmogilny opened this issue May 9, 2017 · 2 comments
Closed

Master branch pod install #50

danielmogilny opened this issue May 9, 2017 · 2 comments

Comments

@danielmogilny
Copy link

Hi,

Following the readme tutorial in the master branch yields an error that ChatSDK is not found. There isn't a podspec in master for ChatSDK too so I ended up having to use the master_no_framework branch for installation.

@simonsmiley64
Copy link
Contributor

Hi @danielmogilny,

We are currently in the process of updating our tutorials, I have just made modifications to the "adding Chat SDK to your project" tutorial

I will give you a brief overview here.

  1. The Chat SDK is changing slightly as we make improvements, the basic structure stays the same although the folders might change slightly, this means although a video might not be identical to what your are reading it still have the same idea.
  2. Download and add the Chat SDK to your project as normal - I have updated the tutorial. I would recommend just changing the folder name to ChatSDK and adding the entire project
  3. Now you need to create a direct link from your project podfile to the podspecs. They are contained in the ChatSDK folder and then in each of the ChatSDKCore, ChatSDKCoreData etc. See below image:

screen shot 2017-05-09 at 15 53 30

  1. Remember to use ../ to go out of a folder and the folder name to go into one.

  2. For example check out the example project below:

screen shot 2017-05-09 at 15 54 45

We want to do the following:

  • Go out of our project folder: ../
  • Go into our ChatSDK folder: ChatSDK/
  • Go into the next ChatSDK folder: ChatSDK/
  • Go into the appropriate module folder: ChatSDKCore/
  • We have now found our podspec

This means the podfile should look like this:

  pod "ChatSDKCore", :path => "../ChatSDK/ChatSDK/ChatSDKCore"
  pod "ChatSDKUI", :path => "../ChatSDK/ChatSDK/ChatSDKUI"
  pod "ChatSDKCoreData", :path => "../ChatSDK/ChatSDK/ChatSDKCoreData"
  pod "ChatSDKFirebaseAdapter", :path => "../ChatSDK/ChatSDK/ChatSDKFirebaseAdapter"

You can see the path is showing the podfile the correct directions to the podspec.

I will be putting together a video to show this but hopefully this should give you a better idea.

We recommend using the master version of the code even if it takes a bit more time to get your head round.

Let me know if you have any further questions/issues and I'll do my best to help you out,

Simon

@simonsmiley64
Copy link
Contributor

I have also written a tutorial for solving this issue here

This should solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants