iOS build/preview failed due _OBJC_CLASS_$_WKWebView

Hi there. I got a problem building for IOS. the local preview works fine but when I try to preview or build it on a phone it gives me this error:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_WKWebView", referenced from:
      objc-class-ref in Fuse.iOS.Controls.WKWebViewHelpers.o
ld: symbol(s) not found for architecture arm64

I got a presentation monday morning and got no clue how to solve this issue. Appreciate help.

the full print is:

Building iOS app
=== BUILD TARGET clan OF PROJECT clan WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies

Ld build/clan.build/Release-iphoneos/clan.build/Objects-normal/arm64/clan normal arm64
    cd /Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/Release-iphoneos -L/usr/local/share/uno/Packages/UnoCore/0.32.2/prebuilt/iOS/lib/Release-iphoneos -F/Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/Release-iphoneos -filelist /Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/clan.build/Release-iphoneos/clan.build/Objects-normal/arm64/clan.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=7.0 -dead_strip -lfreetype -ljpeg -lobjc -lpng -luBase -luImage -lXliMain -lXliPlatform -lz -stdlib=libc++ -fobjc-link-runtime -framework AudioToolbox -framework AVFoundation -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreText -framework CoreVideo -framework Foundation -framework GLKit -framework JavaScriptCore -framework OpenGLES -framework QuartzCore -framework UIKit -Xlinker -dependency_info -Xlinker /Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/clan.build/Release-iphoneos/clan.build/Objects-normal/arm64/clan_dependency_info.dat -o /Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/clan.build/Release-iphoneos/clan.build/Objects-normal/arm64/clan
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_WKWebView", referenced from:
      objc-class-ref in Fuse.iOS.Controls.WKWebViewHelpers.o
ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ld build/clan.build/Release-iphoneos/clan.build/Objects-normal/armv7/clan normal armv7
    cd /Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/Release-iphoneos -L/usr/local/share/uno/Packages/UnoCore/0.32.2/prebuilt/iOS/lib/Release-iphoneos -F/Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/Release-iphoneos -filelist /Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/clan.build/Release-iphoneos/clan.build/Objects-normal/armv7/clan.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=7.0 -dead_strip -lfreetype -ljpeg -lobjc -lpng -luBase -luImage -lXliMain -lXliPlatform -lz -stdlib=libc++ -fobjc-link-runtime -framework AudioToolbox -framework AVFoundation -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreText -framework CoreVideo -framework Foundation -framework GLKit -framework JavaScriptCore -framework OpenGLES -framework QuartzCore -framework UIKit -Xlinker -dependency_info -Xlinker /Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/clan.build/Release-iphoneos/clan.build/Objects-normal/armv7/clan_dependency_info.dat -o /Users/helderaraujo/MyCode/Git/newsmonitorApps/flag/build/iOS/Debug/build/clan.build/Release-iphoneos/clan.build/Objects-normal/armv7/clan
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_WKWebView", referenced from:
      objc-class-ref in Fuse.iOS.Controls.WKWebViewHelpers.o

** BUILD FAILED **

by the way the stack is uptodate. latest everything:

fuse 0.23.0 (build 7041) Uno 0.32.2 (build 3045) Xcode 7.3.1 OS X 10.11.6 iOS 9.3.4

Fuse.Controls.WebView (0.32.14)

full uno spec:

Uno 0.32.2 (build 3045) OS X 10.11 i386 2c7172c

Configuring
Project file: clan.unoproj
Search paths: /usr/local/share/uno/Packages, /Applications/Fuse.app/Contents/Packages
Packages:     UnoCore (0.32.2), Uno.Collections (0.32.1), Uno.Data.Xml (0.32.1), Uno.Geometry (0.32.1), Uno.Threading (0.32.2), Uno.Net.Http (0.32.2), Fuse.Designer (0.32.14), ObjC (0.32.1), Experimental.iOS (0.32.1), Uno.Net.Sockets (0.32.2), FuseCore (0.32.14), Fuse.Drawing (0.32.14), Fuse.Motion (0.32.14), Fuse.Animations (0.32.14), Fuse.Scripting (0.32.14), Fuse.Triggers (0.32.14), Fuse.Controls.Native (0.32.14), Fuse.Drawing.Batching (0.32.14), Fuse.Drawing.Meshes (0.32.14), Fuse.Drawing.Planar (0.32.14), Experimental.TextureLoader (0.32.1), Experimental.Http (0.32.14), Fuse.Elements (0.32.14), Fuse.Drawing.Primitives (0.32.14), Fuse.Drawing.Polygons (0.32.14), Fuse.Drawing.Paths (0.32.14), Fuse.Entities (0.32.14), Fuse.Gestures (0.32.14), Fuse.Navigation (0.32.14), Uno.Data.Json (0.32.1), Uno.Testing (0.32.2), Fuse.Scripting.Duktape (0.32.14), Fuse.Scripting.JavaScriptCore (0.32.14), Fuse.Scripting.Jurassic (0.32.14), Fuse.Scripting.V8 (0.32.14), Fuse.Reactive (0.32.14), Fuse.Controls (0.32.14), Fuse.Controls.Panels (0.32.14), Fuse.Controls.ScrollView (0.32.14), Fuse.Effects (0.32.14), Fuse.Controls.Primitives (0.32.14), Fuse.Android (0.32.14), Fuse.Controls.Navigation (0.32.14), Fuse.Controls.Video (0.32.14), Android (0.32.1), Fuse.iOS (0.32.14), Fuse.Controls.WebView (0.32.14), Fuse.Desktop (0.32.14), Fuse.Physics (0.32.14), Fuse.Storage (0.32.14), Fuse.UserEvents (0.32.14), Fuse (0.32.14), Fuse.Platform (0.32.14), Polyfills.Window (0.32.14), FuseJS (0.32.14), clan (0.0.0)
Output dir:   build/iOS/Debug
(5,148.73 ms)

Compiling syntax tree (3,706.63 ms)
Generating code and data
* 342 namespaces stripped.
* 3180 types stripped.
* 2021 fields stripped.
* 39025 functions stripped.
* 455 classes sealed.
* 1049 functions sealed.
* 67 functions stripped from vtable.
(6,952.27 ms)

Hey Helder, and thanks for your report.

That’s weird. Are you setting the deployment target? Looks like you’re setting it to iOS 7, which is not officially supported by Fuse. Specifically, the WKWebView class that we use for the web view on iOS is only available since iOS 8.

Hope that helps!

Success! it works with "DeploymentTarget": "8.0",