Skip to content

Instantly share code, notes, and snippets.

@cryophobia
cryophobia / gist:a35e5d5d73d17f5b0a46
Last active November 6, 2015 11:32
Adding Force Touch
void DrawLine (CGPoint pt1, CGPoint pt2, UIColor color, nfloat forcePercentage)
{
UIGraphics.BeginImageContext (imgDraw.Frame.Size);
using (var g = UIGraphics.GetCurrentContext ())
{
imgDraw.Layer.RenderInContext (UIGraphics.GetCurrentContext ());
var path = new CGPath ();
using System;
using System.Collections.Generic;
namespace ObliterateFolders {
class MainClass {
public static void Main(string[] args) {
TraverseTree(args[0]);
Console.WriteLine("Press any key");
Console.ReadKey();
ERROR[2016-09-13 07:08:57Z]: uncaught exception
Xamarin.MacDev.HostingException: Could not load the framework 'IDEFoundation' (path: /Applications/Xcode.app/Contents/Developer/../Frameworks/IDEFoundation.framework/IDEFoundation): dlopen(/Applications/Xcode.app/Contents/Developer/../Frameworks/IDEFoundation.framework/IDEFoundation, 1): Library not loaded: @rpath/DVTAnalytics.framework/Versions/A/DVTAnalytics
Referenced from: /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation
Reason: image not found
at Xamarin.MacDev.MacServices.LoadFramework (System.String framework) [0x0007a] in /Users/builder/data/lanes/3460/95785b77/source/profiler/external/maciostools/Xamarin.MacDev.Ide/MacServices.cs:140
at Xamarin.MacDev.MacServices.LoadFrameworks () [0x000dd] in /Users/builder/data/lanes/3460/95785b77/source/profiler/external/maciostools/Xamarin.MacDev.Ide/MacServices.cs:71
at Xamarin.MacDev.MacServices.Initialize (Boolean enable_xcode_plugins) [0x00063] in /Users/bu
Rebuilding...
Cleaning: Meridian.Android (Debug)
Build started 2016/09/13 7:38:54 PM.
__________________________________________________
Project "/Users/chris/Projects/OfficeHours/Meridian 2/Meridian.Android/Meridian.Android.csproj" (Clean target(s)):
/Users/chris/Projects/OfficeHours/Meridian 2/Meridian.Android/Meridian.Android.csproj: warning : Target '_UpdateAndroidResgen', not found in the project
@cryophobia
cryophobia / gist:c979b810e4dd8a3260cbb9ba449533c2
Created September 13, 2016 18:01
Meridian Binding with Diagnostics
Rebuilding...
Cleaning: Meridian.Android (Debug)
Build started 2016/09/13 7:59:48 PM.
__________________________________________________
Project "/Users/chris/Projects/OfficeHours/Meridian 2/Meridian.Android/Meridian.Android.csproj" (Clean target(s)):
Initial Properties:
Xamarin Studio Enterprise
Version 6.1 (build 5436)
Installation UUID: 11e12a40-e2e3-4e32-ba34-ce09aa5f30c3
Runtime:
Mono 4.6.0 (mono-4.6.0-branch/dea2155) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 406000243
NuGet
@cryophobia
cryophobia / gist:8b9c3e24156bba38326b0bfa38e84925
Last active October 31, 2016 09:14
iOS test running Xamarin.UITest version: 2.0.0.1543
31-10-2016 11:11:22.849 +02:00 - 4 - iOS test running Xamarin.UITest version: 2.0.0.1543
31-10-2016 11:11:22.857 +02:00 - 12 - Attempting IDE connection for iOS: /Users/chris/Desktop/Course_Materials/XTC103 - Deploying to Test Cloud/Lab Materials/Part 01 Resources/TaskyPro/TaskyUITests/bin/Debug/TaskyUITests.dll.
31-10-2016 11:11:22.952 +02:00 - 107 - Attempting IDE connection through pipe fcad2ada2eae47e5a97786eb88ba23f0.
31-10-2016 11:11:22.972 +02:00 - 127 - Deploying app through IDE.
31-10-2016 11:11:22.973 +02:00 - 128 - Instructing the IDE to prepare the test app for execution. Session: Assembly=/Users/chris/Desktop/Course_Materials/XTC103 - Deploying to Test Cloud/Lab Materials/Part 01 Resources/TaskyPro/TaskyUITests/bin/Debug/TaskyUITests.dll
Platform=iOS
31-10-2016 11:11:54.541 +02:00 - 31698 - Skipping local screenshots. Can be enabled with EnableScreenshots() when configuring app.
31-10-2016 11:11:54.822 +02:00 - 31979 - Artifact folder: /var/folders/1l/j9v5cw4d3zzdwtjx048kmjvh0000gn/T/uitest/a-915
@cryophobia
cryophobia / gist:ace5ae71a5948594f6d7901525a67c14
Created April 20, 2017 11:26
object_setClass - Type ObjCRuntime.Class which is passed to unmanaged code must have a StructLayout attribute.
using System;
using System.Runtime.InteropServices;
using AVKit;
using Foundation;
using ObjCRuntime;
namespace Xamarin_ios_language_manager
{
public class ExtendedBundle : NSBundle
{
Xamarin.IoT.Debugging.IoTDebuggerSession Information: 0 : Preparing to launch application IOTTest...
Xamarin.Messaging.Ssh.SshCommandRunner Verbose: 0 : Executing SSH command 'ls "/home/pi/Library/Caches/Xamarin/mtbs/builds/IOTTest"'...
Xamarin.Messaging.Ssh.SshCommandRunner Verbose: 0 : Executing SSH command '/bin/bash -c 'find "/home/pi/Library/Caches/Xamarin/mtbs/builds/IOTTest/" -type f | while read line ; do md5sum "$line" | awk "{ print $1 }" ; done''...
Xamarin.Messaging.Ssh.MessagingCommands{System.String} Verbose: 0 : Computing local checksum of /Users/chris/Desktop/IOTTest/IOTTest/bin/Debug in /Users/chris/Desktop/IOTTest/IOTTest/bin/Debug/net461. Files to compute: 9
Xamarin.Messaging.Ssh.MessagingCommands{System.String} Verbose: 0 : Integrity check succeeded for /home/pi/Library/Caches/Xamarin/mtbs/builds/IOTTest
Xamarin.IoT.Debugging.IoTDebuggerSession Information: 0 : Launching application IOTTest...
Xamarin.Messaging.Ssh.SshCommandRunner Verbose: 0 : Executing SSH command 'sudo /usr/bin/mono --
Rebuilding...
Cleaning Solution: WeatherSDK (Debug)
Build started 2017/07/28 1:04:49 PM.
__________________________________________________
Project "/Users/chris/Projects/XamU/iOSBindings/BindingsWeatherCS/WeatherSDK/WeatherSDK/WeatherSDK.csproj" (Clean target(s)):
Build succeeded.