Xcode自定义外壳脚本正在减慢编译时间 [英] Xcode custom shell scripts are slowing down the compiling time

查看:67
本文介绍了Xcode自定义外壳脚本正在减慢编译时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论何时构建,测试Xcode项目的任何更改都已成为一种耐心的练习.编译完所有源文件后,我在Xcode顶部的活动窗口中收到以下消息:

Testing any changes to my Xcode project has become an exercise in patience whenever I build. After all the source files have compiled, I get the following message in the activity window at the top of Xcode:

运行3个自定义Shell脚本中的3个"

"Running 3 of 3 Custom Shell Scripts"

我还没有添加任何自定义的shell脚本,但是我通过Cocoapods使用了很多依赖关系,并且为构建环境使用了两个框架Crashlytics和Tapstream. Crashlytics要求您在构建阶段添加一个运行脚本,除了我不知道其他脚本来自何处,它们似乎是我构建时间的瓶颈.

I have not added any of my own custom shell scripts but I am using quite a few dependencies via Cocoapods and I am using 2 frameworks for the build environment, Crashlytics and Tapstream. Crashlytics requires you add a run script in the build phases, other than that I don't know where the other ones are coming from and they appear to be the bottleneck in my build time.

任何人都可以对发生的事情以及如何加快速度开悟吗?

Can anyone enlighten me as to what is going on and how i possibly speed it up?

推荐答案

我无法启发您,但是我可以告诉您如何停止我的运行.安装Cocoapods之后也发生了这种情况.在主项目的Target中的Build Phases下,我注意到两个名为Check Pods Manifest.lock的条目,另一个为Copy Pods Resources.

I can't enlighten you but I can tell you how I stopped mine from running. This also happened after installing Cocoapods. In my main project's Target, under Build Phases, I noticed two entries entitled Check Pods Manifest.lock and another called Copy Pods Resources.

在这两种情况下,都有一个未选中的选项Run script only when installing.我至少检查了一下,至少现在我的项目在不运行脚本的情况下就可以正常构建和运行.

Under both there was an unchecked option Run script only when installing. I checked both and at least for now my projects build and run fine without running the scripts.

这是一个糟糕的答案,因为我真的无法再提供更多信息,甚至可能无法解决您的问题,因此希望有人来为我们提供启发.

This is kind of a crappy answer because I can't really give you any more information, and it might not even work for your case, so hopefully someone comes along and enlightens us.

可能的外部捆绑问题

因此,我对调试Pod安装的库的NSLocalized字符串文件无法正常工作的问题感到沮丧.原来是因为我检查了上面提到的选项. Pods-resources.sh可以安装捆绑软件,但未在调试模式下运行.它仅在安装时运行-当然!需要提防的东西.

So I just had a frustrating experience debugging an issue where a pod installed library's NSLocalized strings file weren't working. Turns out it was because I checked the option mentioned above. Pods-resources.sh, which had the lines to install the bundle, wasn't running in debug mode. It was only running when installing - of course! Something to watch out for.

有关此问题的更多信息:

More info in this question:

NSLocalizedStringFromTable无法在CocoaPod依赖项中工作

这篇关于Xcode自定义外壳脚本正在减慢编译时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆