iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
he110comex
V2EX  ›  iDev

Windows 系统上有合适的练习 Swift 编程的方法吗?

  •  
  •   he110comex · Jan 17, 2021 via Android · 5503 views
    This topic created in 1986 days ago, the information mentioned may be changed or developed.
    尝试了在 Windows 虚拟机上安装 macOS 系统,再在里面安装 xCode,发现系统太卡,几乎没法用。

    没有办法在 Windows 系统上学习 swift 编程吗?
    14 replies    2021-01-17 23:21:45 +08:00
    putaozhenhaochi
        1
    putaozhenhaochi  
       Jan 17, 2021 via Android
    Windows 10 不是支持 Swift 了吗
    h404bi
        2
    h404bi  
       Jan 17, 2021
    实在不行用 webIDE 呗 https://repl.it/languages/swift
    学门语言不一定非得整个 XCode 才学
    MasterCai
        3
    MasterCai  
       Jan 17, 2021
    直接装一个黑苹果(
    usVexMownCzar
        4
    usVexMownCzar  
       Jan 17, 2021
    win10 swift 支持貌似还不是很好,可以装个 Linux 虚拟机,然后使用 vscode 写
    ysc3839
        5
    ysc3839  
       Jan 17, 2021 via Android
    @putaozhenhaochi @h404bi
    印象中网上许多 Swift 代码都用了 macOS 独有的 API,脱离 macOS 使用并不现实。
    wobuhuicode
        6
    wobuhuicode  
       Jan 17, 2021
    学 swift 是没有问题的。但是学它来做什么是一个问题。
    如果你要做 ios,离不开 apple 的 uikit 。那就算在其他平台学 swift 你也很难调起 uikit 的方法。
    Rhianu
        7
    Rhianu  
       Jan 17, 2021
    @ysc3839 Swift 语言本身跟 macOS API 没有关系,如果要用 Swift 开发 macOS App 可能会要用到对应的 macOS kit,Swift 语言本身是独立的,有依赖的是 kit
    mmlmml1
        8
    mmlmml1  
       Jan 17, 2021
    目前只有 Foundation 里面的可以在 Windows 上跑,只要代码不依赖 Foundation 以外的东西都是可以在 Windows 上运行的,官方甚至用 Swift 和 Win32 API 做了一个 Windows 的计算器: https://github.com/compnerd/swift-win32/blob/ed4993f7cbb284a83ee77fcecdc2570cf24355e4/Examples/Calculator/Calculator.swift
    ysc3839
        9
    ysc3839  
       Jan 17, 2021 via Android
    @Rhianu 我知道没有关系,我说的是网上大部分的代码。
    苹果早期研发 Swift 是像微软研发 C# 那样,想给自己生态做护城河。现在意识到跨平台问题后加上了别的平台的支持,但是短时间内并不能改变大部分 Swift 代码使用了 macOS/iOS 系统 API 的现状。这和 C# 的状况类似。
    因此我说脱离 macOS 使用并不现实。
    cht
        10
    cht  
       Jan 17, 2021
    MrKrabs
        11
    MrKrabs  
       Jan 17, 2021
    wsl ubuntu 直接搞起
    BingoXuan
        12
    BingoXuan  
       Jan 17, 2021 via Android
    想起 Apple 内部另外一个编程语言,当初我看文档时候看到“预计拓展到其他设备以及操作系统,可在 Linux 运行”。我苦笑了,用这玩意我还不如去写 lisp 好了。
    wolong
        13
    wolong  
       Jan 17, 2021
    不做 ios 开发学 swift 来做什么啊
    agagega
        14
    agagega  
       Jan 17, 2021 via iPhone
    @BingoXuan Dylan ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2716 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 12:13 · PVG 20:13 · LAX 05:13 · JFK 08:13
    ♥ Do have faith in what you're doing.