-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Not able to export MyLibrary-Swift.h header from apple_library() #943
Comments
This issue will be solved within a week, don't worry :) |
Sorry for the delay, I had a working version for framework, which probably can fix problem for |
@nguyentruongtho update on this? |
We had a big internal project to be taken care of recently but this one is our high priority now and I'm heavily working on this. I think what you want is to be able to import a mixed target (contains objc and swift), we want the same thing but our method is different. We are not gonna use exported headers with generated swift header (likes above), we will generate module from the target and use the generated module instead. Currently blocked by this pR #983, as soon as it lands, I will put something up for the above idea. |
@nguyentruongtho yup trying to do something similar. Currently writing some unit tests in Swift for an ObjC library to make interop changes blocking. We have a bridging header in our unit test suite but looks like its not picking it up when building. |
This is part of the ongoing work for creating module from a target, but I guess it can solve your problem already: https://github.com/nguyentruongtho/buck/tree/tho/swift_exported_header You can find very dummy poc sample here: https://github.com/nguyentruongtho/buck_swift_test/tree/master/swift_export_headers Run: Let me know if you find any edge cases. |
As I pointed out here: #1153 (comment), We won't allow to export We should use If you all are agree, plz close this ticket. @ryu2 |
@nguyentruongtho, could you please let me know what is the latest status on that? I'd love if you could ping me on Messenger: http://m.me/gontovnik Thanks! |
Sorry we haven't update this issue for almost 3 years. At this point, we are closing this because it is quite out of date and it is not clear if the issue still exists. Please create a new one if you still see the problem. Thank you. |
I have a library that has Swift and Objective-C code. Some Swift classes I want to export to Objective-C, I see that buck correctly generates
MyLibrary-Swift.h
for all classes marked as@objc
, however I don't see a way export this header from my library, so that I can used it in my dependencies. Is this possible?@nguyentruongtho
The text was updated successfully, but these errors were encountered: