I have a small tool. These are the external libraries.
import pyperclip
import webbrowser
import tkinter as tk
How could I use pyinstaller to make it a macOs desktop app?This is the code.
PyInstaller currently has problem on Big Sur for this reason:
New in macOS Big Sur 11.0.1, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)
You'll missing system libraries when you execute pyinstaller
There are some discussing here, but the bug has not been fixed yet. (Dec 21 2020)
As the pyinstaller document suggests, you'd better use old version of the OSX for forward compatible.
Simply run:
pyinstaller --windowed my_code.py