-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Issue Description
When integrating Spine, SpineCppLite, and SpineShadersStructs via CocoaPods (using podspecs from the 4.2 branch: https://raw.githubusercontent.com/EsotericSoftware/spine-runtimes/4.2/xxx.podspec), the build fails for sub-pod dependencies (e.g., a custom pod MySubPodModule that depends on Spine).
The error is:
Header 'spine-cpp-lite.h' not foundCould not build module 'SpineCppLite'Could not build Objective-C module 'Spine'
Root Cause
The module.modulemap of SpineCppLite in the 4.2 branch incorrectly references the header path. The actual header spine-cpp-lite.h is located in SpineCppLite/include/, but the modulemap declares header "spine-cpp-lite.h" (without the include/ directory prefix), leading to a file not found error during sub-pod compilation.
Reproduction Steps
- Create a sub-pod (e.g.,
MySubPodModule) withs.dependency 'Spine',s.dependency 'SpineCppLite',s.dependency 'SpineShadersStructs'. - Integrate this sub-pod into a project via CocoaPods.
- In the sub-pod’s code, add
import Spineand build.
Expected Behavior
The sub-pod should compile successfully without header/module errors, just like the main project.
Environment
- CocoaPods: 1.16.2
- Xcode: 16.0
- Spine Runtimes Branch:
4.2