Skip to content

Instantly share code, notes, and snippets.

@Dirk-Sandberg
Created June 24, 2019 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dirk-Sandberg/c77e1a6c60600ccf0ddc96a40b3ed715 to your computer and use it in GitHub Desktop.
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.
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")
@Dirk-Sandberg
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment