Skip to content

Commit b9f7005

Browse files
cxaTitozzz
authored andcommitted
Not all the targets have a defined symbol_type (#45591)
Summary: Errors occurred on running `pod install`: ``` [!] An error occurred while processing the post-install hook of the Podfile. undefined method `symbol_type' for #<Xcodeproj::Project::Object::PBXAggregateTarget:0x000000010f6ea568> [redact]/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:53:in `block in get_application_targets' ``` ## Changelog: [iOS] [Fixed] - Fix error on handling privacy manifest Pull Request resolved: #45591 Reviewed By: cipolleschi Differential Revision: D60107607 Pulled By: dmytrorykun fbshipit-source-id: 316220fe54174b18c9b61775f807d5d05d9f0240
1 parent 1835245 commit b9f7005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/scripts/cocoapods/privacy_manifest_utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def self.add_aggregated_privacy_manifest(installer)
5050
end
5151

5252
def self.get_application_targets(user_project)
53-
return user_project.targets.filter { |t| t.symbol_type == :application }
53+
return user_project.targets.filter { |t| t.respond_to?(:symbol_type) && t.symbol_type == :application }
5454
end
5555

5656
def self.read_privacyinfo_file(file_path)

0 commit comments

Comments
 (0)