facebookincubator/spectrum

iOS - Podfile Configuration Conflicts

zfir opened this issue · 1 comments

zfir commented

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