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

IOS - ZDCChat/ZDCChat.h not found #21

Closed
carlocarpio opened this issue Sep 26, 2017 · 17 comments
Closed

IOS - ZDCChat/ZDCChat.h not found #21

carlocarpio opened this issue Sep 26, 2017 · 17 comments

Comments

@carlocarpio
Copy link

I added ZDCChat via pod install but inside the RNZendeskChatModule.m
it cannot find the ZDCChat/ZDCChat.h. Anyone also have this issue or encountered
this before? thank you very much.

@yasicmd
Copy link
Contributor

yasicmd commented Oct 4, 2017

@carlocarpio any solution found?

@aduycuong
Copy link

Try:
Libraries/RNZendeskChat.xcodeproj > Build Settings > Framework Search Paths
Add: "${SRCROOT}/../../../ios/Pods/ZDCChat" (recursive)

@shopfue
Copy link

shopfue commented Nov 2, 2017

still having this issue and my Libraries/RNZendeskChat.xcodeproj does not have a Framework Search Paths

@arcollector
Copy link

have same issue

@MattyK14
Copy link

MattyK14 commented Jan 12, 2018

My project has #import <ZDCChat/ZDCChat.h> and sees no issues, but this library RNZendeskChat cannot see the sdk for some reason. I've added the Framework Search Paths to reference the ZDCChat in RNZendeskChat which matches that of my project, but no luck.

@nyur321
Copy link

nyur321 commented Jan 17, 2018

@aduycuong Thanks worked for me

@Frexuz
Copy link

Frexuz commented Jan 19, 2018

Ye, worked for me too.. Please commit

@Frexuz
Copy link

Frexuz commented Jan 27, 2018

Do we really have to fork for 1 small change?
I have to add ${SRCROOT}/../../../ios/Pods/ZDCChat every time I run yarn/rn link

@Frexuz
Copy link

Frexuz commented Feb 2, 2018

My fork with the fix if anyone's interested: https://github.com/Frexuz/react-native-zendesk-chat
Created a PR here too :)

@nyur321
Copy link

nyur321 commented Feb 5, 2018

@Frexuz waiting for merge

@mjmaix
Copy link

mjmaix commented Feb 19, 2018

please merge

@arcollector
Copy link

arcollector commented Feb 19, 2018

you dont need to add ${SRCROOT}/../../../ios/Pods/ZDCChat to make this library get working

you need to "link" the files RNZendeskChatModule.h and RNZendeskChatModule.m into your root project, this will create a reference to theses files.

  1. inside xcode, right click on your project folder, and select the option "Add files to (YourProjectName)..."
  2. search the named files at node_modules/react-native-zendesk-chat/ios folder
  3. done

also you need the ZDCChat pod library, create a Podfile inside ios folder, with this information:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'

target 'WriteHereNameOfYourProject' do
  pod 'ZDCChat'
end

save the file as Podfile, and run the comand: $ pod install

now add

$(SRCROOT)/../node_modules/react-native-zendesk-chat/ios
${SRCROOT}/Pods/ZDCChat

both as recursive, in Build settings -> Header search paths, inside xcode, make sure that the top level project is selected, and also correct target is selected, otherwise you wont see the Build settings tab

now in your AppDelegate.m, add this line

@import ZDCChat;

and you are done

@Frexuz
Copy link

Frexuz commented Feb 20, 2018

@arcollector but with this PR you don't need those extra steps :)

@arcollector
Copy link

extra steps? gimme a break, go back to college

@elirangoshen
Copy link

i still have this issue although i used the library search path

sdenaci pushed a commit to sdenaci/react-native-zendesk-chat that referenced this issue Mar 11, 2019
nmantulenko added a commit to nmantulenko/react-native-zendesk-chat that referenced this issue May 12, 2019
@Rushi271193
Copy link

Rushi271193 commented Jan 10, 2020

Hey I have tried adding the framework paths and yet I get this error. Tried making changes in project.pbxproj of my RNZendesk library yet i get the same error. Any other thing that i need to add? Also tried @import ZDCChat

@fbartho fbartho added this to the 0.3.0: RN 0.62 Support milestone Jan 30, 2020
@fbartho
Copy link
Contributor

fbartho commented Jan 30, 2020

Hiya, I know this original request was from years ago, so you probably/hopefully got past this issue before now.

We are updating this package this month with updates for cocoapods, and support for react-native 0.60+ if you have any fixes you want to contribute back, please let us know.

Next release milestone: https://github.com/taskrabbit/react-native-zendesk-chat/milestone/1

I’m going to close this ticket for now, and @Rushi271193 (or others) if you’re still struggling with this, let’s file a new github issue to directly investigate your specific case.

As you may know, we aren’t supported by Zendesk, so you may also have to/want to reach out to your representative there at https://developer.zendesk.com

@fbartho fbartho closed this as completed Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests