Skip to content

Use of '@import' when C++ modules are disabled #6

Closed
@torodavit

Description

@torodavit
  • MobileMessaging SDK version: 2.8.1
  • Xcode version: 8.3.3
  • Your application language: Objective-C
  • Cocoapods version: 1.3.1
  • How do you integrate MobileMessaging SDK with your code?: "App delegate composition"?

I have old project on Objective c++.
I have this error message when type '@import', file is c++ file .mm what can i do?

AppDelegate.mm: Use of '@import' when C++ modules are disabled, consider using fmodules and fcxx-modules

Activity

stanislavin

stanislavin commented on Sep 7, 2017

@stanislavin
Member

Hi @torodavit, sorry for delayed response.

Can you please try adding -fcxx-modules to C++ compiler flags for Debug/Release and let me know if it fixes your issue.

Screenshot

torodavit

torodavit commented on Sep 11, 2017

@torodavit
Author

Thanks, it's work.

UmeshChaudhari6057

UmeshChaudhari6057 commented on Oct 21, 2021

@UmeshChaudhari6057

Thanks its work

lucasoliveiraw00

lucasoliveiraw00 commented on Oct 10, 2022

@lucasoliveiraw00

Hi, I have the same problem, do you have any recommendations?

  • MobileMessaging SDK version: 9.2.16
  • Xcode version: 14.0.1
  • Your application language: Objective-C++
  • Cocoapods version: 1.11.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @torodavit@stanislavin@lucasoliveiraw00@UmeshChaudhari6057

        Issue actions

          Use of '@import' when C++ modules are disabled · Issue #6 · infobip/mobile-messaging-sdk-ios