Posts

Generate password for altool and upload build (ipa) to TestFlight and using altool

Image
Login to https://appleid.apple.com/   Generate APP-SPECIFIC PASSWORD Save generated password as later it will not be able to view and edit Use generated password in the altool . Example:   xcrun altool --validate-app -f best/my/app.ipa -u username@mail.com -p "APP-SPECIFIC-PASSWORD" Notes: After changing users password all app specific passwords will be revoked. 

Xcode Server build number incrementation

Image
To increment build number in the Xcode Server I am using  Set: Current Project Version = 1 and Version System = Apple Generic . Can be found more in Apple documentation .  Right click on the bot and choose Edit Bot...   Open Triggers  tab and add Pre-Integration Script  Give a name  (example: Set Build Version) and write script:  # Change directory to project path   cd $XCS_PRIMARY_REPO_DIR  # Set build version same as integration number xcrun agvtool new-version -all $XCS_INTEGRATION_NUMBER  
git auto-completion: Open .bash_profile: vi ~/.bash_profile Add script execution lines: if [ -f ~/.git-completion.bash ]; then   . ~/.git-completion.bash fi # Git branch in prompt. parse_git_branch() {     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " #End Git branch in promt.
TextMate support for git commit command: Open .bash_profile: vi ~/.bash_profile Insert command to support TextMate: # ------------------------ # TextMate support for git export PATH="$HOME/bin:$PATH" export EDITOR="$HOME/bin/mate -w" # End TextMate support for git # ----------------------------

symbolicatecrash from terminal

Put *.crash, *.dSYM and *.app file to one folder. After that execute symbolicatecrash method as shown below: symbolicatecrash -v crash.crash > Symbolicated.crash Xcode 8:  /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash Xcode 7:  /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/ symbolicatecrash

FFMPEG

Print out media metadata:  ffprobe -v quiet -print_format json -show_format -show_streams output1200x900.mov {     "streams": [         {             "index": 0,             "codec_name": "prores",             "codec_long_name": "ProRes",             ...         },         {             "index": 1,             "codec_name": "aac",             "codec_long_name": "AAC (Advanced Audio Coding)",             ...         }     ],     "format": {         "filename": "output1200x900.mov",         "nb_streams": 2,         ...     } } Convert codec to H.264:  ffmpeg -i 1080x1920.mov -vcodec libx264 1080x1920output.mov Add sound to video:  ffmpeg -i input.mov -i sound.m4a -c copy -map 0:0 -map 1:0 -shortest output.mov Decrease video file size:  ffmpeg -i in.mp4 -vcodec libx264 -crf 30 out_

Open SSL

Save certificate: openssl s_client -showcerts -connect server.edu:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >mycertfile.pem