Skip to content

[ios] SpineCppLite module.modulemap header path error causes sub-pod dependency build failure #2968

@m15822049431-design

Description

@m15822049431-design

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 found
  • Could 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

  1. Create a sub-pod (e.g., MySubPodModule) with s.dependency 'Spine', s.dependency 'SpineCppLite', s.dependency 'SpineShadersStructs'.
  2. Integrate this sub-pod into a project via CocoaPods.
  3. In the sub-pod’s code, add import Spine and 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions