Skip to content

Build Errors on macOS due to non-modular header Includes on ios-no-type-b branch #90

@ablause

Description

@ablause

When building a Flutter project on a macOS device for an iphone device, the following build errors are encountered:

Could not build the precompiled application for the device.
Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'another_brother.BrotherManager': '/Users/username/Projects/your-flutter-app/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterKit.h'
/Users/username/.pub-cache/git/another_brother-4df113188004959c3dacba35a990ba3a6c989887/ios/Classes/BrotherManager.h:11:8
BrotherManager.h:11

Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'another_brother.BrotherUtils': '/Users/username/Projects/your-flutter-app/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterKit.h'
/Users/username/.pub-cache/git/another_brother-4df113188004959c3dacba35a990ba3a6c989887/ios/Classes/Method/BrotherUtils.h:11:8
BrotherUtils.h:11

Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'another_brother.BrotherUtils': '/Users/username/Projects/your-flutter-app/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRLMPrinterDefine.h'
/Users/username/.pub-cache/git/another_brother-4df113188004959c3dacba35a990ba3a6c989887/ios/Classes/Method/BrotherUtils.h:12:8
BrotherUtils.h:12

Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'another_brother.BrotherUtils': '/Users/username/Projects/your-flutter-app/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchPrinterKit.h'
/Users/username/.pub-cache/git/another_brother-4df113188004959c3dacba35a990ba3a6c989887/ios/Classes/Method/BrotherUtils.h:13:8
BrotherUtils.h:13

Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'another_brother.GetBluetoothPrintersMethodCall': '/Users/username/Projects/your-flutter-app/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchPrinterKit.h'
/Users/username/.pub-cache/git/another_brother-4df113188004959c3dacba35a990ba3a6c989887/ios/Classes/Method/GetBluetoothPrintersMethodCall.h:11:8
GetBluetoothPrintersMethodCall.h:11

Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'another_brother.GetNetPrintersMethodCall': '/Users/username/Projects/your-flutter-app/ios/Pods/BRLMPrinterKit/BRLMPrinterKit/BRLMPrinterKit.framework/Headers/BRPtouchPrinterKit.h'
/Users/username/.pub-cache/git/another_brother-4df113188004959c3dacba35a990ba3a6c989887/ios/Classes/Method/GetNetPrintersMethodCall.h:11:8
GetNetPrintersMethodCall.h:11

Environment:

  • Flutter version: 3.22.0
  • macOS version: 14.0 (m2)
  • Xcode version: 15.4
  • Dart version: 3.4.0

Additional Information:
I tried to run the build with #52, but it doesn't change anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions