User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Xcode build time

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Xcode build time

    Got my mac, stumbled through the account signup and Xcode install, and tonight I am building my first projects. Yay!

    I can get it loaded on a 3rd Gen Ipod touch, however I am finding that every xcode build takes 20-30 minutes. The app I have is relatively simple, with just one frame. I am compiling on a ~1ghz mac mini.

    Has anyone else noted similar build times? Does Xcode cache anything between builds?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,112
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    it shouldn't take that long, when I first started building my apps they randomly took forever too.. but now they all always work fine. I have a mac mini too and they build in generally 5-20 seconds.

    try restarting your phone/mac and if it still does it, do a clean build as well. Try not to stress... I thought there was no way I'd be able to handle making an iOS app with the way the building/provisioning etc. messed me around at first, but then it started all working smoothly! there have been loads of other people with similar issues to you and it seems to fix itself.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Roger that. I'll give that a shot...

    How did that Devo song go?

    "When a problem comes a-long.... you must reboot it"
    REBOOT IT GOOD


    I'll come back and report my luck

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The reboot gave me a slow compile, so I tried restarting with a clean build. Im not sure how to do this on the xcode end, but I simply saved a new ios project zipfile.

    A quick build for the simulator, but then switching targets to the ipod goes slow again.... I'll keep messing with it.



    Do you develop with the 'final xcode project' option? Im wondering if not having to recompile every extension might help me....

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,112
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    I use the standard XCode export (not the final xcode export).. when you say it takes a long time to build, does the progress bar (near the build button in xcode) go really slowly? If it does, I've never experienced that, for me it used to build quickly and then take forever to start on the device... is that what happens for you?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont see a progress bar at the bottom, but one at the top. Im using Xcode version 4.2.... It takes a while to build. When it launches on the device, the launch screen appears rapidly, but spends some 20 seconds before my level appears.

    It seems that the longest build process item is precompiling the prefix headers.

    "Precompile myGame_Prefix.pch"

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The solution, in case anyone else has this problem.

    In Xcode, under 'Targets' (Not Project) , and the 'Build Settings' tab, make sure 'Precompile Prefix Header' is set to 'No'

    It is enabled by default for me. Im not sure if this is my xcode version or the zipfile produced by the iOS exporter.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Strange. The role of the precompiled header is to speed up compilation. It should be longer to compile the first time, then shorter the nexy times.
    DO you know that you do NOT have to build as a project each time on MMF? Just do it the first time, and the next times build as an iOS application : you will gain a great amount of time as the project will not need to be compiled again.

  9. #9
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for sharing your solution - and yes, just building the application (cci) and copying it into your project will speed things up massively, after the first time you build it

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I understand that the precompiled header should speed things up, but for some reason, it was recompiling the headers every time.... hence the 20-30 minute compiles.

    Now I have that option disabled, the first build for me takes ~2 minutes, and subsequent builds with the cci file take just 20 seconds...


    Thanks guys!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [Build 257.6] BUG on export XCode project
    By Sphax in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 15th March 2013, 04:35 AM
  2. Build and Run Xcode
    By GameMaker2019 in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 15th February 2013, 01:47 PM
  3. Xcode Build and Run not updating app
    By Verbage in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 13th November 2012, 09:02 PM
  4. Build error in Xcode (latest update)
    By cfullerNY in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 20th February 2012, 08:12 AM
  5. iOS XCode Build Error
    By PushTheLimit in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 20th July 2011, 09:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •