diff options
| author | Akaps316 <[email protected]> | 2026-04-05 10:58:30 +0530 |
|---|---|---|
| committer | Akaps316 <[email protected]> | 2026-04-05 10:58:30 +0530 |
| commit | 9b189a6f1098e55c4ea6d1928644bed4acf5a412 (patch) | |
| tree | 24c57eb099605c9b10e322fdf648f2ba96d4886e /tests/projects/objc | |
| parent | d0f83e55778e37afc767cf8fa382e16d6e5dc001 (diff) | |
| parent | 95e7d1658cb820accdc1bea5c79562331be9baf7 (diff) | |
fix(xcode.application): resolve merge conflict with upstream dev
Diffstat (limited to 'tests/projects/objc')
4 files changed, 40 insertions, 0 deletions
diff --git a/tests/projects/objc/macapp_duplicate_rpath/src/Info.plist b/tests/projects/objc/macapp_duplicate_rpath/src/Info.plist new file mode 100644 index 000000000..e20952d73 --- /dev/null +++ b/tests/projects/objc/macapp_duplicate_rpath/src/Info.plist @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleExecutable</key> + <string>demo</string> + <key>CFBundleIdentifier</key> + <string>io.xmake.demo.duprpath</string> + <key>CFBundleName</key> + <string>demo</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleVersion</key> + <string>1</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> +</dict> +</plist> diff --git a/tests/projects/objc/macapp_duplicate_rpath/src/main.m b/tests/projects/objc/macapp_duplicate_rpath/src/main.m new file mode 100644 index 000000000..f481d2909 --- /dev/null +++ b/tests/projects/objc/macapp_duplicate_rpath/src/main.m @@ -0,0 +1,5 @@ +#import <AppKit/AppKit.h> + +int main(void) { + return 0; +} diff --git a/tests/projects/objc/macapp_duplicate_rpath/test.lua b/tests/projects/objc/macapp_duplicate_rpath/test.lua new file mode 100644 index 000000000..561d206cf --- /dev/null +++ b/tests/projects/objc/macapp_duplicate_rpath/test.lua @@ -0,0 +1,8 @@ +function main(t) + if not is_host("macosx") then + return t:skip("wrong host platform") + end + + os.execv("xmake", {"f", "-p", "macosx", "-a", os.arch(), "-c"}) + os.execv("xmake", {"-vD"}) +end diff --git a/tests/projects/objc/macapp_duplicate_rpath/xmake.lua b/tests/projects/objc/macapp_duplicate_rpath/xmake.lua new file mode 100644 index 000000000..a9428203f --- /dev/null +++ b/tests/projects/objc/macapp_duplicate_rpath/xmake.lua @@ -0,0 +1,9 @@ +add_rules("mode.release", "mode.debug") + +set_languages("c11", "objc") + +target("demo") + add_rules("xcode.application") + add_rpathdirs("@executable_path/../Frameworks") + add_files("src/main.m") + add_files("src/Info.plist") |
