techaffinity / freshchat-phonegap

Freshchat sdk for phonegap
7 stars 36 forks source link

Unable to export ios app because of freshchat #28

Closed santosh-vishwakarma closed 5 years ago

santosh-vishwakarma commented 5 years ago

This error I am getting when exporting the ionic app I have used fresh chat which working fine in android but not able to export ios

-c /Volumes/Data/palStuAppFreshbot/platforms/ios/PAL/Plugins/cordova-plugin-freshchat/FreshchatiOSPlugin/FreshchatPlugin.m -o /var/root/Library/Developer/Xcode/DerivedData/PAL-dlyudxdqxlqfvrcwclcqbvfgtrrv/Build/Intermediates/PAL.build/Debug-iphonesimulator/PAL.build/Objects-normal/x86_64/FreshchatPlugin.o In file included from /Volumes/Data/palStuAppFreshbot/platforms/ios/PAL/Plugins/cordova-plugin-freshchat/FreshchatiOSPlugin/FreshchatPlugin.m:10: /Volumes/Data/palStuAppFreshbot/platforms/ios/PAL/Plugins/cordova-plugin-freshchat/FreshchatiOSPlugin/FreshchatPlugin.h:9:9: fatal error: 'FreshchatSDK/FreshchatSDK.m' file not found

import "FreshchatSDK/FreshchatSDK.m"

    ^

1 error generated.

BUILD FAILED

The following build commands failed: CompileC /var/root/Library/Developer/Xcode/DerivedData/PAL-dlyudxdqxlqfvrcwclcqbvfgtrrv/Build/Intermediates/PAL.build/Debug-iphonesimulator/PAL.build/Objects-normal/x86_64/FreshchatPlugin.o PAL/Plugins/cordova-plugin-freshchat/FreshchatiOSPlugin/FreshchatPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

Freshchat team, please let me know what I am doing wrong

sianghung commented 5 years ago

I am having the same issue, then I realised the FreshchatSDK folder was not copied over when we add the IOS platform, manually copying the folder over to the plugin folder introduce other errors.

Is still anyone maintaining this project???

techaffinity commented 5 years ago

We are looking into this and will keep you updated.

techaffinity commented 5 years ago

New update is available.Please install this plugin through the command line only and let us know if you still face this issue

sianghung commented 5 years ago

Latest version solved this issue, however, I am getting a blank screen with infinite loading when I call the showConversations(). freshchat_ios

techaffinity commented 5 years ago

New update is available for static SDK files and let us know if you still face this issue

sianghung commented 5 years ago

Hi,

I can confirm it is working now with Ionic 3 on IOS. Thanks for the quick update.

sianghung commented 5 years ago

the issue comes back after I reinstall the plugin again