diff options
| author | Akaps316 <[email protected]> | 2026-04-03 19:54:54 +0530 |
|---|---|---|
| committer | Akaps316 <[email protected]> | 2026-04-04 20:24:39 +0530 |
| commit | e43e3e3ff780d130a1e1402ed9eabf0aa54c5c1d (patch) | |
| tree | da7d68aab4b2aa406f71ac4f713bd2be29000d24 /tests/projects/objc/iosapp_framework_rpath/xmake.lua | |
| parent | 39fd35ea9d5d14079e4669b85423d488c9097cd4 (diff) | |
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.
Diffstat (limited to 'tests/projects/objc/iosapp_framework_rpath/xmake.lua')
| -rw-r--r-- | tests/projects/objc/iosapp_framework_rpath/xmake.lua | 13 |
1 files changed, 13 insertions, 0 deletions
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") |
