Skip to content

Instantly share code, notes, and snippets.

View bubudrc's full-sized avatar

Marcelo Perretta bubudrc

View GitHub Profile
@bubudrc
bubudrc / current output
Created April 19, 2017 14:14
current output
Building: XMProject (Release|x86)
Build started 4/19/2017 10:55:51 AM.
__________________________________________________
Project "/Users/bubudrc/Projects/XMProject/XMProject/XMProject.csproj" (Build target(s)):
Initial Properties:
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
Apple_PubSub_Socket_Render = /private/tmp/com.apple.launchd.2Es7waf5mx/Render
Building: WeatherApp.iOS (Release|iPhoneSimulator)
Build started 4/10/2017 10:53:30 PM.
__________________________________________________
Project "/Users/bubudrc/GlobalLogic/Xamarin/mobile-samples/Weather/WeatherApp/WeatherApp/WeatherApp.csproj" (Build target(s)):
Initial Properties:
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
Apple_PubSub_Socket_Render = /private/tmp/com.apple.launchd.ipy7GyoCmc/Render
@bubudrc
bubudrc / gist:3170b51234e1c0b8f5bb601641708e59
Created April 11, 2017 01:53
Compile Release in Device
Building: WeatherApp.iOS (Release|iPhone)
Build started 4/10/2017 10:48:39 PM.
__________________________________________________
Project "/Users/bubudrc/GlobalLogic/Xamarin/mobile-samples/Weather/WeatherApp/WeatherApp/WeatherApp.csproj" (Build target(s)):
Initial Properties:
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
Apple_PubSub_Socket_Render = /private/tmp/com.apple.launchd.ipy7GyoCmc/Render
@bubudrc
bubudrc / gist:9dcc5dd4d026a8f90569d89650da502e
Created April 6, 2017 14:53
Wheter App - After a Clean All
Building: WeatherApp.iOS (Debug|iPhoneSimulator)
Build started 4/6/2017 11:50:16 AM.
__________________________________________________
Project "/Users/bubudrc/GlobalLogic/Xamarin/mobile-samples/Weather/WeatherApp/WeatherApp/WeatherApp.csproj" (Build target(s)):
Initial Properties:
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
Apple_PubSub_Socket_Render = /private/tmp/com.apple.launchd.M0VFWnNfzR/Render
Building: WeatherApp.iOS (Debug|iPhone)
Build started 4/5/2017 5:49:53 PM.
__________________________________________________
Project "/Users/bubudrc/GlobalLogic/Xamarin/mobile-samples/Weather/WeatherApp/WeatherApp/WeatherApp.csproj" (Build target(s)):
Initial Properties:
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
Apple_PubSub_Socket_Render = /private/tmp/com.apple.launchd.6bHsqsbXBo/Render
Building: general_ios_app (Debug|iPhone)
Build started 3/3/2017 5:46:54 PM.
__________________________________________________
Project "/Users/bubudrc/Projects/general_ios_app/general_ios_app/general_ios_app.csproj" (Build target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: iPhone
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime' or one of its dependencies
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x00081] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System/AppDomain.cs:746
at at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName,System.Security.Policy.Evidence)
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System/AppDomain.cs:714
at at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName)
at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac
@bubudrc
bubudrc / iOS and Objective-C snippets.md
Created February 3, 2016 17:16
Useful iOS and Objective-C snippets

iOS and Objective-C snippets

Move content from underneath the navigationBar (iOS 7)

if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) {
    [self setEdgesForExtendedLayout:UIRectEdgeRight|UIRectEdgeBottom|UIRectEdgeLeft];
}

Change the color of the back arrow in navigationBar (iOS 7)

@bubudrc
bubudrc / gist:d387d6c16ed522805d3d
Created December 23, 2015 21:05
SNIPPETS - Script to use on Xcode
# HIGHLIGHT YOUR TODOS, FIXMES, & ERRORS IN XCODE
TAGS="TODO:|FIXME:"
ERRORTAG="ERROR:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | perl -p -e "s/($ERRORTAG)/ error: \$1/"
# ------------------------------------------
# CHANGE BUILD VERSION
# This splits a two-decimal version string, such as "0.45.123", allowing us to increment the third position.
# Dont forget to change the number on BUIL input (Target -> General -> Build)
VERSIONNUM=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
@bubudrc
bubudrc / CurrentTopVC.m
Created September 17, 2015 15:30 — forked from snikch/gist:3661188
Find the current top view controller for your iOS application
- (UIViewController *)topViewController{
return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController];
}
- (UIViewController *)topViewController:(UIViewController *)rootViewController
{
if (rootViewController.presentedViewController == nil) {
return rootViewController;
}