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
#!/bin/sh -ex | |
# This script should be executed in the root of a Skip project | |
# It will convert the specified image source (typically a PDF) | |
# into all the required icons for the Darwin/ and Android/ versions | |
# | |
# Prerequisite: `brew install imagemagick` | |
# | |
# e.g.: skip.iconconvert.sh Sources/Showcase/Resources/Module.xcassets/skiplogo.imageset/skiplogo.pdf | |
which magick &> /dev/null || (echo "$(basename $0): error: magick command not found (install imagemagick)"; exit 1) |
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
/// This example provides a `installSystemCertificates()` function that will | |
/// locate the standard Android certificate directories and assemble all the contents into | |
/// a single cacerts.pem file that can be loaded by libcurl, which enables | |
/// `Foundation.URLSession` to load HTTPS sites. | |
import Foundation | |
#if canImport(FoundationNetworking) | |
import FoundationNetworking | |
#endif | |
#if canImport(Android) | |
import Android |
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
func loadSourceRoot() throws -> URL { | |
let env = ProcessInfo.processInfo.environment // "DYLD_LIBRARY_PATH": "/Users/marc/Library/Developer/Xcode/DerivedData/App-eyahphpvsfdoezahxmpgdlrnhwxg/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection" | |
guard let dyld = env["DYLD_LIBRARY_PATH"]?.split(separator: ":").first else { // e.g. /Users/marc/Library/Developer/Xcode/DerivedData/App-eyahphpvsfdoezahxmpgdlrnhwxg/Build/Products/Debug-iphonesimulator | |
throw CocoaError(.fileNoSuchFile) | |
} | |
// we have a bunch of potential places to guess here, but this is one of them… | |
let workspaceInfo = URL(fileURLWithPath: "../../../info.plist", isDirectory: false, relativeTo: URL(fileURLWithPath: String(dyld), isDirectory: true)) |
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 ui; | |
ui.VStack([ | |
ui.Text("Hello App!").font(ui.Font.largeTitle), | |
ui.Text("(saving changes will automatically reload the UI)").font(ui.Font.caption) | |
]); | |
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
{ | |
"appid": "app.World-Fair", | |
"name": "Simple World Fair JackScript", | |
"description": "This is an example JackScript plug-in for the World Fair app.", | |
"requires": { | |
"ui": [0, 0, 1], | |
"console": [0, 0, 1] | |
} | |
} |
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
Some contents |
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
{ | |
"name": "Example Metadata", | |
"version": [1,2,3] | |
}; // prelude JSON metadata | |
let x = 123; | |
console.log(`Number: ${x}!!`); |
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
------------------------------------- | |
Translated Report (Full Report Below) | |
------------------------------------- | |
Incident Identifier: 2D7B7829-3F35-4650-BC6D-1912CB8A21EA | |
CrashReporter Key: E4C4B189-1382-2C5A-B148-CD6E07701010 | |
Hardware Model: MacBookPro18,2 | |
Process: PosterBoard [8272] | |
Path: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications/PosterBoard.app/PosterBoard | |
Identifier: com.apple.PosterBoard |
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
Thread 1 Queue : com.apple.main-thread (serial) | |
#0 0x00007fff41c65b57 in specialized Array._checkSubscript(_:wasNativeTypeChecked:) () | |
#1 0x00007fff41ee03d8 in OutlineListRootViewTree.traits(forRowAt:) () | |
#2 0x00007fff41ee066c in protocol witness for ListRootViewTree.traits(forRowAt:) in conformance OutlineListRootViewTree () | |
#3 0x00007fff425713a0 in ListStyleDataSource.isTreeLeaf(forRowAt:) () | |
#4 0x00007fff42072613 in NSOutlineViewListCoordinator.outlineView(_:isItemExpandable:) () | |
#5 0x00007fff420729be in @objc NSOutlineViewListCoordinator.outlineView(_:isItemExpandable:) () | |
#6 0x00007fff22e19b38 in -[NSOutlineView _nonStaticDataSourceIsItemExpandable:] () | |
#7 0x00007fff22e08de3 in loadItemEntryLazyInfoIfNecessary () | |
#8 0x00007fff22e22394 in findAndLoadRowEntryForUnloadedLazyItem () |
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
Thread 1 Queue : com.apple.main-thread (serial) | |
#0 0x00007fff20322e69 in nanov2_allocate_from_block () | |
#1 0x00007fff20322650 in nanov2_allocate () | |
#2 0x00007fff2032257d in nanov2_malloc () | |
#3 0x00007fff2033cff5 in _malloc_zone_malloc () | |
#4 0x00007fff2cb8d0e8 in swift_slowAlloc () | |
#5 0x00007fff2cb8d257 in swift_allocObject () | |
#6 0x00007fff4228a9b0 in AnyViewList.Transform.apply(sublist:) () | |
#7 0x00007fff421b8e3e in TransformedList.TransformItem.apply(sublist:) () | |
#8 0x00007fff421b8e3e in TransformedList.TransformItem.apply(sublist:) () |
NewerOlder