Skip to content

Commit

Permalink
Not all the targets have a defined symbol_type (#45591)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cxa authored and facebook-github-bot committed Jul 23, 2024
1 parent 700b403 commit c24929c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c24929c

Please sign in to comment.