Created
June 24, 2019 18:23
-
-
Save Dirk-Sandberg/c77e1a6c60600ccf0ddc96a40b3ed715 to your computer and use it in GitHub Desktop.
Fixes errors shown in this image (https://ibb.co/3y4T1rL) when uploading an App to AppStoreConnect. INSTRUCTIONS: Put this in your kivy-ios folder, then run `python remove_so_o_files.py` to delete all files ending with .so.o from your project. They are not needed and only cause errors with kivy-ios.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os.path import join, dirname, realpath, exists, isdir, basename, dirname, abspath | |
from os import listdir, unlink, makedirs, environ, chdir, getcwd, walk, remove | |
def remove_junk(d): | |
exts = [".so.o"] | |
for root, dirnames, filenames in walk(d): | |
for fn in filenames: | |
if any([fn.endswith(ext) for ext in exts]): | |
print("Removing", join(root,fn)) | |
unlink(join(root, fn)) | |
path_to_remove_from = abspath(dirname(__file__)) | |
remove_junk(path_to_remove_from)#"/Users/eriksandberg/Desktop/kivy-ios-py3/kivy-ios") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixes errors shown in this image (https://ibb.co/3y4T1rL) when uploading an App to AppStoreConnect. INSTRUCTIONS: Put this in your kivy-ios folder, then run
python remove_so_o_files.py
to delete all files ending with .so.o from your project. They are not needed and only cause errors with kivy-ios.