Comments (13)
@mrackwitz / @neonichu could either of you please do this?
from guides.cocoapods.org.
I have to pass, because I am also not sure anymore about the reasons.
from guides.cocoapods.org.
According to @mrackwitz in Slack just now:
[It was] to avoid complexity, because there are situations, where you wouldn't be able to ensure that you can build it in that way, and we don't have the tooling in place to check if e.g. a vendored framework is static or dynamic
from guides.cocoapods.org.
I think we should also explain somewhere in the guides why a pod containing Swift must be compiled as a framework and can't be a static library. The reason being because of ABI compatibility issues, as the runtime is evolving (this can simply be a simple link to this Apple's blog post but it needs to be mentioned somewhere in CP guides anyway IMHO)
from guides.cocoapods.org.
So essentially the rant that originally inspired this issue's filing was correct on the facts. It's not impossible to support both, it's just a question of effort.
I think this isn’t done for a few reasons. One, it’s hard. It’s harder to write a tool that can [mix frameworks/libraries/etc.] then it is to do one.... This is all fair. The thing is, either it’s worth doing it to share code with each other or it’s not.
from guides.cocoapods.org.
Does this mean that you can not use a library like SSKeychain/AFNetworking with a framework like Alamofire on the same project via cocoapods?
from guides.cocoapods.org.
@scionwest no, since those libraries would be built as Frameworks :)
from guides.cocoapods.org.
Hmm, it's weird then why as soon as I add use_frameworks! the SSKeychain & LiveSDK (only two non-frameworks I have) can no longer have their types found. I get an 'identifier not found' compiler error. While AlamoFire works fire due to being a Swift framework. I remove use_frameworks! and AlamoFire can't be found but LiveSDK & SSKeychain can be.
from guides.cocoapods.org.
Probably worth making a stack overflow issue for this. As alamofire is a swift library it has to have use_frameworks
.
from guides.cocoapods.org.
I actually do already have an issue on Stackoverflow for this. http://stackoverflow.com/q/31103831/1815321
from guides.cocoapods.org.
You should be using modular import
statements with frameworks, that will probably solve your issue.
from guides.cocoapods.org.
Yep, only module imports work in the bridging header when using frameworks. Also, you might want to get rid of the bridging header entirely, as it is unnecessary when using frameworks, they can be imported directly in Swift.
from guides.cocoapods.org.
That solved my issue perfectly. Thanks for the help!
from guides.cocoapods.org.
Related Issues (20)
- CocoaPods search api not working HOT 1
- Add documentation for vendored_frameworks HOT 3
- Add documentation for singular vs plural form of properties HOT 1
- Should the Manifest.lock file be added to git or not? HOT 9
- Google Map,Place, Picker Pod not installing HOT 2
- Google Map, Place, Picker HOT 1
- 请问如何遍历project或者遍历workspace的target HOT 1
- isssuuuussssseeee.secting
- ussrss.view HOT 1
- Can import a package of swiftpackage By using cocopods?
- how to push private reops HOT 1
- 更新到移动广告 SDK 7.15.0 或更高版本。
- sdk
- Learning
- pod 'Google-Mobile-Ads-SDK'
- could the symlink gcc issue be more prominent ? HOT 3
- Can I get pod install or pod update return result
- Unable to publish pod after successful push HOT 2
- Easily-to-fall-into Antipattern with Resource Bundle Names HOT 1
- How to include Privacy manifest in the static framework? How to tell cocoa-pods to embed the static framework?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guides.cocoapods.org.