From e43e3e3ff780d130a1e1402ed9eabf0aa54c5c1d Mon Sep 17 00:00:00 2001 From: Akaps316 <48785708+Akaps316@users.noreply.github.com> Date: Fri, 3 Apr 2026 19:54:54 +0530 Subject: fix(xcode.application): use the correct framework rpath for iOS apps Use @executable_path/Frameworks for iphoneos application bundles when embedding dependent frameworks. The existing @executable_path/../Frameworks rpath is correct for macOS app layout, but incorrect for iOS where the executable lives directly in MyApp.app and embedded frameworks live in MyApp.app/Frameworks. Add a regression test that builds an iOS simulator app with an embedded framework and verifies the generated LC_RPATH. --- tests/projects/objc/iosapp_framework_rpath/xmake.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/projects/objc/iosapp_framework_rpath/xmake.lua (limited to 'tests/projects/objc/iosapp_framework_rpath/xmake.lua') diff --git a/tests/projects/objc/iosapp_framework_rpath/xmake.lua b/tests/projects/objc/iosapp_framework_rpath/xmake.lua new file mode 100644 index 000000000..68d0d7db1 --- /dev/null +++ b/tests/projects/objc/iosapp_framework_rpath/xmake.lua @@ -0,0 +1,13 @@ +add_rules("mode.release", "mode.debug") + +target("test") + add_rules("xcode.framework") + add_files("src/framework/test.m") + add_files("src/framework/Info.plist") + add_headerfiles("src/framework/test.h") + +target("demo") + add_rules("xcode.application") + add_deps("test") + add_files("src/app/*.m") + add_files("src/app/Info.plist") -- cgit v1.3.1