Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Comments on pod 0.1.0-dev not accepted for required version 0.1.0 (without -dev suffix)

Post

pod 0.1.0-dev not accepted for required version 0.1.0 (without -dev suffix)

+2
−0

I have following setup:

  1. flutter plugin with an example app
  2. the plugin depends on a native library (flutter_plugin.podspec contains s.dependency 'native-lib', '0.1.0')
  3. for local development I pull in the native library in the example app Podfile via pod 'native-lib', :path => '../../dependencies/native-lib/ios/'
  4. the local native-lib.podspec sets s.version = '0.1.0-dev'

With this setup I would expect pods install to pull in the local lib. Instead, it says:

[!] CocoaPods could not find compatible versions for pod "native-lib":
      In Podfile:
        native-lib (from `../../dependencies/native-lib/ios/`)

        flutter_plugin (from `.symlinks/plugins/flutter_plugin/ios`) was resolved to 0.0.1, which depends on
          native-lib (= 0.1.0,)

Not even specifying s.dependency 'native-lib', '0.1.0', '0.1.0-dev' (or s.dependency 'native-lib', '0.1.0-dev', '0.1.0') in the .podspec works. What does work is using 0.1.0-dev but that will probably break when the real 0.1.0 is offered.

Why does the Podfile/podspec not accept 0.1.0-dev when the requirement is 0.1.0?

The Podfile documentation says:

~> 0.1.3-beta.0 Beta and release versions for 0.1.3, release versions up to 0.2 excluding 0.2. Components separated by a dash (-) will not be considered for the version requirement.

But even specifying ~> 0.1.0 as required version does not pick up 0.1.0-dev.

The podspec documentation does not mention dash suffixes.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (1 comment)
General comments
Someoneā€­ wrote about 4 years ago

Looks like this could be broken due to an unsupported workflow: https://github.com/CocoaPods/CocoaPods/issues/2672#issuecomment-176998564 The dev team basically said: We don't need this feature so you don't too.