title: Xamarin Forms very slow build time on iOS from Visual Studio
body: <p>I'm developing a CRM app using </p>
  
  <ul>
  <li>Xamarin Forms 2.3.3.180</li>
  <li>Visual Studio 2015 Enterprise</li>
  <li>Xamarin for Visual Studio 4.2.2.11</li>
  <li>Xamarin iOS 10.3.1.8</li>
  <li>Other components (syncfusion, devexpress, acr, servicestack, etc...)</li>
  </ul>
  
  <p>Building all the projects begins to be really long and heavy.
  Now when I build in debug, attached to a device, It takes more than 9 minutes!!!</p>
  
  <p>Someone have got similar issue and can help me? 
  What can I do or check to reduce build time?</p>
  
  <p>I have set build output verbosity to Diagnostic, this is the summary:</p>
  
  <pre><code>8&gt;Target Performance Summary:
  8&gt;        0 ms  PrepareResourceNames                       1 calls
  8&gt;        0 ms  _OptimizePngImages                         1 calls
  8&gt;        0 ms  Compile                                    1 calls
  8&gt;        0 ms  ModifyUnitTestPlatformVersion              1 calls
  8&gt;        0 ms  ResolveSDKReferences                       1 calls
  8&gt;        0 ms  CreateIpa                                  1 calls
  8&gt;        0 ms  _OptimizePropertyLists                     1 calls
  8&gt;        0 ms  _ReadCompileImageAssets                    1 calls
  8&gt;        0 ms  AfterRebuild                               1 calls
  8&gt;        0 ms  DesignTimeXamlMarkupCompilation            1 calls
  8&gt;        0 ms  SetWin32ManifestProperties                 1 calls
  8&gt;        0 ms  BeforeCodesign                             1 calls
  8&gt;        0 ms  _CopyAppExtensionsToBundle                 1 calls
  8&gt;        0 ms  _CoreOptimizeLocalizationFiles             1 calls
  8&gt;        0 ms  _CompileTextureAtlases                     1 calls
  8&gt;        0 ms  Clean                                      1 calls
  8&gt;        0 ms  _CodesignFrameworks                        1 calls
  8&gt;        0 ms  _GenerateSatelliteAssemblyInputs           1 calls
  8&gt;        0 ms  CleanReferencedProjects                    1 calls
  8&gt;        0 ms  _OptimizeLocalizationFiles                 1 calls
  8&gt;        0 ms  _ResolveUniversalTypeIdentifiers           1 calls
  8&gt;        0 ms  ResolveCodeAnalysisRuleSet                 1 calls
  8&gt;        0 ms  _SetEmbeddedWin32ManifestProperties        1 calls
  8&gt;        0 ms  _CodesignNativeLibraries                   1 calls
  8&gt;        0 ms  _ResolveAppExtensionReferences             1 calls
  8&gt;        0 ms  _SetMtouchProjectDirectory                 1 calls
  8&gt;        0 ms  Archive                                    1 calls
  8&gt;        0 ms  CreateCustomManifestResourceNames          1 calls
  8&gt;        0 ms  _BeforeCoreCompileSceneKitAssets           3 calls
  8&gt;        0 ms  _CoreCompileTextureAtlases                 1 calls
  8&gt;        0 ms  GetCopyToOutputDirectoryXamlAppDefs        5 calls
  8&gt;        0 ms  BeforeCompile                              1 calls
  8&gt;        0 ms  AfterCompile                               1 calls
  8&gt;        0 ms  AfterBuild                                 1 calls
  8&gt;        0 ms  GetTargetPath                              5 calls
  8&gt;        0 ms  _SplitWatchAppReferencesByExistent         1 calls
  8&gt;        0 ms  BeforeRebuild                              1 calls
  8&gt;        0 ms  _SetTargetFrameworkMonikerAttribute        1 calls
  8&gt;        0 ms  _BeforeCoreCompileInterfaceDefinitions     1 calls
  8&gt;        0 ms  Build                                      1 calls
  8&gt;        0 ms  _PrepareResourceRules                      1 calls
  8&gt;        0 ms  InjectReference_f0961790-64cb-4db0-9ef7-5ca95aee54f3   1 calls
  8&gt;        0 ms  DeleteBuildInfoResource                    1 calls
  8&gt;        0 ms  ExpressionBuildExtension                   1 calls
  8&gt;        0 ms  AfterResGen                                1 calls
  8&gt;        0 ms  ValidationExtension                        1 calls
  8&gt;        0 ms  _CoreCompileSceneKitAssets                 1 calls
  8&gt;        0 ms  _CompileInterfaceDefinitions               1 calls
  8&gt;        0 ms  CleanPublishFolder                         1 calls
  8&gt;        0 ms  _ResolveWatchAppReferences                 1 calls
  8&gt;        0 ms  AfterCodesign                              1 calls
  8&gt;        0 ms  _CoreOptimizePropertyLists                 1 calls
  8&gt;        0 ms  PrepareRdlFiles                            1 calls
  8&gt;        0 ms  AfterClean                                 1 calls
  8&gt;        0 ms  DeleteBuildInfoFile                        1 calls
  8&gt;        0 ms  _CompileSceneKitAssets                     1 calls
  8&gt;        0 ms  PrepareForRun                              1 calls
  8&gt;        0 ms  SetBuildInfoDefaults                       1 calls
  8&gt;        0 ms  BeforeClean                                1 calls
  8&gt;        0 ms  ResolveReferences                          1 calls
  8&gt;        0 ms  Codesign                                   1 calls
  8&gt;        0 ms  CoreCodesign                               1 calls
  8&gt;        0 ms  AfterResolveReferences                     1 calls
  8&gt;        0 ms  _GenerateFrameworkDebugSymbols             1 calls
  8&gt;        0 ms  PrepareResources                           1 calls
  8&gt;        0 ms  _CopySourceItemsToOutputDirectory          1 calls
  8&gt;        0 ms  CompileRdlFiles                            1 calls
  8&gt;        0 ms  GetFrameworkPaths                          1 calls
  8&gt;        0 ms  BeforeResolveReferences                    1 calls
  8&gt;        0 ms  _CompileColladaAssets                      1 calls
  8&gt;        0 ms  BeforeResGen                               1 calls
  8&gt;        0 ms  _CompileImageAssets                        1 calls
  8&gt;        0 ms  _GenerateBundleName                        1 calls
  8&gt;        0 ms  BuildOnlySettings                          1 calls
  8&gt;        0 ms  EnsureNuGetPackageBuildImports             1 calls
  8&gt;        0 ms  _SplitAppExtensionReferencesByExistent     1 calls
  8&gt;        0 ms  ExpandSDKReferences                        1 calls
  8&gt;        0 ms  _SeparateAppExtensionReferences            1 calls
  8&gt;        0 ms  _ComputeTargetArchitectures                1 calls
  8&gt;        0 ms  _CoreCompileColladaAssets                  1 calls
  8&gt;        0 ms  CreateSatelliteAssemblies                  1 calls
  8&gt;        0 ms  _CoreXamlG                                 1 calls
  8&gt;        0 ms  Rebuild                                    1 calls
  8&gt;        0 ms  ResGen                                     1 calls
  8&gt;        0 ms  BeforeBuild                                1 calls
  8&gt;        0 ms  CoreBuild                                  1 calls
  8&gt;        0 ms  _CreateAppBundle                           1 calls
  8&gt;        0 ms  _DownloadNuGet                             1 calls
  8&gt;        0 ms  XamlG                                      1 calls
  8&gt;        1 ms  CleanXsdCodeGen                            1 calls
  8&gt;        1 ms  _CheckForInvalidTargetFrameworkProfile     7 calls
  8&gt;        1 ms  _ReadCoreCompileSceneKitAssets             1 calls
  8&gt;        1 ms  _BeforeCoreCompileImageAssets              1 calls
  8&gt;        1 ms  GetInstalledSDKLocations                   1 calls
  8&gt;        1 ms  _CleanUploaded                             1 calls
  8&gt;        1 ms  PreXsdCodeGen                              1 calls
  8&gt;        1 ms  _SeparateWatchAppReferences                1 calls
  8&gt;        1 ms  SplitResourcesByCulture                    1 calls
  8&gt;        1 ms  CoreResGen                                 1 calls
  8&gt;        1 ms  GetNativeManifest                          4 calls
  8&gt;        1 ms  _GenerateCompileInputs                     1 calls
  8&gt;        1 ms  _ReadCoreCompileInterfaceDefinitions       1 calls
  8&gt;        1 ms  _ReadCoreCompileTextureAtlases             1 calls
  8&gt;        1 ms  _CheckForCompileOutputs                    1 calls
  8&gt;        1 ms  _CollectXamlFiles                          1 calls
  8&gt;        1 ms  _CopyWatchOS2AppsToBundle                  1 calls
  8&gt;        1 ms  _CollectPropertyLists                      1 calls
  8&gt;        2 ms  _CollectLocalizationFiles                  1 calls
  8&gt;        2 ms  GenerateTargetFrameworkMonikerAttribute    1 calls
  8&gt;        2 ms  GetReferenceAssemblyPaths                  1 calls
  8&gt;        2 ms  _ParseExtraMtouchArgs                      1 calls
  8&gt;        2 ms  _PreXamlG                                  1 calls
  8&gt;        3 ms  GenerateCompiledExpressionsTempFile        1 calls
  8&gt;        3 ms  _SplitProjectReferencesByFileExistence     5 calls
  8&gt;        4 ms  _BeforeCompileTextureAtlases               3 calls
  8&gt;        4 ms  _DetectAppManifest                         1 calls
  8&gt;        4 ms  _CollectAssemblies                         1 calls
  8&gt;        4 ms  PrepareForBuild                            1 calls
  8&gt;        4 ms  _CollectColladaAssets                      1 calls
  8&gt;        4 ms  CopyFilesToMacOutputDirectory              1 calls
  8&gt;        5 ms  _CollectPngImages                          1 calls
  8&gt;        5 ms  CopyFilesToOutputDirectory                 1 calls
  8&gt;        5 ms  _CheckForInvalidConfigurationAndPlatform   8 calls
  8&gt;        9 ms  _CoreCompileImageAssets                    1 calls
  8&gt;       11 ms  _GenerateBuildSessionId                    1 calls
  8&gt;       12 ms  GetBundleResourceWithLogicalNameItems      1 calls
  8&gt;       21 ms  _AfterCoreOptimizePngImages                1 calls
  8&gt;       24 ms  AssignProjectConfiguration                 8 calls
  8&gt;       26 ms  _CreatePkgInfo                             1 calls
  8&gt;       26 ms  _CreateDebugConfiguration                  1 calls
  8&gt;       26 ms  AssignTargetPaths                          5 calls
  8&gt;       27 ms  CheckPrerequisites                         1 calls
  8&gt;       28 ms  _CreateAssetPackManifest                   1 calls
  8&gt;       31 ms  _DetectDebugNetworkConfiguration           1 calls
  8&gt;       33 ms  IncrementalClean                           1 calls
  8&gt;       38 ms  _EmbedMobileProvision                      1 calls
  8&gt;       39 ms  _ValidateAppBundle                         1 calls
  8&gt;       40 ms  _CollectFrameworks                         1 calls
  8&gt;       47 ms  _CopyITunesArtwork                         1 calls
  8&gt;       53 ms  GetCopyToOutputDirectoryItems              5 calls
  8&gt;       54 ms  ImplicitlyExpandDesignTimeFacades          1 calls
  8&gt;       79 ms  _CompileEntitlements                       1 calls
  8&gt;      101 ms  _CleanGetCurrentAndPriorFileWrites         1 calls
  8&gt;      112 ms  ResolveProjectReferences                   1 calls
  8&gt;      119 ms  _GetNativeExecutableName                   1 calls
  8&gt;      127 ms  _DetectSdkLocations                        1 calls
  8&gt;      132 ms  _CreateDebugSettings                       1 calls
  8&gt;      141 ms  XamlC                                      1 calls
  8&gt;      167 ms  _CollectITunesArtwork                      1 calls
  8&gt;      182 ms  _ComputeBundleResourceOutputPaths          1 calls
  8&gt;      193 ms  _DetectSigningIdentity                     1 calls
  8&gt;      203 ms  _CompileAppManifest                        1 calls
  8&gt;      224 ms  _CleanDeviceSpecificOutput                 1 calls
  8&gt;      329 ms  _CleanDebugSymbols                         1 calls
  8&gt;      345 ms  _CollectBundleResources                    1 calls
  8&gt;      357 ms  CoreClean                                  1 calls
  8&gt;      377 ms  _CleanAppBundle                            1 calls
  8&gt;      393 ms  RestorePackages                            1 calls
  8&gt;      406 ms  _CopyResourcesToBundle                     1 calls
  8&gt;      535 ms  _CleanMacBuild                             1 calls
  8&gt;      578 ms  _CleanITunesArtwork                        1 calls
  8&gt;      613 ms  GetBuiltProjectOutputRecursive             8 calls
  8&gt;      744 ms  _ConvertDebuggingFiles                     1 calls
  8&gt;      906 ms  _CopyFilesMarkedCopyLocal                  1 calls
  8&gt;      954 ms  CoreCompile                                1 calls
  8&gt;      991 ms  ResolveAssemblyReferences                  1 calls
  8&gt;     2125 ms  _SayGoodbye                                1 calls
  8&gt;     2690 ms  _SayHello                                  1 calls
  8&gt;     3122 ms  _CleanIntermediateToolOutput               1 calls
  8&gt;     5962 ms  _UnpackLibraryResources                    1 calls
  8&gt;     6088 ms  _CoreOptimizePngImages                     1 calls
  8&gt;     6670 ms  CopyIpaFromMac                             1 calls
  8&gt;     9556 ms  _CoreCompileInterfaceDefinitions           1 calls
  8&gt;    10048 ms  _CoreCreateIpa                             1 calls
  8&gt;    11692 ms  _ZipIpa                                    1 calls
  8&gt;    11778 ms  _CodesignAppBundle                         1 calls
  8&gt;    15093 ms  _CodesignVerify                            1 calls
  8&gt;    16257 ms  CopyDSYMFromMac                            1 calls
  8&gt;    25191 ms  _GenerateDebugSymbols                      1 calls
  8&gt;    46092 ms  _CompileITunesMetadata                     1 calls
  8&gt;    384931 ms  _CompileToNative                           1 calls
  8&gt;
  8&gt;Task Performance Summary:
  8&gt;        0 ms  ResolveCodeAnalysisRuleSet                 1 calls
  8&gt;        0 ms  FindAppConfigFile                          1 calls
  8&gt;        0 ms  GetFrameworkPath                           1 calls
  8&gt;        1 ms  CallTarget                                 1 calls
  8&gt;        1 ms  AssignCulture                              1 calls
  8&gt;        1 ms  ResolveNonMSBuildProjectOutput             1 calls
  8&gt;        1 ms  GetReferenceAssemblyPaths                  1 calls
  8&gt;        1 ms  FixedCreateCSharpManifestResourceName      1 calls
  8&gt;        2 ms  ParseExtraMtouchArgs                       1 calls
  8&gt;        2 ms  Message                                   18 calls
  8&gt;        3 ms  CollectMonotouchReferences                 1 calls
  8&gt;        4 ms  FindItemWithLogicalName                    1 calls
  8&gt;        4 ms  CopyFilesToBuildServer                     1 calls
  8&gt;        5 ms  ReadLinesFromFile                          2 calls
  8&gt;        8 ms  ConvertToAbsolutePath                      1 calls
  8&gt;        9 ms  GenerateBuildSessionId                     1 calls
  8&gt;       11 ms  AssignTargetPath                          30 calls
  8&gt;       19 ms  AssignProjectConfiguration                 8 calls
  8&gt;       21 ms  WriteItemsToFile                           3 calls
  8&gt;       21 ms  CreateItem                               129 calls
  8&gt;       25 ms  CreatePkgInfo                              1 calls
  8&gt;       26 ms  CreateDebugConfiguration                   1 calls
  8&gt;       28 ms  CreateAssetPackManifest                    1 calls
  8&gt;       31 ms  DetectDebugNetworkConfiguration            1 calls
  8&gt;       38 ms  EmbedMobileProvision                       1 calls
  8&gt;       38 ms  ValidateAppBundleTask                      1 calls
  8&gt;       40 ms  CollectFrameworks                          1 calls
  8&gt;       49 ms  FindUnderPath                              7 calls
  8&gt;       51 ms  RemoveDuplicates                           3 calls
  8&gt;       74 ms  WriteLinesToFile                          13 calls
  8&gt;       79 ms  CompileEntitlements                        1 calls
  8&gt;       86 ms  CompileAppManifest                         1 calls
  8&gt;      118 ms  DetectSdkLocations                         1 calls
  8&gt;      119 ms  GetNativeExecutableName                    1 calls
  8&gt;      131 ms  CreateDebugSettings                        1 calls
  8&gt;      140 ms  XamlCTask                                  1 calls
  8&gt;      167 ms  CollectITunesArtwork                       1 calls
  8&gt;      181 ms  ComputeBundleResourceOutputPaths           1 calls
  8&gt;      193 ms  DetectSigningIdentity                      1 calls
  8&gt;      348 ms  CollectBundleResources                     2 calls
  8&gt;      385 ms  SmartCopy                                  1 calls
  8&gt;      393 ms  Exec                                       1 calls
  8&gt;      665 ms  ConvertPdbToMdb                            1 calls
  8&gt;      712 ms  MsBuild                                   12 calls
  8&gt;      952 ms  Csc                                        1 calls
  8&gt;      990 ms  ResolveAssemblyReference                   1 calls
  8&gt;     1258 ms  Copy                                      21 calls
  8&gt;     1488 ms  Delete                                    14 calls
  8&gt;     2125 ms  SayGoodbye                                 1 calls
  8&gt;     2537 ms  LocalUnzip                                 1 calls
  8&gt;     2690 ms  SayHello                                   1 calls
  8&gt;     3053 ms  Ditto                                      1 calls
  8&gt;     3329 ms  MakeDir                                    5 calls
  8&gt;     3408 ms  CollectITunesSourceFiles                   1 calls
  8&gt;     4600 ms  RemoveDir                                  9 calls
  8&gt;     5961 ms  UnpackLibraryResources                     1 calls
  8&gt;     6074 ms  OptimizeImage                              1 calls
  8&gt;     8126 ms  SpotlightIndexer                           1 calls
  8&gt;     9474 ms  CopyFileFromMac                            2 calls
  8&gt;     9544 ms  IBTool                                     1 calls
  8&gt;    11777 ms  Codesign                                   1 calls
  8&gt;    15093 ms  CodesignVerify                             1 calls
  8&gt;    16798 ms  DSymUtil                                   1 calls
  8&gt;    22417 ms  Zip                                        2 calls
  8&gt;    46092 ms  CompileITunesMetadata                      1 calls
  8&gt;    384918 ms  MTouch                                     1 calls
  8&gt;
  8&gt;Build succeeded.
  8&gt;
  8&gt;Time Elapsed 00:09:26.72
  </code></pre>