Current Behavior
App crashes on startup on iOS 16-17, citing an issue that the SwiftUICore library could not be loaded. Bug disappears on iOS 18+ on both physical and simulated devices. Android is not affected.
XCode stops execution as soon as the app starts and shows the following error
Library not loaded: /System/Library/Frameworks/SwiftUICore.framework/SwiftUICore
Referenced from: <426AAAB0-87BE-3433-8468-D88DF1465770> /Users/mike/Library/Developer/CoreSimulator/Devices/79351DC3-1468-497F-B170-9087B4A1CE30/data/Containers/Bundle/Application/42A04B3C-26C8-4686-BFB0-4E51C525F5F5/App.app/App.debug.dylib
Reason: tried: '/Users/mike/Library/Developer/Xcode/DerivedData/App-cusjosgzwhwclohdocgksyxxfwbr/Build/Products/Debug-iphonesimulator/SwiftUICore.framework/SwiftUICore' (no such file), '/Users/mike/Library/Developer/Xcode/DerivedData/App-cusjosgzwhwclohdocgksyxxfwbr/Build/Products/Debug-iphonesimulator/PackageFrameworks/SwiftUICore.framework/SwiftUICore' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_20E247/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 16.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore' (no such file), '/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore' (no such file, not in dyld cac
dyld config: DYLD_SHARED_CACHE_DIR=/Library/Developer/CoreSimulator/Caches/dyld/24G720/com.apple.CoreSimulator.SimRuntime.iOS-16-4.20E247/ DYLD_ROOT_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_20E247/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 16.4.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/mike/Library/Developer/Xcode/DerivedData/App-cusjosgzwhwclohdocgksyxxfwbr/Build/Products/Debug-iphonesimulator:/Library/Developer/CoreSimulator/Volumes/iOS_20E247/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 16.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Library/Developer/CoreSimulator/Volumes/iOS_20E247/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 16.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_20E247/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 16.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_20E247/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 16.4.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/mike/Library/Developer/Xcode/DerivedData/App-cusjosgzwhwclohdocgksyxxfwbr/Build/Products/Debug-iphonesimulator:/Users/mike/Library/Developer/Xcode/DerivedData/App-cusjosgzwhwclohdocgksyxxfwbr/Build/Products/Debug-iphonesimulator/PackageFrameworks DYLD_FALLBACK_FRAMEWORK_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_20E247/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 16.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_20E247/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 16.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib
Plugin was working in a previous version using the following packages (only relevant packages listed)
"dependencies": {
"@capacitor/android": "^7.4.3",
"@capacitor/barcode-scanner": "^2.2.0",
"@capacitor/core": "^7.4.4",
"@capacitor/ios": "^7.4.3",
"@capacitor/splash-screen": "7.0.3",
}
Additionally, we have switched from CocoaPods to SPM.
Expected Behavior
App should launch
Reproduction
https://github.com/sulfura3/capacitor-barcode-issue
Screenshots / Media
Environment Details
OS: macOs Sequoia 15.7.7 (Intel-CPU)
XCode: 26.3 (17C529)
@capacitor/android: 8.4.1
@capacitor/barcode-scanner@3.0.2
@capacitor/camera: 8.2.0
@capacitor/cli: 8.4.1
@capacitor/core: 8.4.1
@capacitor/ios: 8.4.1
@capacitor/splash-screen@8.0.1
Versions Affected
3.0.2
Platforms Affected
Notes / Comments
This was originally found on a larger project. The linked project was provided as a minimal example of where the bug appears. Removing the barcode plugin makes the crash disappear and the app behave as expected (minus barcode functionality).
Current Behavior
App crashes on startup on iOS 16-17, citing an issue that the SwiftUICore library could not be loaded. Bug disappears on iOS 18+ on both physical and simulated devices. Android is not affected.
XCode stops execution as soon as the app starts and shows the following error
Plugin was working in a previous version using the following packages (only relevant packages listed)
Additionally, we have switched from CocoaPods to SPM.
Expected Behavior
App should launch
Reproduction
https://github.com/sulfura3/capacitor-barcode-issue
Screenshots / Media
Environment Details
Versions Affected
3.0.2
Platforms Affected
Notes / Comments
This was originally found on a larger project. The linked project was provided as a minimal example of where the bug appears. Removing the barcode plugin makes the crash disappear and the app behave as expected (minus barcode functionality).