From 0573477b1ae024f805f6eba7cca666c537fba08b Mon Sep 17 00:00:00 2001 From: meow464 Date: Sun, 26 Sep 2021 11:34:25 -0300 Subject: [PATCH] Adds `--add-custom-recipe` to `update` and `create` commands Custom recipes were built but not added to the XCode project. See: https://github.com/kivy/kivy-ios/issues/642 --- kivy_ios/toolchain.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kivy_ios/toolchain.py b/kivy_ios/toolchain.py index 04e1a476..cb27b74f 100755 --- a/kivy_ios/toolchain.py +++ b/kivy_ios/toolchain.py @@ -1467,7 +1467,7 @@ def create(self): "{}.xcodeproj".format(args.name.lower()), "project.pbxproj") - recipes = self.recipes_names_from_paths(args.add_custom_recipes) + recipes = self.recipes_names_from_paths(args.add_custom_recipe) update_pbxproj(filename, pbx_frameworks=args.add_framework, custom_recipes=recipes, custom_recipes_paths=args.add_custom_recipe) @@ -1484,7 +1484,6 @@ def update(self): parser.add_argument("--add-framework", action="append", help="Additional Frameworks to include with this project") parser.add_argument("--add-custom-recipe", action="append", default=[], help="Path to custom recipe (the recipe must already have been built with the 'build' command)") - args = parser.parse_args(sys.argv[2:]) filename = self.find_xcodeproj(args.filename) @@ -1493,7 +1492,7 @@ def update(self): logger.error("{} not found".format(filename)) sys.exit(1) - recipes = self.recipes_names_from_paths(args.add_custom_recipes) + recipes = self.recipes_names_from_paths(args.add_custom_recipe) update_pbxproj(filename, pbx_frameworks=args.add_framework, custom_recipes=recipes, custom_recipes_paths=args.add_custom_recipe)