Skip to content

Instantly share code, notes, and snippets.

View ISO 3166-3
//
// Country.swift
// Mia
//
// Created by Grüner Martin on 07/07/16.
// Copyright © 2016 Grüner Martin. All rights reserved.
//
import Foundation
View verifyIpa.sh
codesign -d --entitlements :- "Payload/YourApp.app"
security cms -D -i "Payload/YourApp.app/embedded.mobileprovision"
codesign -dv --verbose=4 /Applications/Utilities/Terminal.app
@wuaschtikus
wuaschtikus / re-sign-ios-app.md
Created Jun 6, 2018 — forked from chaitanyagupta/re-sign-ios-app.md
How to re-sign an iOS app with another developer account
View re-sign-ios-app.md

WARNING These steps are probably out dated and will not work.

To re-sign an iOS app with another developer account, ensure that the following are in place first.

  1. Distribution certificate of the other developer account
  2. A provisioning profile from the other developer account

Note that the Apple requires bundle IDs to be globally unique, even across accounts. So a bundle ID i.e. CFBundleIdentifier from one account can't be used in a different account, even though the team id/prefix would be different.

Ensure that the new distribution certificate is in your keychain and the new provisioning profile on your disk.

View xcode_bot_post_env
XCS_BOT_NAME=MIA-CLI
XCS=1
XCS_WARNING_CHANGE=0
XCS_SOURCE_DIR=/Users/jenkins/Library/Caches/XCSBuilder/Bots/25c9a5fca1b6c9334dcf25ee5f0957c9/Source
SHELL=/bin/bash
XCS_INTEGRATION_RESULT=trigger-error
TMPDIR=/var/folders/bm/px3yfhdn0hb8bzpwt9nb2ddc0000gq/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.7ZumgVHQze/Render
XCS_TEST_FAILURE_COUNT=0
XCS_INTEGRATION_ID=25c9a5fca1b6c9334dcf25ee5f65dd80
View swift-qr-scanner
import Foundation
import AVFoundation
public class QRCodeScanner: NSObject, AVCaptureMetadataOutputObjectsDelegate {
public var callback: ((_ qrCode: String, _ corners: [CGPoint]) -> Void)?
public var captureSession: AVCaptureSession!
public var previewLayer: AVCaptureVideoPreviewLayer!
View gcmld
alias gcmld='git checkout master && git pull && comm -12 <(git branch | sed "s/ *//g") <(git remote prune origin --dry-run | sed "s/^.*origin\///g") | xargs -I{} git branch -D {}'
View swift-camera
import UIKit
import AVFoundation
class Camera: NSObject {
var captureSession: AVCaptureSession?
var currentCameraPosition: CameraPosition?
var frontCamera: AVCaptureDevice?
var frontCameraInput: AVCaptureDeviceInput?
var photoOutput: AVCapturePhotoOutput?
var rearCamera: AVCaptureDevice?