Skip to content

[bug] CLANG_ENABLE_MODULES = YES -- creates broken metadata #96

@NathanaelA

Description

@NathanaelA

Environment

  • Using XCode 12.x
  • NS 7.x

Issue

Metadata generation seems to be faulty if the CLANG_ENABLE_MODULES = YES

Steps (flavor doesn't matter):

  • tns create test --js
  • cd App_Resouces/ios
  • edit build.xcconfig
    • Add CLANG_ENABLE_MODULES = YES
    • Save
  • cd ../..
  • ns build ios --for-device

The resulting metadata

Result: 19159 declarations from 40 top level modules Size of Metadata file (platforms/ios/build/Debug-iphoneos/) is ~1.3m 

Normal application without CLANG_ENABLE_MODULES reports:

Result: 45930 declarations from 155 top level modules Size of Metadata file is ~6.4m 

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions