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

fix: include of non-modular header inside framework module #282

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

kushCT
Copy link
Contributor

@kushCT kushCT commented Dec 27, 2024

issue: #281

Description
Non-modular header files were being included incorrectly. Imports has been fixed

Happens in Xcode 16

@kushCT kushCT requested a review from akashvercetti December 27, 2024 22:15
@@ -1,6 +1,6 @@

#import <Foundation/Foundation.h>
#import "CTTemplatePresenter.h"
#import <CleverTapSDK/CTTemplatePresenter.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kushCT Not sure but would it help to have a safer check via:

#if __has_include(<CleverTapSDK/CTTemplatePresenter.h>)
#import <CleverTapSDK/CTTemplatePresenter.h>
#else
#import "CTTemplatePresenter.h"
#endif

Or something similar

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

Successfully merging this pull request may close these issues.

3 participants