问题描述
我正在为iOS 8.3开发一个基于Swift的应用程序,我发现该应用程序启动非常慢,并且似乎在应用程序加载过程中停滞了.该应用程序会在我执行任何代码之前 降低donwn.实际上,只有一个线程处于活动状态,仅使用60k内存,CPU不忙.请参阅附件的屏幕截图.
i am developing a Swift based App for iOS 8.3 and i observed that the App starts very very slow and seems to stall in the App loading process. The App slows donwn before any of my code is executed. As matter of fact, only one thread is active, only 60k memory are used, the CPU is not busy. See attached Screenshot.
该应用程序等待大约20-30秒,然后按预期方式继续运行,而不会出现任何异常或错误消息.
The App waits for about 20-30 seconds and continues as expected without any exceptions or error messages.
推荐答案
所有这些都是因为苹果添加了安全检查.这不仅适用于iOS设备,也不适用于所有MAC设备.
All this happens because there are Security checks added by the apple.This is not applicable for not only iOS devices but applicable for all MAC devices as well.
对于文件的任何更改,将进行安全保护,并执行签名检查.根据机器(iPhone/Mac)的不同,互联网速度需要花费一些时间才能完成.随后对同一文件(不进行重新编译,修改)的任何调用均不会出现此问题.
For any change in files there will be security, signature checks gets performed.Depending on the machine(iPhone/Mac), internet speed it takes times to get completed.Any subsequent call to same (no recompile, modified) file does not observe this issue.
这篇关于iOS App的启动速度非常慢,并在ImageLoaderMachO :: loadCodeSignature中停滞的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!