what is the difference between pods and modules
when i import any library either builtIn or cocoapods library both are showing Module, as u can see it in my uploaded image.
Asked
Active
Viewed 533 times
0

Akbar Khan
- 2,215
- 19
- 27
-
1Possible duplicate of [What does module mean in swift?](https://stackoverflow.com/questions/48426344/what-does-module-mean-in-swift) – Scriptable Aug 07 '18 at 10:51
-
^^ That link explains module in Swift. Cocoapods is a package manager for installing third party libraries. – Scriptable Aug 07 '18 at 10:52
3 Answers
1
Actually there is no such difference in it, It refers you that this framworks is added, either it is thirdparty like (Kingfisher or Moya) or it is our built in like (CoreML). So we are just use it as a framework. Hope u get the Answer...!!!!

Zain Shahzad
- 74
- 1
- 4
1
Pods can slow down your build time if there are a lot of dependencies. I noticed this when using Firebase in my project. This is an interesting article about the trade offs building with pods vs. modules.

Stephen O'Connor
- 1,465
- 1
- 10
- 20
0
The pod is for installation third party library in your project but modules is also third party library or inbuilt swift modules. pod is installation by pod-file of your project which you can generated by terminal.

Virani Vivek
- 888
- 1
- 8
- 22
-
but when i import any library either built in or cocoapods library both are showing Module. as u can see it in my uploaded image – Akbar Khan Aug 07 '18 at 11:06
-
if you want to use library than import pod module and otherwise you can import inbuilt module – Virani Vivek Aug 07 '18 at 11:16
-
1@akbarkhan Cocoapods itself is not a known library/module for your Swift project. It is a package manager for defined library(module). It manages the installation, updates, revisions etc of defined modules. In your project, any module installed through cocoapods or builtin, it will be considered as module. – Kamran Aug 07 '18 at 11:22