Static link with ios_application in the rules_apple
Closed this issue · 3 comments
@sergeykhliustin Have you tested integrating with ios_application
in the rules_apple
? I am getting an ObjcLink issue when trying to integrate an Objective-C apple_framework
with a Swift application using rules_apple
I got the reason Swift doesn't support static link library here https://stackoverflow.com/questions/41210249/why-do-we-use-use-frameworks-in-cocoapods. So we must use the dynamic link (similar to use_framework!
in the Cocoapods.
The reason seems more complex since I am deep into this blog. The modern Swift supports static links if we have the modular headers https://blog.cocoapods.org/CocoaPods-1.5.0/
I will re-open this issue and also continue to investigate this. If anyone is more savvy about please discuss it.
- I downgrade Bazel 7 to the bazel 6.
- Use
ios_application
fromrules_ios
instead ofrule_apple
It seems everything works well now 🙏