Skip to content

fix: build OSBarcodeLib as a dynamic framework to prevent SwiftUICore crash on iOS 15/16 - #46

Merged
OS-ruimoreiramendes merged 3 commits into
mainfrom
fix/RMET-5301/swiftui-core-crash
Sep 2, 2026
Merged

fix: build OSBarcodeLib as a dynamic framework to prevent SwiftUICore crash on iOS 15/16#46
OS-ruimoreiramendes merged 3 commits into
mainfrom
fix/RMET-5301/swiftui-core-crash

Conversation

@OS-ruimoreiramendes

@OS-ruimoreiramendes OS-ruimoreiramendes commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Description

Change the SPM library product to be built as a dynamic framework by adding type: .dynamic to the Package.swift product declaration.

Context

Ref: RMET-5301, ionic-team/capacitor-barcode-scanner#128

Type of changes

  • Fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Refactor (cosmetic changes)
  • Breaking change (change that would cause existing functionality to not work as expected)

Tests

Validated end-to-end using capacitor-barcode-scanner's example-app-spm:

Before the fix: app crashes on launch on iOS 15.5 simulator and iOS 16 physical device (via SauceLabs) with the SwiftUICore dyld error.

After the fix: app launches successfully on the same environments; barcode scanner opens and reads codes.

Screenshots (if appropriate)

Checklist

  • Code follows code style of this project
  • Changes require an update to the documentation
    • Documentation has been updated accordingly

@OS-ruimoreiramendes
OS-ruimoreiramendes marked this pull request as ready for review September 2, 2026 10:00
@OS-ruimoreiramendes
OS-ruimoreiramendes requested a review from a team as a code owner September 2, 2026 10:00
@OS-pedrogustavobilro OS-pedrogustavobilro self-assigned this Sep 2, 2026
@wiz-code-outsystems

wiz-code-outsystems Bot commented Sep 2, 2026

Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Software Management Finding Software Management Findings 1 High
Total 1 High

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio.

Pull Request Developer Guidance

Questions? See the Wiz FAQ.

Please contact the Security Office if you encounter issues with Wiz pull request scanning.

Comment thread Gemfile.lock
@OS-ruimoreiramendes
OS-ruimoreiramendes merged commit 15d09a5 into main Sep 2, 2026
7 checks passed
capacitor-bot pushed a commit that referenced this pull request Sep 2, 2026
## [2.2.1](2.2.0...2.2.1) (2026-09-02)

### Bug Fixes

* build OSBarcodeLib as a dynamic framework to prevent SwiftUICore crash on iOS 15/16 ([#46](#46)) ([15d09a5](15d09a5))
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.

2 participants