Skip to content

on iOS uniqueid fails #844

@weirdnik

Description

@weirdnik

I'm trying to use uniqueid.id in a multiplatform app. On macOS I need to declare plyer.platforms.macosx.uniqueid as hidden import or it doesn't work.

On iOS, it is either NotImplementedError if I don't include the import of plyer.platforms.ios.uniqueid.

If I do it fails on loading UIKit.framework:

"/Users/alex/Library/Developer/CoreSimulator/Devices/DDA9F9C7-2AE4-456F-95DF-6F107BCC8919/data/Containers/Bundle/Application/D00FF772-C2D8-47B3-81B4-178DFEB1CAF3/daii.app/lib/python3.11/site-packages/plyer/platforms/ios/uniqueid.py", line 9, in <module>
     load_framework('/System/Library/Frameworks/UIKit.framework')
   File "/Users/alex/Library/Developer/CoreSimulator/Devices/DDA9F9C7-2AE4-456F-95DF-6F107BCC8919/data/Containers/Bundle/Application/D00FF772-C2D8-47B3-81B4-178DFEB1CAF3/daii.app/lib/python3.11/site-packages/pyobjus/dylib_manager.py", line 190, in load_framework
     raise ObjcException('Error while loading {0} framework'.format(framework))
 pyobjus.ObjcException: Error while loading /System/Library/Frameworks/UIKit.framework framework

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions