This file contains 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
import Foundation | |
import AVFoundation | |
protocol VideoCompressorProtocol { | |
func compress(fileURL: URL, outputURL: URL, completion: @escaping (URL?, Error?) -> Void) | |
} | |
class VideoCompressor: VideoCompressorProtocol { | |
func compress(fileURL: URL, outputURL: URL, completion: @escaping (URL?, Error?) -> Void) { |
This file contains 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
Basically just type the following in a shell: | |
$ irb | |
irb> require "spaceship" | |
irb> Spaceship::Tunes.login("iTunesConnect_username", "iTunesConnect_password") | |
irb> Spaceship::Tunes.select_team | |
You'll be presented with a list of teams your account belongs to, along with the numerical representation for that team. |
This file contains 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
If you've got something like this: | |
file was built for arm64 which is not the architecture being linked (x86_64): | |
Than this gist is for you. | |
Let's say you have already developed the framework itself and just want to build the binary | |
and distribute it through the Cocoapods. | |
1. Make sure your framework "Deployment Target" is equal to all the dependencies from your podspec file. |
This file contains 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
On Mac OSX, the native SSH client can use the built-in keychain directly. | |
Open terminal. | |
Write: | |
mkdir ~/.ssh | |
cd ~/.ssh | |
Copy your private key "id_rsa" to /.ssh folder. | |
Write in terminal also: |
NewerOlder