TinySolution: Fix CocoaPods duplicate implement warning
swiftc: make it support @file/-filelist
Wrap Command Line Arguments in a Response File if System Limits are Exceeded #16362
| // Run any SwiftUI view as a Mac app. | |
| import Cocoa | |
| import SwiftUI | |
| NSApplication.shared.run { | |
| VStack { | |
| Text("Hello, World") | |
| .padding() | |
| .background(Capsule().fill(Color.blue)) |
| // | |
| // SnapCarousel.swift | |
| // prototype5 | |
| // | |
| // Created by xtabbas on 5/7/20. | |
| // Copyright © 2020 xtadevs. All rights reserved. | |
| // | |
| import SwiftUI |
| env > env.txt | |
| instruments -s devices > devices.txt | |
| #! /bin/sh -e | |
| # This script demonstrates archive and create action on frameworks and libraries | |
| # Based on script by @author Boris Bielik | |
| # Release dir path | |
| OUTPUT_DIR_PATH="${PROJECT_DIR}/XCFramework" | |
| function archivePathSimulator { |
| struct Contact: Decodable, CustomStringConvertible { | |
| var id: String | |
| @NestedKey | |
| var firstname: String | |
| @NestedKey | |
| var lastname: String | |
| @NestedKey | |
| var address: String | |
| enum CodingKeys: String, NestableCodingKey { |
| import SwiftUI | |
| struct SizeKey: PreferenceKey { | |
| static func reduce(value: inout CGSize?, nextValue: () -> CGSize?) { | |
| value = value ?? nextValue() | |
| } | |
| } | |
| struct ContentView: View { | |
| @State var width: CGFloat? = nil | |
| var body: some View { |
| // | |
| // Created by ddrccw on 14-1-10. | |
| // Copyright (c) 2014年 ddrccw. All rights reserved. | |
| // refer to http://danqingdani.blog.163.com/blog/static/1860941952012102122847478/ | |
| #import <sys/stat.h> | |
| #import <mach-o/dyld.h> | |
| //#import <stdlib.h> | |
| //#import <string.h> |
| // Copyright © 2019 Ooma Inc. All rights reserved. | |
| import Foundation | |
| import RIBs | |
| import RxSwift | |
| // MARK: - Plugin | |
| public protocol Plugin: AnyObject { | |
| associatedtype Component = Dependency |
| #!/usr/bin/env python3 | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| see: https://gist.github.com/UniIsland/3346170 | |
| """ | |
| #!/bin/bash | |
| # This script checks the binary and all nested frameworks for duplicated classes (both ObjectiveC and Swift). | |
| # The script fails if it finds any duplicated classes. | |
| function print_classes() { | |
| otool -ov "$1" | | |
| sed -n '/Contents of (__DATA,__objc_classlist)/,/Contents of/p' | # all lines for (__DATA,__objc_classlist) section | |
| egrep '^[0-9]' | # take just a class header | |
| cut -d ' ' -f 3 | # take just a symbol name |