V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xuboying
V2EX  ›  macOS

xcode9 创建 macos app 的时候移除了 C++选项么?

  •  
  •   xuboying · Feb 2, 2018 · 3242 views
    This topic created in 3018 days ago, the information mentioned may be changed or developed.
    现在使用的 Xcode 版本是 9,发现 MacosApp 没有 C++选项了,只有 swift 和 OC,一年多以前似乎是有 C++的,那时候好像是 El Capitan?, 记不太清了。
    5 replies    2018-02-02 16:10:17 +08:00
    lululau
        1
    lululau  
       Feb 2, 2018
    你要用 C++ 开发 Cocoa App 吗,创建 CLT 项目是有 C/C++ 选项的
    xuboying
        2
    xuboying  
    OP
       Feb 2, 2018
    @lululau #1 写简单的 cli 项目直接就 g++编译了,不用 IDE 了,要开发的是图形程序
    ZeoKarl
        3
    ZeoKarl  
       Feb 2, 2018   ❤️ 1
    放弃吧,没了.想用 c++你可以用 qt.或者把.m 文件改成.mm 之类的.
    xuboying
        4
    xuboying  
    OP
       Feb 2, 2018
    @nieyujiang #3 库到不是问题,本来就不用 apple,gcc 还是可以编译的,但是 Xcode 不支持以后有两个问题
    1. 不知道怎么生成 bundle,把程序打包成可以在 launch 里启动的格式
    2. 不知道能不能发送到 app store。
    ZeoKarl
        5
    ZeoKarl  
       Feb 2, 2018
    @xuboying #4 非要用 c++的话,可以试试 qt.或者其他的非原生的开发方式.反正我是用 Swift 的.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4593 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 10:06 · PVG 18:06 · LAX 03:06 · JFK 06:06
    ♥ Do have faith in what you're doing.