# Facing issue while using Module Map to expose objective c header files in swift

**URL:** <https://forums.swift.org/t/facing-issue-while-using-module-map-to-expose-objective-c-header-files-in-swift/68598>\
**Category:** Using Swift\
**Tags:** framework\
**Created:** [November 23, 2023, 6:42am UTC](https://forums.swift.org/t/facing-issue-while-using-module-map-to-expose-objective-c-header-files-in-swift/68598 "2023-11-23T06:42:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shikharani](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@Shikharani](https://forums.swift.org/u/Shikharani)\
**Post date:** [November 23, 2023, 6:42am UTC](https://forums.swift.org/t/facing-issue-while-using-module-map-to-expose-objective-c-header-files-in-swift/68598/1 "2023-11-23T06:42:27Z")

</div>

Hi All,

I am working on iOS SDK, In my project I have both objective c and swift files. So for this I have created a framework, in this I have used module map to expose objective C header files to Swift by importing that module map to swift files.

POC

module MyModuleMap{  
header “Calculate.h”  
export \*  
}

//importing modulemap in swift

import MyModuleMap  
@objcMembers  
Public class Simplify : NSObject {  
Public var cal : Calculate?  
Public var name : String?  
}

Now, what is happening In my actual project in Objective-C generated interface header (just for ex :MyProject-swift.h) this module map got imported (@import MyProjectModuleMap;) like this and error is coming "module ‘MyModuleMap’ not found," but in my POC this issue is not coming and also in Objective-C generated interface header(ex: MyPOC-swift.h) module map(@import MyModuleMap)is not imported.

So, I am not able to figure out why this is happening in my actual project and not in my POC.  
Please guide me if anyone have any idea regarding this issue, how I can get rid off this error.

Thanks
