V3.2: I tried both the cpp-empty-test and a brand new empty project, clean+build took 4:04 for both builds. Archiving took a massive 11:02. The archive file “cpp-empty-test iOS 14-08-2014 20.22.xcarchive” is 20.1MB
I then went to V2.2.5, opened up the Samples/Cpp/HelloCpp project, clean+build took 0:44. Archiving took 0:44 also. The archive file “HelloCpp 14-08-2014 20.03.xcarchive” is 2.9MB
There seems to be quite a bit of difference. If you say this is normal due to the new module system then I’ll accept that.
I also tried archiving empty-test as usual it took nearly 8 to 10 mins. However the IPA file size was 4.4MB & Appstore app size 6.7 MB
The process which is taking long time is “building cocos2dx iOS” during this process it compiles 900 source files.
Now, cocos2d-x integrated chipmunk by default. But i don’t think it will cause the problem. @GMTDev I am not sure if new module system cause the problem. I am trying to find out the problem. I hope it is other thing cause the problem.
Using distcc as a command-line process that runs at system startup, doesn’t interfere with any using any of the machines in anyway. They see nothing. It is comparable with Xcode as distcc was what Apple was using before they got rid of it. I’m not sure why they got rid of it even. It has been great.
I just tried the latest code from github. But when i was running empty test it was giving some 15 errors like
cocos2d-x/cocos/editor-support/cocostudio/DictionaryHelper.h:28:10: ‘json/document.h’ file not found etc
But i still tried to archive that project it compiled 1299 source files & it took around 5 mins before it showed archive failed.
I did a video capture of my builds on V2.2.4 and V3.2 and compared the time to build the same selection of files (as much the same as possible), I looked at the “build target cocos2dx iOS” build.
As you can see in the image, it took V2 9 seconds to build the first 39 files, in the same time V3 had built just 11.
Guys, thanks for your help.
As @GMTDev said, it build less files in the same time in v3.x.But i have not idea about it now. The big change is that we use c++11 and clang for v3.x. I am not sure if it is the reason. I will continue to work out it.
Hi, this issue is also effecting us. Our builds take around 25mins when archiving(on iOS)
One things I have noticed is that during archive te cocos2d libs compile 900 files whereas in debug mode it only compiles 300 files. Is this normal?
I’ve also noticed our builds are about 10 meg lighter when using static libraries.