Automate Xcode build

there’s a simple way to build your Xcode project from command line:

xcodebuild

assume your project test.xcodeproj has two targets: testing and release.

Building the release target is simple:

xcodebuild -project test.xcodeproj -configuration release -target release 

Once Xcode has finished building you’ll find your .ipa in the directory

<yourproject>/build/release-iphoneos/

Fix Maverikcs “One or more items in… can’t be changed because they are in use” error

If you’re getting  “One or more items in… can’t be changed because they are in use” error copying from external disk here the easy fix: 

launch terminal and use the following command:

xattr -d com.apple.FinderInfo <filename>

Example:

xattr -d com.apple.FinderInfo Kitesurf-Mavericks.mp4