Renaming umbrella header

前端 未结 1 868

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)
提交回复
热议问题