Esempio n. 1
0
        public void ExtractNativeLinkInfo(List <Exception> exceptions)
        {
            foreach (var a in Assemblies)
            {
                try {
                    a.ExtractNativeLinkInfo();

#if MTOUCH
                    if (a.HasLinkWithAttributes && App.EnableBitCode && !App.OnlyStaticLibraries)
                    {
                        ErrorHelper.Warning(110, "Incremental builds have been disabled because this version of Xamarin.iOS does not support incremental builds in projects that include third-party binding libraries and that compiles to bitcode.");
                        App.ClearAssemblyBuildTargets();                          // the default is to compile to static libraries, so just revert to the default.
                    }
#endif
                } catch (Exception e) {
                    exceptions.Add(e);
                }
            }

#if MTOUCH
            if (!App.OnlyStaticLibraries && Assemblies.Count((v) => v.HasLinkWithAttributes) > 1)
            {
                ErrorHelper.Warning(127, "Incremental builds have been disabled because this version of Xamarin.iOS does not support incremental builds in projects that include more than one third-party binding libraries.");
                App.ClearAssemblyBuildTargets();                  // the default is to compile to static libraries, so just revert to the default.
            }
#endif
        }
Esempio n. 2
0
        public void ExtractNativeLinkInfo(List <Exception> exceptions)
        {
            foreach (var a in Assemblies)
            {
                try {
                    a.ExtractNativeLinkInfo();
                } catch (Exception e) {
                    exceptions.Add(e);
                }
            }

#if MTOUCH
            if (!App.OnlyStaticLibraries && Assemblies.Count((v) => v.HasLinkWithAttributes) > 1)
            {
                ErrorHelper.Warning(127, Errors.MT0127);
                App.ClearAssemblyBuildTargets();                  // the default is to compile to static libraries, so just revert to the default.
            }
#endif
        }