Skip to content

Instantly share code, notes, and snippets.

View alokc83's full-sized avatar
๐Ÿš€
Open to new opportunities

Alok Choudhary alokc83

๐Ÿš€
Open to new opportunities
View GitHub Profile
*.pbxproj -crlf -diff -merge
# This script is based on the script provided at http://stackoverflow.com/questions/9258344/xcode-better-way-of-incrementing-build-number
# The only difference is, that it uses hexadecimal build numbers instead of decimal ones.
# For instructions on how to use this script, see the link above.
#!/bin/sh
if [ $# -ne 1 ]; then
echo usage: $0 plist-file
exit 1
@alokc83
alokc83 / Deploying WIM image with imagex
Created January 17, 2014 17:14
Deploying WIM image with imagex
[Use Windows PE bootable disk with imagex]
Boot From Disk
Making disk ready for imaging
Run diskpart
DISKPART> select disk 0
DISKPART> clean
delete any existing partition if any
DISKPART> select partition 1
DISKPART> delete partition
# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

Setting up a good cocoapods environment

Before you start

Make sure that you have the latest version of Xcode installed from the Mac App Store, and that you have the command line tools installed. To install the command line tools, open Xcode, click Xcode->Preferences->Downloads->Command Line Tools

Install brew if needed.

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

@alokc83
alokc83 / .gitignore
Last active August 29, 2015 14:19 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.3
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@alokc83
alokc83 / .gitignore
Last active August 29, 2015 14:20
.gitignore my file
#Ignore Crashlytics.Framework
Crashlytics.framework/
Fabric.framework/
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
@alokc83
alokc83 / submodule_app_version_gen
Created May 6, 2015 04:45
submodule process for xcode version generator
create submodule thru sourceTree
https://github.com/alokc83/Xcode-build-and-version-generator.git
under supporting_files/
In build phase add script run paste follwoing code in there
#This is to run xcode-version-generator as submodule
${SRCROOT}/supporting_files/Xcode-build-and-version-generator/xcode-build-number-generator.sh
${SRCROOT}/supporting_files/Xcode-build-and-version-generator/xcode-versionString-generator.sh
@alokc83
alokc83 / update_xcode_plugins
Last active September 4, 2015 13:25 — forked from neonichu/update_xcode_plugins
Update DVTPlugInCompatibilityUUIDs for installed plugins from Xcode 5.1 beta to final
#!/bin/sh
#ID='A16FF353-8441-459E-A50C-B071F53F51B7' # Xcode 6.2
ID='992275C1-432A-4CF7-B659-D84ED6D42D3F' # Xcode 6.3
PLIST_BUDDY=/usr/libexec/PlistBuddy
function add_compatibility() {
"$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \
"$1/Contents/Info.plist"
@alokc83
alokc83 / fix_for_transport_security
Created March 28, 2016 03:04
fix for tansport security
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>raywenderlich.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>