Skip to content

defined(__OBJC__) returning false  #368

@SweatSzemis

Description

@SweatSzemis

Describe the bug
I'm attempting to use the latest Segment Swift Packing in my Objective C project,
I've added it my project using Swift package Manager.

In the Segment-Swift.h file going straight to the unsupported Swift architecture error.
Any guidance would be appreciated.

#if defined(__OBJC__)
OBJECTIVE-C CODE
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#if defined(__cplusplus)
#endif
#pragma clang diagnostic pop
#endif

#else
#error unsupported Swift architecture
#endif

Expected behavior
Able to import Segment successfully

@import Segment;
*Screenshots
Screenshot 2024-10-09 at 4 13 19 pm
*

Platform (please complete the following information):

  • Library Version in use: 1.6.2
  • Platform being tested: [e.g. iOS]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions