Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Feature Request] Support for Webview/Next.js App Wrapping (iOS & Android)

オープン
#359 コメント 3 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
android, ios, nextjs, react, swift

調査の方向性

The payload names no source files, so start by finding how xtool new templates and xtool build are wired in the repository, and whether a template mechanism already exists. This is open design work with four separate sub-features and no maintainer decision yet. Done means a maintainer has agreed on the scope and split it into smaller issues, such as a WKWebView template first.

索引モデルが issue の本文から書いたものです。

説明

enhancement
Feature Description

Provide a way or project template in xtool to package local web applications (such as Next.js, React, or standard HTML/JS web apps) into a native iOS (and eventually Android) application wrapper.

Use Case & Background

Many developers build full-stack or highly interactive web applications using Next.js. However, converting these apps to native mobile using tools like React Native / Expo often requires extensive code rewrites. On the other hand, frameworks like Capacitor or Tauri can be complex to configure for custom local API proxying and offline storage persistence.

Since xtool serves as a powerful cross-platform build tool for SwiftPM and Apple ecosystem targets without needing full Xcode, having first-class support for wrapping web apps would unlock iOS (and Android) deployment for web developers running on Linux, Windows (WSL), or macOS.

Suggested Functionality
  1. Webview Project Template (xtool new my-web-app --template webview):
    • A declarative SwiftPM project template featuring a full-screen WKWebView (iOS) configured to load static exported bundles or local development servers.
  2. Local Storage & State Persistence:
    • Out-of-the-box configuration enabling web storage persistence (localStorage, IndexedDB) inside the native container without random OS cache clears.
  3. Local API / Network Proxy Support:
    • Native network handling or bridging so client-side API requests / proxies run locally inside the app bundle without CORS or transport restriction issues.
  4. Android Target / Cross-Platform Expansion:
    • Roadmap support or tooling to output an Android bundle alongside iOS from the same web assets.
Alternatives Considered
  • Expo / React Native: Requires rewriting components and UI libraries from React/Next.js web code.
  • Capacitor / Tauri: Difficulties with custom local API proxy setups and running full Next.js workflows cleanly.
Additional Context

Providing a streamlined CLI command (e.g., xtool build --web-dir ./out) would allow Next.js users who use output: 'export' to immediately compile and deploy native iOS apps from Linux, macOS, or Windows directly to physical devices.

主要言語
Swift
スター
5.5k
フォーク
163
平均マージ
18時間 29分
マージ済み PR(30日)
27

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

xtool-org/xtool のほかの issue

xtool-org/xtool の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。