Closed rahul-malik closed 4 years ago
Maybe pod spec lint
could be added to the CI checks, too.
Hey @rahul-malik, thanks for the PR 👍 We shall review when priorities allow!
@rahul-malik - I don't believe this change works as expected, despite the lint check.
If you run the script at test/test-react-native-pod-build.sh
with the updated BugsnagReactNative.podspec
, it builds however if you attempt to import these headers in the AppDelegate (as per the online docs) then it seems to only find files from the first element of the public_header_files
array (from what I can tell):
#import <BugsnagReactNative/BugsnagReactNative.h>
#import "BugsnagConfiguration.h"
I've been unable to find a syntax, other than a single string, that works. Interestingly the examples in the PodSpec DSL docs only show a single string (unlike source_files
): https://www.rubydoc.info/github/CocoaPods/Core/master/Pod/Specification/DSL#public_header_files=-instance_method.
Hi @rahul-malik
Closing this as a fix is in the latest release. This fix was first introduced in v2.23.8.
Goal
Address issues preventing Cocoapods integration which regressed
Changeset
The current podspec fails linting
Changed
We need to change the multiple paths in
s.public_header_files
to be comma-separated vs using the concatenation (+
) operator which combines the multiple paths into a single path which matches no files in the repository.Tests
Re-ran linting to confirm
public_header_paths
issue was resolvedDiscussion
Alternative Approaches
N/A
Outstanding Questions
Linked issues
N/A
Review
For the submitter, initial self-review:
For the pull request reviewer(s), this changeset has been reviewed for: