Renaming umbrella header

前端 未结 1 843

I have a naming conflict with the Umbrella header. My framework name is \"SecureData\", but I want to have an objective-c class in this framework called \"SecureData\".

相关标签:
1条回答
  • 2021-02-19 16:49

    It's Possible.

    You can specify a different name for the umbrella header by Module Map File.

    1. Create new modulemap file for Project.

      framework module XXXProject {
         umbrella header "XXNewumbrellaName.h"
      
         export *
         module * { export * }
      }
      
    2. Specify modulemap file: Build Settings -> Packaging -> Module Map File

    Ok, You expected effect is achieved.

    I hope this will help you.

    0 讨论(0)
提交回复
热议问题