跳转到内容

iOS 应用程序

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

App

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

target("ios_app")
    add_rules("xcode.application")
    add_files("src/*.m")
    add_files("src/Info.plist")
    add_frameworks("UIKit", "Foundation")

编译运行

bash
$ xmake
$ xmake run