Skip to content

pod install fails when using latest Swinject, SwinjectStoryboard and SwinjectPropertyLoader beta versions #5

@mikeseghers

Description

@mikeseghers

Since SwinjectPropertyLoader 1.0.0-beta.1 has a dependency on Swinject 2.0.0-beta.1, cocoa pods is confused when also having Swinject 2.0.0-beta.2 as a dependency in your project.

Here's an excerpt from the podfile:

pod 'Swinject', '2.0.0-beta.2'
pod 'SwinjectStoryboard', '1.0.0-beta.2'
pod 'SwinjectPropertyLoader', '1.0.0-beta.1'

and this is the output when trying pod install

Analyzing dependencies
[!] Due to the previous naïve CocoaPods resolver, you were using a pre-release version of 
`Swinject`, without explicitly asking for a pre-release version, which now leads to a conflict. 
Please decide to either use that pre-release version by adding the version requirement to
your Podfile (e.g. `pod 'Swinject', '= 2.0.0-beta.2'`) or revert to a stable version by running 
`pod update Swinject`.

neither of the suggestions work BTW. pod update Swinject gives the following (expected) outcome:

Analyzing dependencies
[!] Unable to satisfy the following requirements:

- `Swinject (= 2.0.0-beta.2)` required by `Podfile`
- `Swinject (= 2.0.0-beta.1)` required by `SwinjectPropertyLoader (1.0.0-beta.1)`
- `Swinject (= 2.0.0-beta.2)` required by `SwinjectStoryboard (1.0.0-beta.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