Skip to content

Pillow 11.3.0 iOS wheel contains dynamically linked libjpeg reference #9079

@freakboy3742

Description

@freakboy3742

What did you do?

Added the iOS wheel for Pillow 11.3.0 to an iOS project, then attempt an import of:

from PIL import _imaging

What did you expect to happen?

Import should succeed.

What actually happened?

An import error is raised:

ImportError: dlopen(/Users/rkm/Library/Developer/CoreSimulator/Devices/FD7EA28A-6D72-4064-9D8A-53CC8308BB6F/data/Containers/Bundle/Application/80811937-657D-46A5-8C25-94E3163059D5/Testbed.app/Frameworks/PIL._imaging.framework/PIL._imaging, 0x0002): Library not loaded: /Users/runner/work/Pillow/Pillow/build/deps/iphonesimulator/lib/libjpeg.62.dylib
Referenced from: <8FEC979F-CB01-34F9-B8FC-C55000FF15A0> /Users/rkm/Library/Developer/CoreSimulator/Devices/FD7EA28A-6D72-4064-9D8A-53CC8308BB6F/data/Containers/Bundle/Application/80811937-657D-46A5-8C25-94E3163059D5/Testbed.app/Frameworks/PIL._imaging.framework/PIL._imaging
Reason: tried: '/Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.5.simruntime/Contents/Resources/RuntimeRoot/Users/runner/work/Pillow/Pillow/build/deps/iphonesimulator/lib/libjpeg.62.dylib' (no such file), '/Users/runner/work/Pillow/Pillow/build/deps/iphonesimulator/lib/libjpeg.62.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libjpeg.62.dylib' (no such file)

What are your OS, Python and Pillow versions?

  • OS: iOS 18.5
  • Python: 3.13.4 (BeeWare support package b9)
  • Pillow: 11.3.0

PIL.report can't be executed, because PIL._imaging fails to load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions