diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index 11f0df7bc..8e68abff5 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -263,9 +263,9 @@ def sdkmanager_path(self): ('sdkmanager path "{}" does not exist, sdkmanager is not' ' installed'.format(sdkmanager_path))) self.logger.debug( - "{}'s stat is {}", - sdkmanager_path, - os.stat(sdkmanager_path)) + "{}'s stat is {}".format( + sdkmanager_path, + os.stat(sdkmanager_path))) return sdkmanager_path @property diff --git a/buildozer/targets/ios.py b/buildozer/targets/ios.py index fd3633d2b..9d89da1a0 100644 --- a/buildozer/targets/ios.py +++ b/buildozer/targets/ios.py @@ -90,9 +90,15 @@ def check_requirements(self): ['xcodebuild', '-showsdks'], get_stdout=True, env=self.buildozer.environ).stdout - iphoneos_lines = [line for line in sdk_list if "iphoneos" in line] - last_iphoneos_line = iphoneos_lines[-1] - sdk = last_iphoneos_line.split()[1] # Second column + iphoneos_lines = [ + line + for line in sdk_list.split("\n") + if "iphoneos" in line] + if not iphoneos_lines: + sdk = None + else: + last_iphoneos_line = iphoneos_lines[-1] + sdk = last_iphoneos_line.split()[1] # Second column if not sdk: raise Exception(