Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update my libraries #953

Merged
merged 2 commits into from

5 participants

@soffes

No description provided.

soffes added some commits
@soffes soffes Add SSPullToRefresh 1.0.2 e5373ef
@soffes soffes Update 1.0.2 SSToolkit spec.
Looks like someone else added this. I have just created the 1.0.2 tag, so it was probably failing before.
d79f806
@orta
Owner

Great, that looks good @soffes. Do you want commit access to be able to do this without PRs?

@orta orta merged commit ca64c32 into from
@travisjeffery

The SSToolkit spec's currently messed right now since there's no 1.0.2 tag in the repo.

@keith
Collaborator

@soffes did say he created a 1.0.2 tag, it looks like he pushed the commit but not the tag refs. Also @fictorial may want to submit a new spec or talk to @soffes about his changes in the previous 1.0.2 spec.

@soffes

Fixed.

@keith
Collaborator

Awesome thanks!

@cabbiepete

Since the update to this spec I can no longer install it. It fails on the post_install resources build saying

xcodebuild: error: 'SSToolkit.xcodeproj' does not exist.
[!] Failed to generate SSToolkit resources bundle

Any ideas?

Collaborator

Try cleaning out your ~/Library/Caches/CocoaPods folder and try to run pod install --verbose again and toss the output in here.

Cleaned out as above then ran with --verbose here's the output (there's more above that succeeded but seems irrelevant let me know if its useful). Interestingly the only thing added to ~/Library/Caches/CocoaPods folder is a Git/7f8089a4... folder which is a repo for another pod I am using. I.e. the git repo for SSToolKit isn't in there which would explain why SSToolKit.xcodeproj isn't found but not as to why it isn't downloaded.

Generating SSToolkit resources bundle

Build settings from command line:
    CONFIGURATION_BUILD_DIR = ../Resources

xcodebuild: error: 'SSToolkit.xcodeproj' does not exist.
[!] Failed to generate SSToolkit resources bundle

/Users/cabbiepete/.cocoapods/master/SSToolkit/1.0.2/SSToolkit.podspec:24:in `block in post_install'
/Users/cabbiepete/.cocoapods/master/SSToolkit/1.0.2/SSToolkit.podspec:20:in `chdir'
/Users/cabbiepete/.cocoapods/master/SSToolkit/1.0.2/SSToolkit.podspec:20:in `post_install'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/installer.rb:157:in `block (2 levels) in run_post_install_hooks'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/installer.rb:156:in `each'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/installer.rb:156:in `block in run_post_install_hooks'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/installer.rb:155:in `each'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/installer.rb:155:in `run_post_install_hooks'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/installer.rb:127:in `block (2 levels) in install!'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/user_interface.rb:77:in `message'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/installer.rb:125:in `block in install!'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/user_interface.rb:37:in `section'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/installer.rb:112:in `install!'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/command/install.rb:46:in `run_install_with_update'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/command/install.rb:51:in `run'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/lib/cocoapods/command.rb:75:in `run'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/gems/cocoapods-0.16.1/bin/pod:16:in `<top (required)>'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/bin/pod:19:in `load'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/bin/pod:19:in `<main>'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
/Users/cabbiepete/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'

If I revert the podspec back to before this commit it works fine (although that's expected I guess).

Collaborator

What's in the yourproject/Pods/SSToolkit folder?

pwd
~/myproject/Pods/SSToolkit
➜ SSToolkit git:(develop) ✗ ls -la
total 24
drwxr-xr-x 7 cabbiepete staff 238 3 Sep 14:47 .
drwxr-xr-x 22 cabbiepete staff 748 18 Jan 11:46 ..
drwxr-xr-x 20 cabbiepete staff 680 3 Sep 14:47 Assets
-rw-r--r-- 1 cabbiepete staff 1059 3 Sep 14:47 LICENSE
-rw-r--r-- 1 cabbiepete staff 1886 3 Sep 14:47 Readme.markdown
drwxr-xr-x 104 cabbiepete staff 3536 3 Sep 14:47 SSToolkit
-rw-r--r-- 1 cabbiepete staff 1023 3 Sep 14:47 SSToolkit.podspec

Collaborator

FIX

Ok so the issue is that you still have files from the old spec that pointed to this repo instead of Sam's. You can tell because you have the Assets folder instead of Resources (IMO this shouldn't have been merged).

You should be able to fix it by removing the pod 'SSToolkit' ... from your Podfile run pod install so it cleans up all the old SSToolkit stuff, add it back to your podfile and install again. That should clean up all the crap. (You may want to clean out that Caches folder again in-between)

Yep that fixed it. And IMO I agree another version would have been much better i.e. 1.0.3 I really didn't expect something to change when I changed nothing. Anyways issue and fix documented here for others now thanks for your help.

Collaborator

Awesome! Let us know if you need anything else!

So do need anything from me?

Don't think so all sorted. Hopefully not too many others have the same issue but if they do hopefully they find this. Thanks again for the toolkit :-).

Collaborator

@soffes the issue is that the fork that used to be 1.0.2 changed the Resources folder to Assets (apparently to fix some simulator) issue and it had to be cleaned about because yours was looking for resources instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 31, 2012
  1. @soffes

    Add SSPullToRefresh 1.0.2

    soffes authored
  2. @soffes

    Update 1.0.2 SSToolkit spec.

    soffes authored
    Looks like someone else added this. I have just created the 1.0.2 tag, so it was probably failing before.
This page is out of date. Refresh to see the latest.
View
16 SSPullToRefresh/1.0.2/SSPullToRefresh.podspec
@@ -0,0 +1,16 @@
+Pod::Spec.new do |s|
+ s.name = 'SSPullToRefresh'
+ s.version = '1.0.2'
+ s.summary = 'Simple and highly customizable pull to refresh view.'
+ s.homepage = 'https://github.com/samsoffes/sspulltorefresh'
+ s.author = { 'Sam Soffes' => 'sam@soff.es' }
+ s.source = { :git => 'https://github.com/soffes/sspulltorefresh.git', :tag => '1.0.2' }
+ s.license = {
+ :type => 'MIT',
+ :file => 'LICENSE'
+ }
+ s.source_files = '*.{h,m}'
+ s.description = 'SSPullToRefresh is a simple andhighly customizable pull to refresh view. It lets you implement a content view separate so you don\'t have to hack up the pulling logic everything you want to customize the appearance.'
+ s.platform = :ios
+ s.requires_arc = true
+end
View
33 SSToolkit/1.0.2/SSToolkit.podspec
@@ -1,23 +1,34 @@
Pod::Spec.new do |s|
- s.name = 'SSToolkit'
- s.version = '1.0.2'
- s.platform = :ios
- s.summary = 'A collection of well-documented iOS classes for making life easier.'
- s.homepage = 'http://sstoolk.it'
- s.author = { 'Sam Soffes' => 'sam@samsoff.es' }
- s.license = 'MIT'
- s.source = { :git => 'https://github.com/fictorial/sstoolkit.git', :tag => '1.0.2' }
-
+ s.name = 'SSToolkit'
+ s.version = '1.0.2'
+ s.platform = :ios
+ s.summary = 'A collection of well-documented iOS classes for making life easier.'
+ s.homepage = 'http://sstoolk.it'
+ s.author = { 'Sam Soffes' => 'sam@soff.es' }
+ s.source = { :git => 'https://github.com/soffes/sstoolkit.git', :tag => '1.0.2' }
s.description = 'SSToolkit is a collection of well-documented iOS classes for making life ' \
'easier by solving common problems all iOS developers face. Some really ' \
'handy classes are SSCollectionView, SSGradientView, SSSwitch, and many more.'
-
- s.resources = 'Assets'
s.source_files = 'SSToolkit/**/*.{h,m}'
s.frameworks = 'QuartzCore', 'CoreGraphics'
s.requires_arc = true
+ s.license = { :type => 'MIT', :file => 'LICENSE' }
+ s.preserve_paths = 'SSToolkit.xcodeproj', 'Resources'
def s.post_install(target)
+ puts "\nGenerating SSToolkit resources bundle\n".yellow if config.verbose?
+ Dir.chdir File.join(config.project_pods_root, 'SSToolkit') do
+ command = "xcodebuild -project SSToolkit.xcodeproj -target SSToolkitResources CONFIGURATION_BUILD_DIR=../Resources"
+ command << " 2>&1 > /dev/null" unless config.verbose?
+ unless system(command)
+ raise ::Pod::Informative, "Failed to generate SSToolkit resources bundle"
+ end
+
+ File.open(File.join(config.project_pods_root, target.target_definition.copy_resources_script_name), 'a') do |file|
+ file.puts "install_resource 'Resources/SSToolkitResources.bundle'"
+ end
+ end
+
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
file.puts(%{#ifdef __OBJC__\n#import "SSToolkitDefines.h"\n#endif})
Something went wrong with that request. Please try again.