diff --git a/packages/react-native/scripts/cocoapods/privacy_manifest_utils.rb b/packages/react-native/scripts/cocoapods/privacy_manifest_utils.rb index 098dc41206d75c..922a87abddf26d 100644 --- a/packages/react-native/scripts/cocoapods/privacy_manifest_utils.rb +++ b/packages/react-native/scripts/cocoapods/privacy_manifest_utils.rb @@ -50,7 +50,7 @@ def self.add_aggregated_privacy_manifest(installer) end def self.get_application_targets(user_project) - return user_project.targets.filter { |t| t.symbol_type == :application } + return user_project.targets.filter { |t| t.respond_to?(:symbol_type) && t.symbol_type == :application } end def self.read_privacyinfo_file(file_path)