Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Package Naming Prevents Release on SPM and Cocoapods #38

Open
harinath01 opened this issue Oct 12, 2023 · 0 comments
Open
Assignees

Comments

@harinath01
Copy link

Describe the bug (对 bug 进行描述)

  • We integrated your package into our package to parse the m3u8 files and we planned to release it in SPM and Cocoapods.
  • But I am facing this issue `error: no such module 'M3U8Parser' when we try to release our package in Cocoapods because the package was named "M3u3Parser" in SPM and "M3u8Kit" in CocoaPods and we're importing the package as "M3u8Parser", and getting the above error.
  • This inconsistency is preventing us from successfully publishing our package on both SPM and Cocoapods.

To Reproduce (产生步骤)
Steps to reproduce the behavior:

  1. Git clone https://github.com/testpress/iOSPlayerSDK
  2. Checkout to this branch release-in-cocoapods
  3. Run pod spec lint TPStreamsSDK.podspec
  4. See error

Expected behavior (期待的行为)

  • We expect the library's name to be consistent across different package managers to avoid conflicts.

Additional context (附加的相关信息)

  • Do you have any potential workarounds to address this issue, or is there any way I can assist in resolving it? I'm more than willing to help.
harinath01 added a commit to testpress/iOSPlayerSDK that referenced this issue Oct 13, 2023
- Added podspec file for our package to release it in Cocoapods.
- Added a compiler flag to import M3U8Parser dependency using the name
`M3U8Kit` while building the package for Cocoapods to prevent import
errors as they have named the package with a different name in
Cocoapods.
- Raised an issue in the M3U8Parser repository to resolve this naming
inconsistency between different package managers,
[issue](M3U8Kit/M3U8Parser#38).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants