Search code examples
cocoapodspodspec

CocoaPods spec does not copy bundle to the app


I'm creating a private podspec (subspec actually) for my library that comes with a 3rd party .bundle file. I'm trying to copy the bundle by specifying it with the resources keyword like this in the spec

{
  "name": "MyPod",
  "source_files": [
    "MyPod/*.{h,m}"
  ],
  "preserve_paths": "MyPod/lib/**",
  "vendored_frameworks": "lib/ApplifierImpact.framework",
  "frameworks": "ApplifierImpact",
  "resources": "lib/ApplifierImpact.bundle"
}

but the ApplifierImpact.bundle is not present in the Pods-MyApp-resources.sh script.

what am I doing wrong ?

cheers, Jan


Solution

  • it was actually a path problem. It should be

    "resources": "MyPod/lib/ApplifierImpact.bundle"