Skip to content

fix(cli): add system framework and weak framework support in SPM Package.swift#8447

Merged
OS-ruimoreiramendes merged 4 commits intomainfrom
feat/RMET-5154/system-frameworks-spm
May 4, 2026
Merged

fix(cli): add system framework and weak framework support in SPM Package.swift#8447
OS-ruimoreiramendes merged 4 commits intomainfrom
feat/RMET-5154/system-frameworks-spm

Conversation

@OS-ruimoreiramendes
Copy link
Copy Markdown
Contributor

Adds support for translating <framework src="..." /> declarations from plugin.xml into linkerSettings entries in the generated Package.swift. Frameworks marked as weak="true" are handled by setting type: .dynamic on the library product, following the same approach used in ion-ios-camera.
Tested with a dummy plugin declaring SwiftUICore.frameworkwith weak="true", no crash on iOS 15 simulator, successful build on a physical device.

Reference: https://outsystemsrd.atlassian.net/browse/RMET-5154

@alexgerardojacinto
Copy link
Copy Markdown

alexgerardojacinto commented Apr 29, 2026

Minor: I think the PR title should be fix(cli):...

@OS-ruimoreiramendes OS-ruimoreiramendes changed the title fix: add system framework and weak framework support in SPM Package.swift fix(cli): add system framework and weak framework support in SPM Package.swift Apr 30, 2026
@OS-pedrogustavobilro OS-pedrogustavobilro self-assigned this May 4, 2026
@jcesarmobile
Copy link
Copy Markdown
Member

it still shows conflicts

@OS-ruimoreiramendes
Copy link
Copy Markdown
Contributor Author

Member

the conflicts are now resolved. They appeared after merging one of the related PRs, but everything is up to date now.

Copy link
Copy Markdown
Contributor

@OS-pedrogustavobilro OS-pedrogustavobilro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. From my tests this code doesn't seem to add difference for cdv plugins with regular system frameworks (without weak), it seems to work for me without this PR, but from what we discussed internal, that is expected.

@OS-ruimoreiramendes OS-ruimoreiramendes merged commit 3232f0f into main May 4, 2026
6 checks passed
@OS-ruimoreiramendes OS-ruimoreiramendes deleted the feat/RMET-5154/system-frameworks-spm branch May 4, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants