before execute, gen xcode project by
swift package generate-xcodeprojand configure the build setting as you need
then excute the script with two argument
- the name of .xcodeproj
- the sheme to gen (may be different due to auto generate xcode project)
| // | |
| // CacheAsyncImage.swift | |
| // | |
| // Created by Costantino Pistagna on 08/02/23. | |
| // | |
| import SwiftUI | |
| struct CacheAsyncImage<Content, Content2>: View where Content: View, Content2: View { | |
| private let url: URL? |
before execute, gen xcode project by
swift package generate-xcodeprojand configure the build setting as you need
then excute the script with two argument
| #!/bin/bash | |
| # Modified from the script by Justin Miller | |
| # Source: http://developmentseed.org/blog/2011/sep/02/automating-development-uploads-testflight-xcode/ | |
| API_TOKEN='<YOUR TESTFLIGHT API TOKEN>' | |
| TEAM_TOKEN='<YOUR TESTFLIGHT TEAM TOKEN>' | |
| SIGNING_IDENTITY='<YOUR SIGNING IDENTITY>' | |
| PROVISIONING_PROFILE="$HOME/Library/MobileDevice/Provisioning Profiles/<NAME-OF-YOUR-PROVISIONING-PROFILE>" |
Picking the right architecture = Picking the right battles + Managing trade-offs
| #! /bin/bash | |
| ################################################################################################################ | |
| # | |
| # Built from script found on stackoverflow, https://stackoverflow.com/questions/8170450/combine-static-libraries | |
| # | |
| # The command to merge is `libtool -static -o new.a old1.a old2.a` | |
| # | |
| ################################################################################################################ |
| // | |
| // UIStoryboard+Extensions.swift | |
| // Lucky 13 | |
| // | |
| // Created by Luke Davis on 1/17/19. | |
| // Copyright © 2019 Lucky 13. All rights reserved. | |
| // | |
| import UIKit |
| // | |
| // UICellType+Extensions.swift | |
| // Lucky 13 | |
| // | |
| // Created by Luke Davis on 1/17/19. | |
| // Copyright © 2019 Lucky 13. All rights reserved. | |
| // | |
| import Foundation |
| extension ContiguousArray { | |
| var isNotEmpty: Bool { | |
| return !self.isEmpty | |
| } | |
| } | |
| extension RandomAccessCollection { | |
| var isNotEmpty: Bool { | |
| return !self.isEmpty | |
| } |