Skip to content

Instantly share code, notes, and snippets.

View dzungpv's full-sized avatar

Pham Viet Dzung dzungpv

View GitHub Profile
@dzungpv
dzungpv / universal-framework.sh
Created June 12, 2016 16:09 — forked from cromandini/universal-framework.sh
This run script will build the iphoneos and iphonesimulator schemes and then combine them into a single framework using the lipo tool (including all the Swift module architectures).
#!/bin/sh
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
# Step 1. Build Device and Simulator versions
xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build
xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build
@dzungpv
dzungpv / convertLocalizable.rb
Created April 10, 2016 09:30 — forked from florianmski/convertLocalizable.rb
Convert your Localizable.strings (iOS) to strings.xml (Android)
#!/usr/bin/ruby
# based on https://github.com/tmurakam/cashflow/blob/0a01ac9e0350dfb04979986444244f8daf4cb5a8/android/convertStrings.rb
# support comments and Converter such as "%@", "%d", "%0.1f"...
# in your directory : ./main.rb Localizable.strings
file = File.open("strings.xml", "w");
file.puts "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
file.puts "<resources>"
@dzungpv
dzungpv / DeviceUID.m
Created April 10, 2016 08:25 — forked from miguelcma/DeviceUID.m
iOS Unique Device ID that persists between app reinstalls
/* DeviceUID.h
#import <Foundation/Foundation.h>
@interface DeviceUID : NSObject
+ (NSString *)uid;
@end
*/
// Device.m
@dzungpv
dzungpv / gist:76e05aaccdbf0d43cf16
Last active August 26, 2015 17:34 — forked from davidnunez/gist:1404789
list all installed packages in android adb shell
pm list packages -f
@dzungpv
dzungpv / gist:4770bfcf4c1e371e8c86
Created January 30, 2015 19:24
Crash Log Admob banner 64
Incident Identifier: F262D495-B989-4DBC-9C8D-E7FC0D0067C5
CrashReporter Key: e8e10fc13874e20fb04b07218cb80fd13ccaa3fc
Hardware Model: iPad4,5
Process: EngForKids [2390]
Path: /private/var/mobile/Containers/Bundle/Application/7EAAAABA-1982-4133-8727-A62F8AB7E6D4/EngForKids.app/EngForKids
Identifier: kidsenglish
Version: 3 (1.0)
Code Type: ARM-64 (Native)
Parent Process: debugserver [2389]