Skip to content

nxtbgthng/DefaultsPlaygroundsRepro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Defaults + Playgrounds iOS device crash repro

Summary

  • This project reproduces a dyld crash on iOS devices when Playgrounds is imported in the app target and the Defaults package is present.
  • The crash is due to libLiveExecutionResultsLogger.dylib being linked into the app binary, which does not exist on device.

Repro Steps

  1. Open DefaultsPlaygroundsRepro.xcodeproj in Xcode.
  2. Select a physical iOS device.
  3. Build & run.

Expected

  • App fails to launch on device with: dyld: Library not loaded: /usr/lib/swift/libLiveExecutionResultsLogger.dylib

Control Checks

  • Comment out import Playgrounds and the #Playground {} block in DefaultsPlaygroundsRepro/PlaygroundTest.swift → app launches.
  • Remove Defaults package dependency → app launches.

Why This Repro Exists

  • The Defaults parameter-pack overload of Defaults.updates triggers Swift runtime pack allocation symbols.
  • With Playgrounds present, those symbols resolve to libLiveExecutionResultsLogger during linking.
  • That dylib is not present on iOS devices, so dyld fails at launch.

Key Files

  • DefaultsPlaygroundsRepro/PlaygroundTest.swift (Playgrounds import + #Playground)
  • DefaultsPlaygroundsRepro/DefaultsKeys.swift (Defaults key)
  • DefaultsPlaygroundsRepro/ContentView.swift (uses Defaults to ensure linking)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages