Skip to content

Instantly share code, notes, and snippets.

View lucascorrea's full-sized avatar
🇧🇷

Lucas Correa lucascorrea

🇧🇷
View GitHub Profile
@lucascorrea
lucascorrea / CountryHelper.swift
Last active March 9, 2019 11:51
List of the countries - Name, codeAlpha2, codeAlpha3, numericCode, latitude, longitude
//
// CountryHelper.swift
// Umbrella
//
// Created by Lucas Correa on 07/03/2019.
// Copyright © 2019 Security First. All rights reserved.
//
import Foundation
@lucascorrea
lucascorrea / Fastfile
Last active June 13, 2021 20:13
Fastfile to use with SonarQube - Coverage | Swift 4.1
require 'fileutils'
default_platform(:ios)
platform :ios do
before_all do
if !File.exists? "../DerivedData"
Dir.mkdir "../DerivedData"
end
@lucascorrea
lucascorrea / debug_constraints.md
Last active June 6, 2016 18:18
Debug Constraints

You'll want to add a Symbolic Breakpoint. Apple provides an excellent guide on how to do this.

1 Open the Breakpoint Navigator cmd+7

2 Click the Add button in the lower left

3 Select Add Symbolic Breakpoint...

4 Where it says Symbol just type in UIViewAlertForUnsatisfiableConstraints

@lucascorrea
lucascorrea / UIAutomation Test
Last active August 29, 2015 14:22
Xcode 6.3.2 command line invocation of UIAutomation Test - Mandatory -t -w -e
instruments -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate"
-w "iPhone 5s (8.3 Simulator)"
"/Users/lucas/Library/Developer/CoreSimulator/Devices/2483020B-7BC7-4958-AEE8-8F0FBFD08DD5/data/Containers/Bundle/Application/B1730E63-8730-43DB-8848-9282B0434493/MOB2all.app"
-e UIASCRIPT "Scenariums/logsTest.js"
@lucascorrea
lucascorrea / Build automatic Testflighapp via xcode
Created September 6, 2014 18:43
Build automatic Testflighapp via xcode
#!/bin/bash
#
# (Above line comes out when placing in Xcode scheme)
#
# gem install terminal-notifier and sudo gem install terminal-notifier
API_TOKEN=""