简体   繁体   English

使用第三方(CocoaPods)库有哪些限制?

[英]What are limitations on using third-party(CocoaPods) libraries?

Background 背景
- I am backend Software engineer for many years. -我是后端软件工程师多年。
- I am starting to learn iOS development to build a project based on an idea -我开始学习iOS开发,以基于一个想法构建一个项目
- I came across cocoapods which is used to pull in awesome third-party libraries into your own project -我遇到了cocoapods ,该cocoapods用于将很棒的第三方库引入您自己的项目中

Then what is the problem? 那是什么问题呢?
- when building for mobile devices, resources are really critical. -在构建移动设备时,资源至关重要。 Example, space, memory, etc. 示例,空间,内存等。
- I wanted to learn if using thirdparty libraries has some implications (I guess not since most of developers use it). -我想了解使用第三方库是否会带来一些影响(我想不是,因为大多数开发人员都在使用它)。 But being new to this space I am confused? 但是对于这个领域的新手,我感到困惑吗?

What I want? 我想要的是?
- Is it okay for a project to include multiple third=party libraries? -一个项目可以包含多个第三方库吗? What about space and memory issues. 那么空间和内存问题呢?
- Doesn't it increases the size(space needed) of the project? -不会增加项目的大小(所需空间)吗?

  • What are the recommendations? 有什么建议?

PS Apologies for not asking for a programming question, but did not find a better place to ask this question. PS歉意不询问编程问题,但找不到更好的地方提出这个问题。

Using 3rd party libraries may or may not be any more of a problem then writing it all yourself. 使用第三方库可能不是问题,而是自己编写。 I have a large, sophisticated iOS app that uses nearly two-dozen 3rd party libraries without issue. 我有一个大型的,复杂的iOS应用程序,该应用程序几乎使用了两个第三方库,没有问题。

There are apps that use no 3rd party libraries and their app is almost too big for the App Store. 有些应用程序不使用任何第三方库,对于App Store而言,它们的应用程序几乎太大了。

The issue isn't code, it is resources like images, video, and sound files. 问题不是代码,而是图像,视频和声音文件之类的资源。

Don't worry about it until you actually have a problem. 在您真正遇到问题之前,不必担心。 The size of your project is irrelevant. 项目的大小无关紧要。 The final size of your IPA is relevant. IPA的最终大小是相关的。

BTW - CocoaPods is irrelevant to your question. 顺便说一句-CocoaPods与您的问题无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM