facebookincubator / spectrum

A client-side image transcoding library.
https://libspectrum.io
MIT License
1.99k stars 165 forks source link

iOS - Podfile Configuration Conflicts #1833

Open zfir opened 2 years ago

zfir commented 2 years ago

Hello

I have an issue when using use-frameworks!. I am using a cordova project and I have different pods configuration for different plugins. Some of the them uses use-frameworks! and some of them don't as you see below:

Example Configuration 1

<podspec>
    <config>
      <source url="https://cdn.cocoapods.org/"/>
    </config>
    <pods use-frameworks="true">
          <pod name="BugfenderSDK" spec="~> 1.9.2" />
      </pods>
  </podspec>

Example Configuration 2

<podspec>
    <config>
      <source url="https://cdn.cocoapods.org/"/>
    </config>
    <pods>
        <pod name="AFNetworking" spec="~> 4.0.1" />
    </pods>
</podspec>

Spectrum Configutation on Plugin(https://github.com/spoonconsulting/cordova-plugin-spectrum)

<podspec>
    <config>
        <source url="https://cdn.cocoapods.org/"/>
    </config>
    <pods>
        <pod name="SpectrumKit/Base" spec="~> 1.2.0" />
        <pod name="SpectrumKit/Plugins/Jpeg" spec="~> 1.2.0" />
        <pod name="SpectrumKit/Plugins/Png" spec="~> 1.2.0" />
    </pods>
</podspec>

When XCode is compiling the project, it is compiling it as a single Podfile and there is conflicts between these configurations.

As per your documentation, we can see that Spectrum does not support use-frameworks!. We are using version 1.2.0 of this library. Can you please suggest how we can fix that?

Thanks.

Regards, Zafir

rahulvyas commented 2 years ago

Check this thread https://github.com/facebookincubator/spectrum/issues/190#issuecomment-538326847