运行2个自定义shell脚本中的1个在Xcode中停留2分钟 [英] Running 1 of 2 custom shell script stuck for 2 minutes in Xcode
问题描述
运行2个自定义shell脚本中的1个 ,在尝试构建应用时,它会停留2分钟。
我尝试使用该解决方案:
- 构建阶段
更多信息:
-
Xcode 8.1
-
Swift 3.0
Podfile:
#取消注释此行以定义项目的全局平台
platform :ios,'9.0'
#如果您使用Swift
use_frameworks,请取消注释此行!
目标'MyProject'做
#网络
pod'Alamofire'
pod'SwiftyJSON'
#UI side
pod'Material',git:'https://github.com/CosmicMind/Material.git',分支:'开发'
pod'SDWebImage'
pod'UIScrollView-InfiniteScroll'
pod'TPKeyboardAvoiding'
pod'SwiftKeychainWrapper',git:'https://github.com/jrendel/SwiftKeychainWrapper.git',branch:'develop'
pod'DropDown'
#Facebook
pod'FacebookCore'
pod'FacebookLogin'
pod'hile'
#Autolayout
pod'SnapKit'
pod'KaveLayout'
#Metrics
pod'Google / Analytics'
#Fabric.io
pod'Fabric'
pod'Crashlytics'
end
target'MyProjectTests'do
end
target'MyProjectUITests'do
结束
最后,我找到了解决方案为了这。现在至少总构建时间 57秒。
我发现'嵌入Pods框架'
(一旦'嵌入Pods框架'
和'CP嵌入Pods框架'
)构建两次。无论如何,我不知道为什么我在构建阶段都有这两个。
我在Report Navigator上找到了这个。
解决方案:
1)我只允许激活✓仅在
时运行脚本'[CP] Embed Pods Framework'
安装
2)调试的构建设置的优化级别为 -None
。我设置为 Fast ..
。
3)提示:使用模拟器代替设备最短的构建时间。
Running 1 of 2 custom shell scripts it stuck for 2 minutes while trying to build the app.
I tried to fix with the solution :Xcode custom shell scripts are slowing down the compiling time , but still it slows the build process :(.
- Build Stuck for 2m here
- Build Phases
Further informations:
Xcode 8.1
Swift 3.0
Podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'MyProject' do
# Network
pod 'Alamofire'
pod 'SwiftyJSON'
# UI side
pod 'Material', git: 'https://github.com/CosmicMind/Material.git', branch: 'development'
pod 'SDWebImage'
pod 'UIScrollView-InfiniteScroll'
pod 'TPKeyboardAvoiding'
pod 'SwiftKeychainWrapper', git: 'https://github.com/jrendel/SwiftKeychainWrapper.git', branch: 'develop'
pod 'DropDown'
# Facebook
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'
# Autolayout
pod 'SnapKit'
pod 'KeepLayout'
# Metrics
pod 'Google/Analytics'
# Fabric.io
pod 'Fabric'
pod 'Crashlytics'
end
target 'MyProjectTests' do
end
target 'MyProjectUITests' do
end
Finally, I found a solution for this. At least the total build time now is 57sec.
I found that 'Embed Pods Framework'
(Once 'Embed Pods Framework'
and 'CP Embed Pods Framework'
) builds twice. Anyway, I don't have an idea why I have both of them on build phases.
I found for this on Report Navigator.
Solution:
1) I let only active ✓ Run script only when installing
only for'[CP]Embed Pods Framework'
2) Optimization Level on Build Settings for debug was -None
. I set to Fast..
.
3) Tip: use Simulator instead of Device for minimal build time.
这篇关于运行2个自定义shell脚本中的1个在Xcode中停留2分钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!