skip to Main Content

I created a framework writting on pure swift ,
but I cant find any .h file of public class . shouldn’t Xcode generate .h file automaticly?

here is project structure

- ProjectName  
  -- ProjectName.h  
  -- publicClass.swift

the final projectname.framework does not contails the publicClass.h ,neither any "publicClass" string

Xcode Version 13.1 (13A1030d)

I searched the internet but got little about this problem

2

Answers


  1. Swift doesn’t use header files, you only get .swift files. If you want header file you have to use Objective-C.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search