Xamarin.iOS Build for Devices is taking too long

raveroravero USMember ✭✭

Hi fellows,
I'm having several issues with build time for iOS devices (not for the simulator). A build is taking about 5 minutes or more!

I'm using the latest version of Xamarin Studio (6.1.3 Build 19) and the latest version of the Apple SDK's. This is happening on a MBPr 15' i7 16 GB 512 SSD, so It's definitely not an hardware issue (specially because I've never had that kind of issue before on the same machine).

Does anyone facing the same kind of issue?
Regards.

Best Answer

Answers

  • SiddharthMishra.4597SiddharthMishra.4597 USUniversity ✭✭

    Yes I am having the same issue. Don't know why.

  • MarcinKruszynskiMarcinKruszynski USMember ✭✭

    I also have the same issue. Any solution?

  • AlanClarkAlanClark USForum Administrator, Xamarin Team Xamurai

    Hi guys! We actually have a pretty cool guide for timing apps with some handy hints for speeding up build times:

    https://developer.xamarin.com/guides/ios/advanced_topics/ios-build-mechanics/

    I'd suggest taking a look at that. However, if this is because you think you've noticed a slow-down since a recent Xamarin update where your project hasn't changed a whole deal, then it might be worthwhile dropping down to a previous version of Xamarin:

    https://kb.xamarin.com/customer/portal/articles/1699777-downgrading

    If you drop back and you're seeing quicker build times than the later release then our engineers are probably going to be eager to take a look. In this case I'd suggest filing a bug:

    https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/howto-file-bug/

    It'd be great to get people's feedback there!

    Cheers,
    Al

  • KingChrisColeKingChrisCole USMember ✭✭✭

    @AlanClark said:
    However, if this is because you think you've noticed a slow-down since a recent Xamarin update where your project hasn't changed a whole deal, then it might be worthwhile dropping down to a previous version of Xamarin:

    https://kb.xamarin.com/customer/portal/articles/1699777-downgrading

    one step forward, two steps backwards.

    why even bother releasing updates if each update is worse than the last?

  • AlanClarkAlanClark USForum Administrator, Xamarin Team Xamurai

    @KingChrisCole You're paraphrasing me here - that wasn't the tone of my message. We're here to help and to assist with any issues you may come across. My message went on to suggest why you would want to do that and how to make us aware of issues so that we can work with you to address them.

  • sudhir.9350sudhir.9350 INUniversity ✭✭

    Same problem here.. anyone found any suitable workaround or resolutions?

  • AlanClarkAlanClark USForum Administrator, Xamarin Team Xamurai

    @sudhir.9350 Please see my message above relating to improving build times and comparing your build times to a previous release of Xamarin to see if things improve and a bug needs to be filed.

  • MarcoTronconeMarcoTroncone GBUniversity ✭✭

    It's almost impossible to debug an app on an actual iOS device.

    I've followed the guide but the process is still incredibly slow.

    Honestly it has never been so slow and I think that now Xamarin must do something to improve the performances here.

    I'm still thinking that it is a bug...it's not possible that it is taking so long on a device and it's so fast on a simulator.

    Please let us know something.

  • MichelMoorlagMichelMoorlag USMember ✭✭

    Facing the same issues here. Simulator is decent fast but real device is painfully slow to build. I am testing notifications which can only be done on a real device but testing is horrible.

  • FelipeZunigaFelipeZuniga AUMember

    +1 same issue

  • KingChrisColeKingChrisCole USMember ✭✭✭
    edited September 2017

    Just checking in...

    Session build time: 00h 14m 09s 927ms

    after latest update

    Microsoft should be ashamed of this performance.

  • KingChrisColeKingChrisCole USMember ✭✭✭

    3>Done building target "Rebuild" in project "MyProject.iOS.csproj".
    3>
    3>Build succeeded.
    3>
    3>Time Elapsed 00h 09m 44s 54ms

  • jNormenjNormen SEMember ✭✭

    Yes, this is a reason why I and lots of others are now looking into react native...
    The build takes ages just to take a look at some minor fixes...
    And there are many warnings, assembly conflicts messages all the time. Even if the app starts and seems to work fine, it's not ok to have all these errors messages within the build... Hard to guarantee quality to customers...

    It's sad because Xamarin was so promising.

    I can't explain to my customers that I spent 2 days to delivered two small features that had an implementation time of 4h.
    And the rest are just hours of build problems.

    I really hope this gets fixed soon...

  • JohnHairJohnHair GBMember ✭✭✭✭

    @JNormen I am not seeing any of the issues you mentioned, my builds all work correctly for all my apps.
    Also, recompile time for small iterative dev build changes take seconds to build and deploy to my iPhones. Release builds can take a minute however as it does a full rebuild with 2 slices. I am using a 2016 Macbook PRO, however.

  • jNormenjNormen SEMember ✭✭

    @JohnHair said:
    @JNormen I am not seeing any of the issues you mentioned, my builds all work correctly for all my apps.
    Also, recompile time for small iterative dev build changes take seconds to build and deploy to my iPhones. Release builds can take a minute however as it does a full rebuild with 2 slices. I am using a 2016 Macbook PRO, however.

    We have two different Macbook i7 Pro. The problem started when we updated to latest Xamarin version. It was much faster before. We did a migration to .Net Standard 2.0 to see if that could help us but still 5-9 min.

    I put up a UWP version it builds really fast, Android is as slow as it always is. Just iOS that are slow.
    And It does not matter if I build Ipad or set it to iPhone. Also using latest xcode version on our Mac computers.

  • JohnHairJohnHair GBMember ✭✭✭✭

    @JNormen you have checked the usual, right? Only building a single slice for debug builds etc etc?
    You building directly on the mac? Or via Visual Studio on windows?

    You could try creating a new debug configuration, see if that helps.

  • jNormenjNormen SEMember ✭✭

    @JohnHair said:
    @JNormen you have checked the usual, right? Only building a single slice for debug builds etc etc?
    You building directly on the mac? Or via Visual Studio on windows?

    You could try creating a new debug configuration, see if that helps.

    Windows VS .Net with a mac connection. So using Mac as a build machine. Is there any way to see what step it builds?
    What the build process really do? So I can see if it takes time in certain build-action? Like nuget downloading or anything?

    All I can see on VS is just "building" and the slow progress bar :D

Sign In or Register to comment.