zoho / SalesIQ-Mobilisten-iOS

Your mobile app's ideal live chat partner. Power up your iOS App with the SalesIQ Mobilisten iOS SDK.
https://mobilisten.io
12 stars 4 forks source link

Issue:'Mobilisten/Mobilisten.h' file not found #15

Closed ghost closed 3 years ago

ghost commented 3 years ago

Describe the bug While trying to generate a build in Xcode 12.4, getting the error: 'Mobilisten/Mobilisten.h' file not found

To Reproduce Steps to reproduce the behavior:

  1. Added pod 'Mobilisten', '3.6.4'
  2. pod repo update && pod install
  3. Clean build in Xcode
  4. Generate a build in Xcode
  5. See the error: 'Mobilisten/Mobilisten.h' file not found inside ios/Zohochat.h

Expected behavior The build should be generated for iOS Simulator 14.4 (iPhone 11)

Screenshots

Screenshot 2021-03-18 at 12 42 51 PM

Smartphone

Additional context

Rishabh-Raghunath commented 3 years ago

@bala-kredx Thanks for reaching out. For some additional context, we would like to get more details regarding the following;

  1. Does the project build correctly if it were not for the simulator?
  2. Is Cocoapods updated to the latest release? There have been a few major changes for XCFramework compatibility and we highly recommend reinstalling dependencies after Cocoapods is updated.
  3. Do you have use_frameworks! enabled in the Podfile? Mobilisten requires this setting.

To add, We offer a React-Native plugin which can be installed and used with ease. It is recommended to use the available integration for the same.

ghost commented 3 years ago
  1. Does the project build correctly if it were not for the simulator?
    • Didn't try with real device yet
  2. Is Cocoapods updated to the latest release? There have been a few major changes for XCFramework compatibility and we highly recommend reinstalling dependencies after Cocoapods is updated.
    • Yes, cocoapods (1.10.1)
  3. Do you have use_frameworks! enabled in the Podfile? Mobilisten requires this setting.
    • Yes. using use_frameworks! , which is also enabled in the Podfile

Further details:-

Rishabh-Raghunath commented 3 years ago

Interesting. There would be no need to do a version downgrade. Using the latest version is in-fact recommended. The Mobilisten framework includes the required arm64 architecture for running on the simulator for Apple Silicon-based machines.

To rule out any possible compatibility issues, we ran an example project with Mobilisten on an M1 powered mac using the simulator and we failed to encounter any problems out of the box.

If you are attempting to make a plugin, Mobilisten needs to be added as a dependency for the specific plugin's Podspec without which it would not work. Reference

We suspect that the issue might be specific to the project. We would recommend you try the React Native plugin we offer to perform the integration with ease.

Rishabh-Raghunath commented 3 years ago

@bala-kredx We are unable to confirm this issue since the same could not be reproduced in a similar environment. As mentioned earlier, we suspect that this is caused be due to a misconfiguration in the project/environment or the way the custom plugin is set up.

It would be helpful if you could provide a minimal reproducible example project to help us check further.

Rishabh-Raghunath commented 3 years ago

@bala-kredx We are closing this issue since the same could not be replicated by us and because it has not had recent activity. If you still encounter this issue, please reopen the same by attaching an example project that demonstrates the behavior to help us investigate further. Thank you for your contributions.