Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
236 views
in Technique[技术] by (71.8m points)

ios - how to import Swift pod in objective C sources

this ought to be a simple matter and yet I'm hitting a wall here. I'm not well-versed in the ios ecosystem. Commit that describes the issue is here.

I have

  • an xcodeworkspace - my project
  • a swift (or obj-c, doesn't matter) library that I want to write here and share with others, and they should be able to consume it via a podspec file, in an objective-C project (example)
  • a swift pod that I want to use in my library (this swift pod depends on obj-c pods)

How can I use the functions provided by swift pod in my obj-c code?

A reproducible example project with instructions can be found here

I cannot use use_frameworks!

Thank you!

question from:https://stackoverflow.com/questions/66067039/how-to-import-swift-pod-in-objective-c-sources

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...