One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/bin/bash -e | |
# | |
# package-ipa.sh | |
# | |
# Bundles an iOS app correctly, using the same directory structure that Xcode does when using the export functionality. | |
# | |
xcarchive="$1" | |
output_ipa="$2" |
It has been brought to my attention that there was more use for the unintended values()
functionality that I had outline in my "Other Languages" Java example below.
On the Swift Evolution mailing list, one developer outlined their requirement to loop through an array of enum
case values to add different states to objects.
Another example where a values
array would be useful if the developer wants to do something different for each different case, such as setting an image on a UIButton
subclass for each different UIControlState
#!/usr/bin/env bash | |
if [ -z "$BUILDKITE_AGENT_TOKEN" ]; then | |
echo | |
>&2 echo "No buildkite agent token set! Set BUILDKITE_AGENT_TOKEN" | |
exit 1 | |
fi | |
touch ~/.ssh/authorized_keys | |
chmod 700 ~/.ssh |
module Nested exposing (api) | |
import Json.Decode exposing (at, int, string, list, decodeString, Decoder) | |
import Json.Decode.Pipeline exposing (decode, required, optional, hardcoded) | |
data : String | |
data = | |
""" | |
{"languages": |
In Swift there's a message in "Test Target" that states that the bridging header will be removed in newer versions of swift. I'm using mixed objc and swift clasess, but the UnitTest class is a swift file. Using @testable key was there in code
@testable import YourProject
You fix it by adding in your Test area the bridging header with objc headers that your test will use:
// Here is a usage example. Refer to ImagePicker.swift below for the implementation! | |
// 1. Easily configure the picker | |
let cameraPicker = ImagePicker(sourceType: .camera) | |
let cropPicker = ImagePicker(sourceType: .photoLibrary, allowsEditing: true) | |
// Automatically includes both kUTTypeImage and kUTTypeLivePhoto | |
let livePhotoPicker = ImagePicker(sourceType: .photoLibrary, mediaTypes: [.livePhotos]) | |
// 2. Use the picker |
Here's what I carry in a Tom Bihn Synapse 19 bag when I travel for 1-to-n days. In general, I optimize for low-weight items, with a secondary focus on reducing maintenance. You can peruse a gallery of pictures, too.
#!/bin/bash | |
# taken from blog post: http://www.mokacoding.com/blog/automatic-xcode-versioning-with-git/ | |
# Automatically sets version of target based on most recent tag in git | |
# Automatically sets build number to number of commits | |
# | |
# Add script to build phase in xcode at the top of the chain named "set build number" | |
# put this script in the root of the xcode project in a directory called scripts (good idea to version control this too) | |
# call the script as $SRCROOT/scripts/set_build_number.sh in xcode |