- Some notes about this approach:
- An OSX Installer USB drive for
Install OS X El Capitan
is created - Clover is then installed on the USB drive
- Clover Configurator is then run on the USB drive
- The USB drive contents are copied to the VM host
- VNC is used to connect to the guest UI
- An OSX Installer USB drive for
- The qxl virtual video device is used (part of the standard kvm qemu install)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
# Workaround for https://github.com/CocoaPods/CocoaPods/issues/1546 | |
post_install do |installer| | |
installer.aggregate_targets.each do |at| | |
files = at.user_targets.map{|t| | |
t.resources_build_phase.files_references.select{|f| | |
f.last_known_file_type == 'folder.assetcatalog' | |
}.map{|f| | |
Pathname.new(f.real_path).relative_path_from(f.project.path.dirname) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomCell: UITableViewCell, Reusable { | |
class var reuseIdentifier: String { | |
return "customCell" | |
} | |
} | |
class SupaHotCustomCell: CustomCell { | |
override class var reuseIdentifier: String { | |
return "supaHotCustomCell" | |
} |
- [UIViewExtension] - UIView extension for adding view border , corner radius , border color, border width and setting custom border like left,right,top and bottom borders from Storyboard.
- [UILabelCustomize] - Add the shadow to UILabel. Customize the uilabel, to add the border with color, make it round and translate the inner text to right by X.
- [UIColorHexToColor] - Convert the hex color into ios colors.
- [UIbuttonExtension] - Text padding/inset from left to UIButton.
- [buttonBorder] - IOS Add top , bottom, left and right button to button/text field.
- [buttonPadding] - Add little text padding/inset from left
- [StringExtension] - Truncate String in Swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parse.Cloud.job("localeIdentifierMigration", function(request, status) { | |
var modify = function(old) { | |
return old.replace(/_/g, "-").split("@")[0]; | |
}; | |
Parse.Cloud.useMasterKey(); | |
var query = new Parse.Query("_Installation"); | |
query.each(function(installation) { | |
var old = installation.get("localeIdentifier"); | |
if (old) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIViewController { | |
private struct AssociatedKeys { | |
static var DescriptiveName = "nsh_DescriptiveName" | |
} | |
var descriptiveName: String? { | |
get { | |
return objc_getAssociatedObject(self, &AssociatedKeys.DescriptiveName) as? String | |
} | |
set { |
This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).
Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.
Switch to the master branch and make sure you are up to date:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Switch xcrun to leverage Xcode 7 | |
# Note: This won't be needed once Xcode 7 is released | |
# and becomes the primary Xcode in use. | |
export DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer/ | |
# Export Archive | |
xcrun xcodebuild -exportArchive -exportOptionsPlist exportPlist.plist -archivePath /path/to/app.xcarchive -exportPath /path/to/app.ipa |