跳转到内容

Mac 应用程序

我们可以使用 xcode.application 规则来构建 Mac 应用程序。

App

EXPLORER
src
Info.plist
main.m
xmake.lua
Lua xmake.lua
1234567
add_rules("mode.debug", "mode.release")

target("mac_app")
    add_rules("xcode.application")
    add_files("src/*.m")
    add_files("src/Info.plist")
    add_frameworks("Cocoa")

编译运行

bash
$ xmake
$ xmake run