Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win 10 相容 iOS 應用?Project Islandwood 橋接工具開源,將 Xcode 專案移植至 UWP

編輯:Windows 10 系統介紹

微軟在 Build 2015 大會發表「Project Islandwood」(iOS 橋接) 與「Project Astoria」(Android 橋接),讓開發者能將現有 iOS/Android 應用程式碼快速移植為 Windows 10 通用應用 (UWP)。Android 橋接後來終止,但 iOS 橋接工具已開源於 GitHub,支援將 Xcode 專案導入 Visual Studio 編譯為 UWP。

Project Islandwood 核心價值

  • **非模擬器/非執行階段相容**:而是**原始碼層級移植** — 將 Objective-C/Cocoa Touch 程式碼編譯為可在 Windows 10 上原生運行的 UWP 應用程式。
  • 保留 iOS 應用邏輯、UI 架構,僅需替換平台專屬 API (如推播、購買、鑰匙串) 為 Windows 對應 API。
  • 在 Visual Studio 中對 Objective-C 程式碼進行編輯、偵錯、IntelliSense 支援。

四大核心功能

  1. 將 Xcode 專案 (.xcodeproj) 匯入 Visual Studio 方案。
  2. 對使用 Xcode 建構的 iOS 應用程式碼進行**最小修改**,以此為基礎重新產生 Win 10 版應用程式。
  3. 在 Visual Studio 環境下對 Objective-C 原始碼進行編寫與偵錯。
  4. 擴充 iOS 應用程式,使其充分利用 Win 10 通用應用平台特性 (即時磚、Cortana 整合、跨裝置同步等)。

現狀與限制 (2017 年初資料,現況已大幅變化)

  • 工具屬**早期預覽版/半成品**,許多展示特性未完整實作。
  • 支援將 iOS 應用轉換為支援 x86/x64 處理器的 Win 8.1/10 裝置應用。
  • ARM 處理器支援規劃中 (後續版本陸續加入)。
  • 最終版本預計秋末冬初釋出 (指 2015 年底)。

後續發展實際狀況 (補充更新)

  • Project Astoria (Android 橋接) 已於 2016 年正式終止,微軟決定專注 iOS 橋接與 Xamarin 跨平台框架。
  • Project Islandwood (WinObjC) 於 2016 年開源至 GitHub (microsoft/WinObjC),社群持續維護至 2019 年左右逐漸停止活躍更新。
  • 微軟後續戰略轉向:**Xamarin.Forms / .NET MAUI** 跨平台原生開發、**Windows App SDK / WinUI 3** 現代化 Windows 應用開發、**Project Reunion** 統一 API。
  • 目前**不建議**新專案投入 Islandwood 移植,應採用 .NET MAUI / Uno Platform / Avalonia 等現代跨平台框架,或原生 WinUI 3 開發。

歷史意義

Islandwood 展示了微軟「開發者優先、跨平台程式碼重用」的戰略轉型,雖工具本身未成主流,但推動了 Objective-C 在 Windows 上的編譯器支援 (Clang/LLVM 整合),為後續跨平台工具鏈奠定基礎。

Copyright © Windows教程網 All Rights Reserved