func installSource()

in idb_companion/SwiftServer/MethodHandlers/InstallMethodHandler.swift [106:131]


    func installSource(dataStream: FBProcessInput<AnyObject>) async throws -> FBInstalledArtifact {
      switch destination {
      case .app:
        return try await FutureBox(
          commandExecutor.install_app_stream(dataStream, compression: compression, make_debuggable: makeDebuggable)
        ).value
      case .xctest:
        return try await FutureBox(
          commandExecutor.install_xctest_app_stream(dataStream)
        ).value
      case .dsym:
        return try await FutureBox(
          commandExecutor.install_dsym_stream(dataStream, compression: compression, linkTo: linkToBundle)
        ).value
      case .dylib:
        return try await FutureBox(
          commandExecutor.install_dylib_stream(dataStream, name: name)
        ).value
      case .framework:
        return try await FutureBox(
          commandExecutor.install_framework_stream(dataStream)
        ).value
      case .UNRECOGNIZED:
        throw GRPCStatus(code: .invalidArgument, message: "Unrecognized destination")
      }
    }