This file has been truncated, but you can view the full 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
## SPM dependency on binary target | |
All symbols are statically linked into main app executable (including those from the source dependencies of the xcframework): | |
<details> | |
<summary>File tree</summary> | |
<br> | |
``` | |
/Users/nickcooke/Library/Developer/Xcode/DerivedData/MyCoolApp-bqbfovegifzmirbdbxmtoafjnnrc/Build/Products/Release-iphoneos/MyCoolApp.app |
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
[37m[1mdebug: [0m/usr/bin/xcrun --sdk macosx --show-sdk-path | |
[37m[1mdebug: [0m/usr/bin/xcrun --sdk macosx --show-sdk-platform-path | |
[37m[1mdebug: [0m/usr/bin/xcrun --find swiftc | |
[37m[1mdebug: [0m/Applications/Xcode_15-beta-5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -print-target-info | |
[37m[1mdebug: [0m/usr/bin/xcrun --find libtool | |
[37m[1mdebug: [0m/usr/bin/xcrun vtool -show-build /Users/nickcooke/Library/Developer/Xcode/DerivedData/swift-package-manager-fnxfxyeqhuuelohbuxseapweetoa/Build/Products/Debug/PackageFrameworks/PackageDescription.framework/PackageDescription | |
[37m[1mdebug: [0m/usr/bin/xcrun vtool -show-build /Users/nickcooke/Library/Developer/Xcode/DerivedData/swift-package-manager-fnxfxyeqhuuelohbuxseapweetoa/Build/Products/Debug/PackageFrameworks/PackagePlugin.framework/PackagePlugin | |
[37m[1mdebug: [0m/usr/bin/xcrun --find swift-plugin-server | |
[37m[1mdebug: [0m/usr/bin/xcrun --sdk macosx --find xctest | |
[37m[1mdebug: [0m/Applications/Xcode_15- |
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
# See target definitions here: | |
# https://github.com/ncooke3/swift-package-manager/blob/nc/support-mixed-targets/Fixtures/MixedTargets/BasicMixedTargets/Package.swift#L13-L22 | |
# Dynamically Linked Mixed Target Node | |
"C.DynamicallyLinkedBasicMixedTarget-debug.dylib": | |
tool: shell | |
inputs: ["/Users/nickcooke/Developer/swift-package-manager/Fixtures/MixedTargets/BasicMixedTargets/.build/arm64-apple-macosx/debug/BasicMixedTarget.build/CarPart.m.o","/Users/nickcooke/Developer/swift-package-manager/Fixtures/MixedTargets/BasicMixedTargets/.build/arm64-apple-macosx/debug/BasicMixedTarget.build/Driver.m.o","/Users/nickcooke/Developer/swift-package-manager/Fixtures/MixedTargets/BasicMixedTargets/.build/arm64-apple-macosx/debug/BasicMixedTarget.build/Engine.swift.o","/Users/nickcooke/Developer/swift-package-manager/Fixtures/MixedTargets/BasicMixedTargets/.build/arm64-apple-macosx/debug/BasicMixedTarget.build/FluxCapacitor.m.o","/Users/nickcooke/Developer/swift-package-manager/Fixtures/MixedTargets/BasicMixedTargets/ |
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
- (NSString *)fetchData { | |
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; | |
[request setHTTPMethod:@"GET"]; | |
[request setURL:[NSURL URLWithString:stringURL]]; | |
[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data, | |
NSURLResponse * _Nullable response, | |
NSError * _Nullable error) { | |
NSString *myString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; |
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
# Hey! This is a script that formats a string to the lowercased, underscore-joined strings frequently used in python. | |
# On mac, copy this file into your /usr/local/bin directory! | |
# You can then run it anywhere in terminal with: | |
# >>> python pythonalize.py "The string you want formatted!" | |
# The string you pass in will be automatically copied to your Mac's clipboard! | |
import subprocess | |
import sys | |
def convert_to_file_name_syntax(name): |
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
/// Playground Demonstrating Common Graph Traversal Algorithms | |
struct GraphNode: Hashable { | |
let label: String | |
//let neighbors: Set<GraphNode> | |
init(label: String) { | |
self.label = label | |
//self.neighbors = Set<GraphNode>() | |
} |
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 UIKit | |
var optionalString: String? // can be i.e "hello" or nil | |
// method 1️⃣: if let | |
if let string = optionalString { | |
print("I have a value. I am \(string)") | |
} else { | |
print("I do not have a value yet- I am nil!") | |
} |
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 UIKit | |
// Key Idea: Classes are Reference types and Structs are Value types! | |
class Runner { | |
var type: String | |
var level: Int | |
var pro: Bool | |