diff --git a/fir_ser/api/utils/app/iossignapi.py b/fir_ser/api/utils/app/iossignapi.py index 143498d..95008e0 100644 --- a/fir_ser/api/utils/app/iossignapi.py +++ b/fir_ser/api/utils/app/iossignapi.py @@ -219,12 +219,8 @@ class AppDeveloperApiV2(object): result = {} try: apple_obj = AppStoreConnectApi(self.issuer_id, self.private_key_id, self.p8key) - profile_obj = apple_obj.list_profile_by_profile_name(app_id) - if profile_obj: - if apple_obj.delete_profile_by_id(profile_obj.id): - pass - if apple_obj.delete_bundle_by_identifier(bundleId+app_id): - return True, profile_obj + if apple_obj.delete_bundle_by_identifier(bundleId + app_id): + return True, {} except Exception as e: logger.error("ios developer delete profile Failed Exception:%s" % e) diff --git a/fir_ser/api/utils/apple/appleapiv3.py b/fir_ser/api/utils/apple/appleapiv3.py index 4a10690..be1875d 100644 --- a/fir_ser/api/utils/apple/appleapiv3.py +++ b/fir_ser/api/utils/apple/appleapiv3.py @@ -753,8 +753,8 @@ class AppStoreConnectApi(DevicesAPI, BundleIDsAPI, BundleIDsCapabilityAPI, Profi def delete_bundle_by_identifier(self, identifier): identifier_obj = self.list_bundle_ids_by_identifier(identifier) - if identifier_obj and isinstance(identifier_obj, list): - req = self.delete_bundle_id_by_id(identifier_obj[0].id) + if isinstance(identifier_obj,BundleIds): + req = self.delete_bundle_id_by_id(identifier_obj.id) if req.status_code == 204: return True