Xcode not automatically creating bridging header?

2020-01-24 05:28发布

I imported an Obj-C file into my swift project and Xcode automatically prompted me to create a bridging header file as expected. However, I deleted both the files (moved to trash) to make some changes, but when i try to import the Obj-C file once again, the prompt doesn't come up anymore. What is the reason? I even tested this same scenario in another project, It seems once I delete Xcode's auto created bridging header, It won't bring the prompt up again another time. Why is this?

7条回答
我只想做你的唯一
2楼-- · 2020-01-24 06:00
  1. open xcode project
  2. File -> new -> File -> if you want .swift file then click on Swift File .h file click on Header File .m file objective c file etc
查看更多
登录 后发表回答