-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Malformed version number string #7765
Comments
Command
Report
Stack
Plugins
Podfilesource 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
inhibit_all_warnings!
target 'GrandRoutes' do
pod 'AFNetworking', '~> 3.1.0'
pod 'SDWebImage'
pod 'Masonry', '~> 1.1.0'
pod 'UITableView+FDTemplateLayoutCell', '~> 1.4'
pod 'MBProgressHUD'
pod 'MJExtension', '~> 3.0.13'
pod 'DoImagePickerController', '~> 1.6'
pod 'Realm'
pod 'IQKeyboardManager', '~> 4.0.5'
pod 'TOCropViewController', '~> 2.0.7'
pod 'AXWebViewController', '~> 0.3.3'
pod 'BaiduMapKit', '~> 3.0.0'
pod 'SDCycleScrollView'
pod 'Meiqia'
pod 'FDFullscreenPopGesture'
pod 'CocoaAsyncSocket'
pod 'ZLPhotoBrowser'
pod "MWPhotoBrowser", :podspec =>'https://raw.githubusercontent.com/moinku07/MWPhotoBrowser/master/MWPhotoBrowser.podspec'
pod 'ZFPlayer'
end Error
|
also 'Malformed version number string'...OMG... |
@zedixns / @darkThanBlack It looks like this is crashing while trying to resolve the target swift version - Could you share an Xcode project that reproduces this please? |
@dantoml Unfortunately I am not able to share the project, because it's commercial. I can assist you in any other way, that is not sharing of any source code. Hope you understand. |
@zedixns Unfortunately the only way I can work on this further is with a full repro case (and I don't currently have a recent version of Xcode around to try creating projects with). The bare minimum we'd need would be a |
@dantoml
I have to note here that the actual project doesn't have any swift code in it. Don't know if that makes any difference. |
I haven't had the issue locally, but stumbled upon it in a Travis build. Turns out I can reproduce this locally by just updating to the latest rubygems.
|
Can you please try with CocoaPods master using https://bundler.io/? |
Yes we really need a sample project here demonstrating the issue. It will help debug it. |
Looks to be caused by the rubygems 2.7.7 release: rubygems/rubygems@v2.7.6...v2.7.7#diff-94d386526b8b558035d4e4c7602d647cR173 |
This appears to be fixed on master, we will most likely do a 1.5.3 release. |
I'm also having this issue even after uninstalling and installing an older version of cocoa pods it's not working anymore. I have tried: Nothing works Cocoapods is broken completely with this issue. |
I also encountered this issue. And I tried to start a new project, but the issue still exist while using pod install. |
bogon:PodTest deven$ pod install ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― Command
Report
Stack
Plugins
Podfile# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'PodTest' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for PodTest
pod 'AFNetworking'
target 'PodTestTests' do
inherit! :search_paths
# Pods for testing
end
target 'PodTestUITests' do
inherit! :search_paths
# Pods for testing
end
end Error
――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: If none exists, create a ticket, with the template displayed above, on: Be sure to first read the contributing guide for details on how to properly submit a ticket: Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods...
and 31 more at: |
It's been fixed, there is a PR for it. |
How can I get that fixed version? |
I have same issue :( |
I solved the problem by upgrading my ruby and reinstall the cocoa pod |
I also encountered this problem, and tried the following steps to solve it:
The problem is fixed |
@KumMadhu There is no version 1.7.2. Check the CocoaPods version with |
maybe it's xcode 10 beta .
I installed Xcode 9.4.1 and 10beta ,then I uninstall 10beta. Pass it |
I had the same problem with CocoaPods 1.5.3 when pushing https://github.com/kukushi/SideMenu. |
I unintall Xcode10beta fix it
Xing He <notifications@github.com>于2018年7月8日 周日下午3:25写道:
… I had the same problem with CocoaPods 1.5.3 when pushing
https://github.com/kukushi/SideMenu.
BTW, I have Xcode 9.4.1 and Xcode 10 installed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7765 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANUCyPyDMmj9DwbabV8jcvoDiiP0NBzoks5uEbP4gaJpZM4UIRWj>
.
|
@tanpengsccd |
gem 2.7.7 can not run cocoapods 1.3.x . 1.4.x then |
CocoaPods : 1.2.0 and ArgumentError - Malformed version number string |
i fixed it. gem 2.7.7 can not run cocoapods 1.3.x . 1.4.x then Successed |
if your rubyGems version is 2.7.7 or higher you just can do like this |
Error
――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: If none exists, create a ticket, with the template displayed above, on: Be sure to first read the contributing guide for details on how to properly submit a ticket: Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods...
and 34 more at: how to fix , who know ? thx 楼上大佬的方法解决了 我的gem 就是2.7.7的改成2.7.6的就好了 |
/Users/gongzelong/.rvm/gems/ruby-2.2.0/bin/pod install
CocoaPods : 1.2.1
Ruby lib dir : /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib
admindeMacBook-Pro:mall-ios gongzelong$ gem install rubygems-update -v 2.7.6
|
This should be a workaround for Cocoapod error "ArgumentError - Malformed version number string", caused by RubyGems v2.7.7 as described in CocoaPods/CocoaPods#7765, apparently fixed in Cocoapod 1.5.3 (CocoaPods/CocoaPods#7769)
Maybe you can update ruby to 2.4+ |
i had fixed by: sudo gem update --system 2.7.6 |
I am stuck on it from so many hours, tried everything: Taruns-MacBook-Air:ios tarunnarula$ pod install ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― Command
Report
Stack
Plugins
Podfile# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'kosara' do
# React Native third party dependencies podspecs for Kosara
# Required by RNFirebase
pod 'Firebase/Core'
#pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
end Error
――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: If none exists, create a ticket, with the template displayed above, on: Be sure to first read the contributing guide for details on how to properly submit a ticket: Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods...
Support will be appreciated |
maybe you have installed the bundler? |
@iPermanent Thank you very much for replying, I have done the same suggested by you, but still facing the same error: Taruns-MacBook-Air:ios tarunnarula$ pod install ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― Command
Report
Stack
Plugins
Podfile# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'kosara' do
# React Native third party dependencies podspecs for Kosara
# Required by RNFirebase
pod 'Firebase/Core'
#pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
pod 'yoga', :path => '../node_modules/ReactCommon/yoga'
# React Native
pod 'React', :path => '../node_modules', :subspecs => [
'Core',
'CxxBridge',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTImage',
'RCTNetwork',
'DevSupport'
]
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
end Error
――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: If none exists, create a ticket, with the template displayed above, on: Be sure to first read the contributing guide for details on how to properly submit a ticket: Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods...
and 1 more at: |
just noting that my bug report (malformed version number string) was closed as a duplicate of this. fwiw - it seems like a fairly simple bug to me if cocoapods fails on gem 2.7.7 without saying why. just checking the gem number and saying 'we can't run here' would have saved a bunch of time |
if you account was managered,fix it with gem update --system 2.3.0 -n /usr/local/bin |
podfile add inhibit_all_warnings! |
Report
What did you do?
pod install
What did you expect to happen?
Install all pod dependencies correctly.
What happened instead?
ArgumentError - Malformed version number string
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
##Additional details
Adding a --verbose flag to the install command gives a little bit more insight into what happened.
As you can see at the end when it does the project setup, it adds the targets with magic quotes which break the build.
The text was updated successfully, but these errors were encountered: