[ios] Remove the hardcoded CoreApi-swift.h to allow Xcode generate the Swift bridging header #9594

Merged
root merged 1 commit from ios/fix-core-api-target-swift-bridging into master 2024-11-01 10:22:34 +00:00

1 commit

Author SHA1 Message Date
95b73df427 [ios] remove hardcoded CoreApi-swift.h to allow xcode generate a swift bridge
- The `CoreApi-Swift.h` is a file that should be generated by the xcode to opens the swift classes
to the objc
- Custom hardcoded `CoreApi-swift.h` blocks this feature and contains objc headers. It blocks the autogeneration and don't allow to use the swift and objc classes in the same framework. This is why the file is removed and all the file's content is moved to the 'CoreApi.h'.
- The `Framework.h` can be used only but the objc so it is removed from the 'CoreApi.h' and is imported only when it's necessary
- `Defines Module` is set to NO because it should be set to YES only after the first swift file is added to the framework. In other case the bridging file will not be generated

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-11-01 13:44:07 +04:00