import coremltools---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-5bf9ddba4efd> in <module>
----> 1 import coremltools
| // swift-interface-format-version: 1.0 | |
| // swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) | |
| // swift-module-flags: -target arm64-apple-ios14.7 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -package-description-version 999.0 -module-name PackageDescription | |
| // swift-module-flags-ignorable: -user-module-version 15 | |
| import Foundation | |
| import Swift | |
| public struct BuildConfiguration : Swift.Encodable { | |
| public static let debug: PackageDescription.BuildConfiguration | |
| public static let release: PackageDescription.BuildConfiguration | |
| public func encode(to encoder: Swift.Encoder) throws |
| // From /Applications/Playgrounds.app/Contents/Toolchain/usr/lib/swift/pm/ManifestAPI/AppleProductTypes.swiftmodule/arm64-apple-ios-macabi.swiftinterface | |
| // swift-interface-format-version: 1.0 | |
| // swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) | |
| // swift-module-flags: -target arm64-apple-ios13.4-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -package-description-version 999.0 -module-link-name AppleProductTypes -module-name AppleProductTypes | |
| // swift-module-flags-ignorable: -user-module-version 15 | |
| import PackageDescription | |
| import Swift | |
| extension PackageDescription.Product { |
| import class Foundation.Bundle | |
| import class Foundation.FileManager | |
| import class Foundation.NSFileAccessIntent | |
| import class Foundation.NSFileCoordinator | |
| import class Foundation.NSMutableDictionary | |
| import struct Foundation.URL | |
| import struct Foundation.UUID | |
| import var Foundation.kCFBundleIdentifierKey | |
| import var Foundation.kCFBundleNameKey |
| import PlaygroundSupport | |
| import SwiftUI | |
| struct ContentView: View { | |
| @State var selection = 0 | |
| var body: some View { | |
| HStack { | |
| Button { | |
| self.selection = 0 |
| @propertyWrapper | |
| public struct Box<Value> { | |
| private var object: BoxObject<Value> | |
| public var value: Value { | |
| get { self.object.value } | |
| set { | |
| if !isKnownUniquelyReferenced(&self.object) { | |
| self.object = self.object.copy() | |
| } |
| import PhotosUI | |
| import PlaygroundSupport | |
| import SwiftUI | |
| struct LivePhotoView: View { | |
| let livePhoto: PHLivePhoto | |
| var body: some View { | |
| _LivePhotoView(livePhoto: livePhoto) | |
| .aspectRatio( |
| // Swift Playgrounds での利用例 | |
| import PlaygroundSupport | |
| import SwiftUI | |
| struct ContentView { | |
| @State var toastDuration: DispatchTimeInterval? | |
| @State var toastMessage: LocalizedStringKey = "" | |
| } |
| import Foundation | |
| import AVFoundation | |
| Bundle(path: "/System/Library/Frameworks/ShazamKit.framework")!.load() | |
| class SHSession { | |
| static let rawType = NSClassFromString("SHSession") as! NSObject.Type | |
| let rawValue: NSObject | |
| var delegate: SHSessionDelegate? { |
import coremltools---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-5bf9ddba4efd> in <module>
----> 1 import coremltools
| import Darwin | |
| func getVMStatistics64() -> vm_statistics64? { | |
| let hostPort = mach_host_self() | |
| var hostSize = mach_msg_type_number_t(MemoryLayout<vm_statistics64_data_t>.size / MemoryLayout<integer_t>.size) | |
| var vmstat = vm_statistics64() | |
| let result = withUnsafeMutablePointer(to: &vmstat) { | |
| $0.withMemoryRebound(to: integer_t.self, capacity: Int(hostSize)) { | |
| host_statistics64( | |
| hostPort, |