MLeaksFinder & FBRetainCycleDetector

MLeaksFinder

MLeaksFinder helps you find memory leaks in your iOS apps at develop time. It can automatically find leaks in UIView and UIViewController objects, present an alert with the leaked object in its View-ViewController stack when leaks happening. More over, it can try to find a retain cycle for the leaked object using FBRetainCycleDetector. Besides finding leaks in UIView and UIViewController objects, developers can extend it to find leaks in other kinds of objects.
https://github.com/Zepo/MLeaksFinder

Remove Proxy git terminal

git config --global --unset http.proxy

git config --global --unset https.proxy

to get the list of all proxy defined,
git config --global -l

Amazon Cognito là gì?

Amazon Cognito

Clean Code and User Multiple Storyboards (TO NO CONFLICT .storyboard )

import Foundation
import UIKit

enum AppStoryboard : String {

case Main

var instance : UIStoryboard {

return UIStoryboard(name: self.rawValue, bundle: Bundle.main)
}

func viewController(viewControllerClass : T.Type, function : String = #function, line : Int = #line, file : String = #file) -> T {

let storyboardID = (viewControllerClass as UIViewController.Type).storyboardID

guard let scene = instance.instantiateViewController(withIdentifier: storyboardID) as? T else {

NotificationCenter keyboard show hide

func setupViewResizerOnKeyboardShown() {

UITextfield leftView/rightView padding on iOS7,Create space at the beginning of a UITextField

//
// PaddingTextField.swift
// Snapo
//
// Created by mhtran on 5/3/17.
// Copyright © 2017 mhtran. All rights reserved.
//

import Foundation
import UIKit
class PaddingTextField: UITextField {

let padding = UIEdgeInsets(top: 0, left: 5, bottom: 0, right: 5);

override func textRect(forBounds bounds: CGRect) -> CGRect {
return UIEdgeInsetsInsetRect(bounds, padding)
}

Search git commit log

Search git commit log

git log | grep -b3 "Wellcome"

framework not found Pods

2
down vote
This happened to me after updating my Podfile and doing a pod update.

For some reason, I had a "Pods_[ProjectName]".framework file appear under my project under 'Targets' > General > Linked Frameworks and Libraries.

Deleting this and then clean/rebuilding fixed the issue.

http://stackoverflow.com/questions/29865899/ld-framework-not-found-pods

.framework contains unsupported architectures '[x86_64, i386]'."

http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dyna...

add to buildScript :

APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"

find duplicate files mac terminal ProjectXcode

Another option is to use fdupes:

brew install fdupes
fdupes -r .
fdupes -r . finds duplicate files recursively under the current directory. Add -d to delete the duplicates — you'll be prompted which files to keep; if instead you add -dN, fdupes will always keep the first file and delete other files.

Pages

Subscribe to Trần Mạnh Hoàng RSS