Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Renaming umbrella header

Tags:

xcode

macos

ios

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".

The problem is that the umbrella header has to be called "SecureData.h" and I can't figure out how to specify a different name for the umbrella header in xcode settings. Is this possible, or do I just need to come up with a different name?

like image 356
kgreenek Avatar asked Aug 22 '15 06:08

kgreenek


1 Answers

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.

like image 87
Startry Avatar answered Oct 16 '22 05:10

Startry