Open haaanz opened 5 years ago
Did you actually add the Xamarin.Forms NuGet package to your workbook?
yes, after creating new iOS Xamarin Form workbook there is Xamarin.Forms package added automatically. I even try to delete it and add it again. Both with same error.
One more think, same workbook works for Android.
Steps to Reproduce
Expected Behavior
empty page in iOS simulator
Actual Behavior
iOS simulator display empty page but there is an error: TypeLoadException: Could not load type of field '🐵0000#0-1:page' (0) due to: Could not load file or assembly 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null type: member:(null) signature:
Environment
Xamarin Workbooks
System Info
System-Installed Software
Log File
Xamarin Workbooks Copyright 2016-2018 Microsoft. All rights reserved. Copyright 2014-2016 Xamarin Inc. All rights reserved. ├─ Version: 1.4.3 ├─ Date: 7/9/2018 11:20:18 PM ├─ Hash: db27525ac40c50f7f96740bd037eb365515ed003 ├─ Branch: 1.4-release └─ Lane: Workbooks & Inspector (Mac)
[Info][00:00:00.0267440] ClientApp (Initialize): AppSessionId: 77a028bf-7b05-47e4-8fd0-dda7bf68b337 @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/ClientApp.cs:112 [Info][00:00:00.1888440] Telemetry (.ctor): Machine ID: a4379b07a1877356ed410f638d04effa6ba1ac5b93670d526aca3740ece0f0a4 @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/Telemetry/Client.cs:86 [Info][00:00:00.3993970] UpdaterService (CheckForUpdatesInBackground): checking for updates @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/Client/Updater/UpdaterService.cs:257 [Info][00:00:00.5154690] SessionDocument (ReadFromUrl): url: file:///Volumes/Transcend/Downloads/test.workbook, typeName: com.xamarin.workbook @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client.Mac/SessionDocument.cs:123 [Info][00:00:00.9081440] WorkbookAppInstallation (LocateWorkbookApps): Loading workbook apps from manifest: /Applications/Xamarin Workbooks.app/Contents/SharedSupport/WorkbookApps/workbookapps.json @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/WorkbookAppInstallation.cs:215 [Info][00:00:01.1204000] SessionDocument (MakeWindowControllers): Created Xamarin.Interactive.Client.Mac.SessionWindowController @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client.Mac/SessionDocument.cs:66 [Info][00:00:01.2428910] MessageViewController (LogMessage): PushMessage => Status: Loading workbook… @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Messages/MessageViewController.cs:129 [Info][00:00:01.4530010] MessageViewController (LogMessage): PushMessage => Status: Loading workbook… @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Messages/MessageViewController.cs:129 [Info][00:00:01.4534940] UpdaterService (CheckForUpdatesInBackground): no updates are available @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/Client/Updater/UpdaterService.cs:267 [Info][00:00:02.0522820] MessageViewController (LogMessage): PushMessage => Status: Loading workbook… @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Messages/MessageViewController.cs:129 [Info][00:00:02.2920530] MessageViewController (LogMessage): PushMessage => Status: Loading workbook… @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Messages/MessageViewController.cs:129 [Info][00:00:02.7659060] MessageViewController (LogMessage): PushMessage => Status: Loading workbook… @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Messages/MessageViewController.cs:129 [Info][00:00:03.3725070] MessageViewController (LogMessage): PushMessage => Status: Connecting to agent… @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Messages/MessageViewController.cs:129 [Info][00:00:03.3857860] MessageViewController (LogMessage): PushMessage => Status: Checking for usable iOS simulators… @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Messages/MessageViewController.cs:129 [Info][00:00:03.4112030] MTouchSdkTool (RunToolAsync): /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mlaunch -sdkroot "/Applications/Xcode.app/" --listsim="/var/folders/f7/39jf2t7s7r15zr8q0v4n18xm0000gn/T/tmp32b735bb.tmp" @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.MTouch/MTouchSdkTool.cs:192 [Info][00:00:06.5187080] iOSAgentProcess (StartSimulatorOnMainThread): /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mlaunch -vvvv -sdkroot /Applications/Xcode.app/ -launchsim /Applications/Xamarin Workbooks.app/Contents/SharedSupport/WorkbookApps/iOS/Xamarin.Workbooks.iOS.app -sdk 11.4 -device iphone,64 -argument -xiais-request-uri -argument http://127.0.0.1:49530/api/identify?clientPid=68399&token=2877ede3-8718-4f34-b146-bf44254a9ae2 @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client.Mac/AgentProcesses/iOSAgentProcess.cs:82 [Info][00:00:15.6073990] MessageViewController (LogMessage): PushMessage => Status: Preparing workspace… @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Messages/MessageViewController.cs:129 Xamarin Workbook App (127.0.0.1:65263) => [Info][00:00:00.2304020] iOSAgent (Start): iOS 'Xamarin Workbook App' is available for interaction: xamarin-interactive://127.0.0.1:65263/v1?agentType=iOS&sessionKind=Workbook @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Core/Agent.cs:285 Xamarin Workbook App (127.0.0.1:65263) => [Info][00:00:00.6065710] iOSAgent (ChangeDirectory): /Users/honza/Library/Developer/CoreSimulator/Devices/10EE42ED-1E61-4FBB-8212-E017935048DE/data/Containers/Bundle/Application/DBB16DC2-658E-4B90-AA36-CC7A89D7AA8F/Xamarin.Workbooks.iOS.app → /Volumes/Transcend/Downloads @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Core/Agent.cs:333 [Info][00:00:15.7160020] CompilationWorkspaceFactory (CreateDependencyResolver): Searching assembly path /Applications/Xamarin Workbooks.app/Contents/SharedSupport/WorkbookApps/iOS/Xamarin.Workbooks.iOS.app @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/Compilation/CompilationWorkspaceFactory.cs:130 [Info][00:00:15.7170030] CompilationWorkspaceFactory (CreateDependencyResolver): Searching assembly path /Applications/Xamarin Workbooks.app/Contents/SharedSupport/WorkbookApps/iOS/Xamarin.Workbooks.iOS.app/Facades @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/Compilation/CompilationWorkspaceFactory.cs:130 [Info][00:00:17.5142820] MessageViewController (LogMessage): PushMessage => Status: Restoring packages… @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/Messages/MessageViewController.cs:129 [Info][00:00:17.5997840] InteractivePackageManager (.ctor): Enumerating NuGet source repositories @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/NuGet/InteractivePackageManager.cs:98 [Info][00:00:17.6206120] InteractivePackageManager (.ctor): [Official NuGet Gallery] https://www.nuget.org/api/v2/ (ignored) @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/NuGet/InteractivePackageManager.cs:91 [Info][00:00:17.6211920] InteractivePackageManager (.ctor): [nuget.org] https://api.nuget.org/v3/index.json (primary) @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/NuGet/InteractivePackageManager.cs:91 [Info][00:00:17.6747010] NuGet (Log): Restoring packages for /Users/honza/Library/Caches/com.xamarin.Workbooks/package-manager... @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/NuGet/InteractivePackageLogger.cs:40 Xamarin Workbook App (127.0.0.1:65263) => [Warning][00:00:03.4306330] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Forms.Platform.iOS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/CodeAnalysis/AssemblyLoadRequest.cs:63 Xamarin Workbook App (127.0.0.1:65263) => [Warning][00:00:03.4314030] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/CodeAnalysis/AssemblyLoadRequest.cs:63 Xamarin Workbook App (127.0.0.1:65263) => [Warning][00:00:03.4314630] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/CodeAnalysis/AssemblyLoadRequest.cs:63 Xamarin Workbook App (127.0.0.1:65263) => [Error][00:00:03.4456150] AssemblyLoadRequest (HandleAsync): Could not load sent assembly Xamarin.Interactive.Forms.iOS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: Could not load file or assembly 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.: System.IO.FileNotFoundException: Could not load file or assembly 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. File name: 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' at Xamarin.Interactive.CodeAnalysis.EvaluationContext.CheckLoadedAssemblyForAgentIntegration (System.Reflection.Assembly assembly) [0x000bf] in:0
at Xamarin.Interactive.CodeAnalysis.EvaluationContext.HandleAssemblyResolved (System.Reflection.Assembly assembly, Xamarin.Interactive.CodeAnalysis.AssemblyDefinition remoteAssembly) [0x00000] in :0
at Xamarin.Interactive.CodeAnalysis.EvaluationAssemblyContext.HandleAssemblyLoad (System.Object sender, System.AssemblyLoadEventArgs args) [0x00053] in :0
at (wrapper delegate-invoke) .invoke_void_object_AssemblyLoadEventArgs(object,System.AssemblyLoadEventArgs)
at System.AppDomain.DoAssemblyLoad (System.Reflection.Assembly assembly) [0x00016] in :0
at (wrapper managed-to-native) System.Reflection.Assembly.LoadFrom(string,bool)
at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in :0
at Xamarin.Interactive.CodeAnalysis.AssemblyLoadRequest.HandleAsync (Xamarin.Interactive.Core.Agent agent) [0x00074] in :0 @ /Users/builder/vsts-agent/_work/2/s/Agents/Xamarin.Interactive/CodeAnalysis/AssemblyLoadRequest.cs:73
[Warning][00:00:18.5280780] CompilationWorkspaceFactory (LoadFormsAgentExtensions): Xamarin.Forms reference detected, but integration may not have loaded properly. Assemblies that did not load: Xamarin.Forms.Platform.iOS, Xamarin.Forms.Platform, Xamarin.Forms.Core, Xamarin.Interactive.Forms.iOS @ /Users/builder/vsts-agent/_work/2/s/Clients/Xamarin.Interactive.Client/Compilation/CompilationWorkspaceFactory.cs:113