Skip to content

Compilation fails in iOS project using SPM due to incorrect import of CleverTap.h file #38

@leandromuuvlabs

Description

@leandromuuvlabs

Describe the bug
SEGCleverTapIntegration.m has a conditional statement that fails after loading the package in a Swift project using SPM.

#elif SWIFT_PACKAGE 
#import "CleverTap.h" // --> this file is not found

To Reproduce

  1. Open the SPM example project
  2. Compile
  3. See the compilation error CleverTap.h not found

Possible Solution
I've forked the project, changed the project settings so I can edit the file and compile the SPM example locally, then removed that line, and pushed the fix to my fork, and the compilation error is gone.

Additional context
iOS 16+

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions