Post

Replies

Boosts

Views

Activity

Reply to How to speed up build time?
Hi! Thanks for the reply. Today I tried creating a stand alone DummyViewController that isn't used anywhere in the app. Compiled, then add one line of code. The incremental compile time is 1 minute. At this point, I think there's something else other than the modified file here that ramps up the incremental compile time. So I dive into the build logs. I added -driver-show-incremental and -driver-show-job-lifecycle in Other Swift flags and checks the build log under "Compile Swift source files". Here I attached the first 500 lines of the log. [Log] Compile Swift source files - https://developer.apple.com/forums/content/attachment/a0e7e1b3-4435-4071-a3f7-338f03a4508f Honestly, I cannot make much sense from the log above. Some help is appreciated. My best guess is that, since I see Viki-Bridging-Header.h in the log, I guess it's the bridging header. It contains some models, constants, a view controller, and some NSObject helper that is used in many places throughout the app. Is this plausible? My bridging header looks like this. (Not sure if this will help.) #ifndef Viki_Viki_Bridging_Header_h #define Viki_Viki_Bridging_Header_h #import <GoogleConversionTracking/ACTReporter.h> #import <SurveyMonkeyiOSSDK/SMError.h> #import <SurveyMonkeyiOSSDK/SurveyMonkeyiOSSDK.h> #import <GAI.h> #import "CSSubscriptionManager.h" #import "NSObject+VKFoundation.h" #import "VKAPICollection.h" #import "NSError+Viki.h" #import "VKSilo.h" #import "VKSlideInTransitionContainerViewController.h" #import "VKRecentSearch.h" #import "VKVikiliticsConstants.h" #endif Please help! 🙏
Jun ’20
Reply to How to speed up build time?
Not sure if the cloc output is properly formatted. I'll just paste it here again. github.com/AlDanial/cloc v 1.82	T=1.83 s (516.1 files/s, 53330.0 lines/s) Language										 files					blank				comment					 code Swift													922					16777					 6540					72453 C/C++ Header										12						 97						 81						760 Objective C											9						117						 61						550 SUM:													 943					16991					 6682					73763
Jun ’20