Fatal Error while building iOS Preview on Mac

Hello Community,

i have a problem i use fuse version 0.35.0 on Mac OS 10.11.6 and Xcode 8.2.1.

I can build my App with fuse preview.
Everything is working in the fuse preview but when i am build the iOS preview i get the following error:

Christophs-MacBook-Pro:code-input Christoph$ fuse preview -t=ios
Fuse 0.35.0 (build 10867)
Build started: FullCompile
Configuring (2.3 s)
Compiling syntax tree (1.5 s)
Generating code and data (15.2 s)
FATAL ERROR: Value cannot be null.
Parameter name: source (pass --trace for stack trace)
Build ended
fuse: Failed to compile project

Update:
I got this error by the example project too.

Can anybody help me?

I have unistalled fuse and re-installed it.

But still the same Problem.

UPDATE:

All projekts are not building a iOS preview.

What do i am wrong please help!

I tried to build the iOS Preview in verbose mode but still the same error.

Here the log from the console.

Christophs-MacBook-Pro:code-input Christoph$ fuse preview -t=ios -v
Fuse 0.35.0 (build 10867)
Build started: FullCompile
Configuring
Project file: CodeInput.unoproj
Search paths: /usr/local/share/uno/Packages, /Applications/Packages, /Users/Christoph/Library/Application Support/Fusetools/Packages
Packages:     UnoCore (0.46.1), Fuse.Designer (0.46.1), Fuse.Platform (0.46.1), Uno.Collections (0.46.0), Uno.Geometry (0.46.0), Uno.Net.Sockets (0.46.1), Uno.Threading (0.46.1), FuseCore (0.46.1), Fuse.Motion (0.46.1), Fuse.Animations (0.46.1), Fuse.Drawing (0.46.1), Fuse.Drawing.Planar (0.46.1), Uno.Net.Http (0.46.1), Experimental.Http (0.46.1), Experimental.TextureLoader (0.46.0), Fuse.Scripting (0.46.1), Fuse.Triggers (0.46.1), Fuse.Elements (0.46.1), Fuse.Controls.Native (0.46.1), Fuse.Gestures (0.46.1), Uno.Data.Json (0.46.0), Fuse.Navigation (0.46.1), Fuse.Scripting.Duktape (0.46.1), Fuse.Scripting.JavaScriptCore (0.46.1), Fuse.Scripting.Jurassic (0.46.1), Fuse.Scripting.V8 (0.46.1), Uno.Testing (0.46.1), Fuse.Reactive (0.46.1), Fuse.Controls (0.46.1), Fuse.Controls.Panels (0.46.1), Fuse.Drawing.Polygons (0.46.1), Fuse.Drawing.Paths (0.46.1), Fuse.Drawing.Batching (0.46.1), Fuse.Drawing.Meshes (0.46.1), Fuse.Drawing.Primitives (0.46.1), Fuse.Effects (0.46.1), Fuse.Text (0.46.1), Fuse.Controls.Primitives (0.46.1), Fuse.Controls.ScrollView (0.46.1), Fuse.Android (0.46.1), Fuse.Controls.Navigation (0.46.1), Fuse.Controls.Video (0.46.1), Fuse.iOS (0.46.1), Fuse.Controls.WebView (0.46.1), Fuse.Desktop (0.46.1), Fuse.FileSystem (0.46.1), Fuse.Physics (0.46.1), Fuse.Selection (0.46.1), Fuse.Storage (0.46.1), Fuse.UserEvents (0.46.1), Uno.Data.Xml (0.46.0), Fuse (0.46.1), Fuse.WebSockets (0.46.1), Polyfills.Window (0.46.1), FuseJS (0.46.1), Outracks.Simulator.Protocol.Uno (0.0.0), Outracks.Simulator.Reflection.Uno (0.0.0), Outracks.Simulator.Client.Uno (0.1.0), CodeInput (0.0.0)
Output dir:   build/iOS/Preview
(2,401.74 ms)

Compiling syntax tree
../../Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(166): W4139: Uno.Content.Fonts.CharacterSets is obsolete
/Users/Christoph/Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(166,1): Warning W4139: Uno.Content.Fonts.CharacterSets is obsolete
../../Library/Application Support/Fusetools/Packages/UnoCore/0.46.1/source/uno/$.uno(95): W4139: 'Uno.Application.set_Window(Uno.Platform.Window)' is obsolete: 'Deprecated on mobile. Please interact with UI through fuselibs'
/Users/Christoph/Library/Application Support/Fusetools/Packages/UnoCore/0.46.1/source/uno/$.uno(95,1): Warning W4139: 'Uno.Application.set_Window(Uno.Platform.Window)' is obsolete: 'Deprecated on mobile. Please interact with UI through fuselibs'
../../Library/Application Support/Fusetools/Packages/Fuse.Reactive/0.46.1/$.uno(2258): W4139: 'Uno.Application.get_Current()' is obsolete: 'Application.Current class is deprecated on mobile. Please use CoreApp.Current'
/Users/Christoph/Library/Application Support/Fusetools/Packages/Fuse.Reactive/0.46.1/$.uno(2258,1): Warning W4139: 'Uno.Application.get_Current()' is obsolete: 'Application.Current class is deprecated on mobile. Please use CoreApp.Current'
../../Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(164): W4139: Uno.Content.Fonts.BitmapFont is obsolete
/Users/Christoph/Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(164,1): Warning W4139: Uno.Content.Fonts.BitmapFont is obsolete
../../Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(167): W4139: Uno.Content.Fonts.BitmapFont is obsolete
/Users/Christoph/Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(167,1): Warning W4139: Uno.Content.Fonts.BitmapFont is obsolete
../../Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(65): W4139: Uno.Content.Fonts.BitmapFont is obsolete
/Users/Christoph/Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(65,1): Warning W4139: Uno.Content.Fonts.BitmapFont is obsolete
../../Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(184): W4139: Uno.Content.Fonts.TextTransform is obsolete
/Users/Christoph/Library/Application Support/Fusetools/Packages/Fuse.Controls.Primitives/0.46.1/textcontrols/fallbacktextrenderer/$.uno(184,1): Warning W4139: Uno.Content.Fonts.TextTransform is obsolete
(1,616.86 ms)

Generating code and data
* 36 namespaces stripped.
* 168 types stripped.
* 372 fields stripped.
* 2832 functions stripped.
* 946 classes sealed.
* 1753 functions sealed.
* 90 functions stripped from vtable.
(19,284.94 ms)

FATAL ERROR: Value cannot be null.
Parameter name: source (pass --trace for stack trace)
Build ended
fuse: Failed to compile project

I downgrade my Fuse Version to 31.2 and in this version no Error occured.

I updated my system to macOS Sierra and Fuse 0.35 and still the same problem.

Please help me!

I can’t build for iOS.

Hey Scotty,

Thanks for your report. Does this also happen if you do a non-preview build using fuse build -tios? Can you share the code that reproduces this problem?

Cheers!

Hi Olle ,

I think i have the same problem as above , where i always get an error for building local preview ,

testing fuse build -tios did the build for me .

macOS Sierra - Fuse 0.35

Hey!

Does it happen when trying to preview all projects for iOS, including empty applications? If not, can you share the specific project where it happens?

yes even when creating new empty project and then try to preview from the Dashboard (Error in building )

Hmm, tough one! I just tried previewing an empty app on iOS, and it works here.

I’m also on macOS Sierra, using Fuse 0.35.

Can either of you run uno config in a terminal and paste the output here?

Hey Olle,

i created an empty app and it is not working for me.

here is the output from uno config:

Christophs-MacBook-Pro:~ Christoph$ cd "/Users/Christoph/Downloads/Test"
Christophs-MacBook-Pro:Test Christoph$ uno config
Uno 0.46.1 (build 4840) OS X 10.12 i386 3caace9

Uno settings
  Apps.Disasm                (/Applications/Fuse.app/Contents/Uno) Uno Disasm.app
  Assemblies.PerfCmp         (/Applications/Fuse.app/Contents/Uno) uno-perf-cmp.exe
  Assemblies.PerfTest        (/Applications/Fuse.app/Contents/Uno) uno-perf-test.exe
  Assemblies.Plugins         (/Applications/Fuse.app/Contents/Uno) Uno.Compiler.Extensions.dll
  Assemblies.Test            (/Applications/Fuse.app/Contents/Uno) uno-test.exe
  Assemblies.TestGen         (/Applications/Fuse.app/Contents/Uno) uno-test-gen.exe
  Assemblies.Uno             (/Applications/Fuse.app/Contents/Uno) uno.exe
  ModulesDirectory           (/Applications/Fuse.app/Contents) Modules
  Mono                       /Applications/Fuse.app/Contents/Mono/bin/mono
  Packages.Default           (/Applications/Fuse.app/Contents/Uno) Fuse
                             (/Applications/Fuse.app/Contents/Uno) FuseJS
  Packages.Feeds             https://api.fusetools.com/packages/v1/nuget/v2
  Packages.InstallDirectory  /Users/Christoph/Library/Application Support/Fusetools/Packages
  Packages.LockFiles         (/Applications/Fuse.app/Contents) uno.packages
                             (/Applications/Fuse.app/Contents) unolibs.packages
                             (/Applications/Fuse.app/Contents) fuselibs.packages
                             (/Applications/Fuse.app/Contents) Android.packages
  Packages.SearchPaths       /usr/local/share/uno/Packages
                             (/Applications/Fuse.app/Contents) ../../Packages
  Paths.AppLoader            (/Applications/Fuse.app/Contents/Uno) .
  Paths.NativeLib            (/Applications/Fuse.app/Contents/Uno) .
  SdkConfig                  /Users/Christoph/Library/Application Support/Fusetools/Fuse/Android/.sdkconfig
  TemplatesDirectory         (/Applications/Fuse.app/Contents) Templates

Config files
  /Applications/Fuse.app/Contents/Uno/.unoconfig
  /Applications/Fuse.app/Contents/Uno/common.unoconfig
  /Applications/Fuse.app/Contents/.unoconfig
  /Applications/Fuse.app/Contents/Fuse.unoconfig

.NET assemblies
  /Applications/Fuse.app/Contents/Mono/lib/mono/4.5/mscorlib.dll (4.0.0.0)
  /Applications/Fuse.app/Contents/Mono/lib/mono/4.5/System.Core.dll (4.0.0.0)
  /Applications/Fuse.app/Contents/Mono/lib/mono/4.5/System.dll (4.0.0.0)
  /Applications/Fuse.app/Contents/Uno/stuff.exe (1.2.5.0)
  /Applications/Fuse.app/Contents/Uno/Mono.Options.dll (4.0.0.0)
  /Applications/Fuse.app/Contents/Uno/AjaxMin.dll (5.14.5506.26196)
  /Applications/Fuse.app/Contents/Uno/Microsoft.Web.XmlTransform.dll (2.1.0.0)
  /Applications/Fuse.app/Contents/Uno/Minimatch.dll (1.1.0.0)
  /Applications/Fuse.app/Contents/Uno/MonoMac.dll (0.0.0.0)
  /Applications/Fuse.app/Contents/Uno/Newtonsoft.Json.dll (8.0.0.0)
  /Applications/Fuse.app/Contents/Uno/NuGet.Common.dll (3.4.3.0)
  /Applications/Fuse.app/Contents/Uno/NuGet.Core.dll (2.11.1.812)
  /Applications/Fuse.app/Contents/Uno/NuGet.Frameworks.dll (3.4.3.0)
  /Applications/Fuse.app/Contents/Uno/NuGet.Logging.dll (3.4.3.0)
  /Applications/Fuse.app/Contents/Uno/NuGet.Packaging.Core.Types.dll (3.4.3.0)
  /Applications/Fuse.app/Contents/Uno/NuGet.Packaging.Core.dll (3.4.3.0)
  /Applications/Fuse.app/Contents/Uno/NuGet.Packaging.dll (3.4.3.0)
  /Applications/Fuse.app/Contents/Uno/NuGet.Versioning.dll (3.4.3.0)
  /Applications/Fuse.app/Contents/Uno/Uno.Native.dll (1.0.0.0)
  /Applications/Fuse.app/Contents/Uno/Uno.Runtime.Core.dll (0.0.0.0)

Building a local preview is working for me.

I tried a non-preview build and i got the same error.

Christophs-MacBook-Pro:Test Christoph$ fuse build -tios
Uno 0.46.1 (build 4840) OS X 10.12 i386 3caace9

Configuring (2.1 s)
Compiling syntax tree (1.4 s)
Generating code and data (4.2 s)
FATAL ERROR: Value cannot be null.
Parameter name: source (pass --trace for stack trace)

Thanks! I can’t see anything obviously out of the ordinary there. What is the output when building/previewing when passing --trace?

Hey Olle,

i am not sure i’ve done it right.

The terminal show this output for preview:

Christophs-MacBook-Pro:~ Christoph$ cd "/Users/Christoph/Downloads/Test"
Christophs-MacBook-Pro:Test Christoph$ fuse preview -t=ios --trace
Fuse 0.35.0 (build 10867)
fuse: Could not find a fuse project to preview

and this for building:

Christophs-MacBook-Pro:Test Christoph$ fuse build -tios --trace
Uno 0.46.1 (build 4840) OS X 10.12 i386 3caace9

Configuring
Target is up-to-date -- stopping build (pass --force to override)
Building iOS app (0.0 s)
Stack trace:
  ThrowIfExceptional in (0.0)
  GetResultCore in (0.0)
  get_Result in (0.0)
  Run in (0.0)
  Build in (0.0)
  BuildNative in (0.0)
  Build in (0.0)

Originally thrown at:
  Throw in (0.0)
  ThrowForNonSuccess in (0.0)
  HandleNonSuccessAndDebuggerNotification in (0.0)
  ValidateEnd in (0.0)
  GetResult in (0.0)
  MoveNext in (0.0)

FATAL ERROR: One or more errors occurred. (pass --trace for stack trace)

Thanks! That’s helpful.

If I’m reading that trace correctly, it looks like it’s the native build script that fails.

Can you try running that manually and paste any relevant output? It will be at build/iOS/Preview/build.sh in your project directory (provided the compiler got that far).

It’s not entirely unlikely that you can open the Xcode project manually (by running e.g. open build/iOS/Preview/projectName.xcodeproj) and running from Xcode.

Hey Olle,

in my preview folder i can’t found any build.sh or .xcodeproj

i have done a screenshot from my project directory

Did you try any of the releases between 0.31 and 0.35? It’d be good to know the version where this problem was introduced.

Hey Olle,

yes i tried several releases and 31.2 ist the last version that work for me without error.

Interesting. So to clarify, 0.32 fails?

Hey Olle,

yes you are right. I have in 0.32 the same error.

I had a look at the changes we did between the 0.31 and 0.32 and couldn’t find anything obvious that would cause this, so I’m kind of out of ideas since we’re not able to reproduce the problem here.

If you have any more information that you think might be relevant or if there’s anything peculiar about your setup that would be helpful to hear.

If anyone else has this problem I’d also like to hear about it. GMB, are you still seeing this?

Hey Olle,

that is not so good now.

In addition i use Xcode Version 8.2.1 (8C1002).

A question to you how can i remove Fuse completly and reinstall it to solve this problem?

I tried to move the fuse app to trash an reinstalled fuse but the problem is still there.

And i found another bug on my Mac i can’t open the build log in the Fuse Dashboard.
When i click on the grey bar on the bottom of the Dasboard Window the Image in the top right corner is grayed out and the build log is not visible.

Hey again Scotty,

You can try the script mentioned here.

Please create new threads for separate bugs to make it easier for us to track them. :slight_smile: