Skip to content
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

Invalid representation for a dependency with spaces in its name #176

Closed
bcylin opened this issue Sep 27, 2014 · 12 comments · Fixed by #179
Closed

Invalid representation for a dependency with spaces in its name #176

bcylin opened this issue Sep 27, 2014 · 12 comments · Fixed by #179

Comments

@bcylin
Copy link

bcylin commented Sep 27, 2014

platform :ios, '7.1'

pod 'NBUImagePicker'

with CocoaPods 0.34.1, it encounters:

[!] Invalid string representation for a specification: NBUKit/Library/RestKit Support (2.2.2). The string representation should include the name and optionally the version of the Pod.

https://github.com/CocoaPods/Specs/blob/master/Specs/NBUKit/2.2.2/NBUKit.podspec.json
https://github.com/CocoaPods/Core/blob/0.34.1/lib/cocoapods-core/specification.rb#L123

Will this be an issue due to the regular expression change in 0.34.0? or it's a problem with the NBUKit podspec?

@segiddins
Copy link
Member

That pod spec has a space in the name of a subspec, which is believe is invalid.

@dlackty
Copy link
Contributor

dlackty commented Sep 28, 2014

cc/ @rivera-ernesto

@rivera-ernesto
Copy link

Removing that space. But I wonder what has changed that broke this only now.

@rivera-ernesto
Copy link

Indeed, broken by 0.34.1.
Something that should be probably fixed as not everyone will be quick to update not only their pods but their dependencies.
Besides supporting spaces is always a plus.


Even worse pod install/update fail despite renaming the subspec.
Only solution is to delete or manually edit Podfile.lock as well.

@segiddins
Copy link
Member

@fabiopelosin for now, do we just want to relax the regex?

@fabiopelosin
Copy link
Member

👍

@colasbd
Copy link

colasbd commented Sep 30, 2014

+1

1 similar comment
@benjamincombes
Copy link

👍

@kylef
Copy link
Contributor

kylef commented Sep 30, 2014

This has been fixed by 51bf848 and later on, we shouldn't allow spaces in sub-specs (tracked by #177).

@bcylin
Copy link
Author

bcylin commented Sep 30, 2014

Thanks! 👍

vixentael pushed a commit to stanfy/SFCoreUtils that referenced this issue Oct 3, 2014
according to:
CocoaPods/Core#176
CocoaPods/CocoaPods#1722 (comment)

everything fails in cocoa pod 0.34.1 version
@gunta
Copy link

gunta commented Feb 9, 2015

@rivera-ernesto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants