-
Notifications
You must be signed in to change notification settings - Fork 50
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
installation errors on rake #1
Comments
what's interesting is, even after you comment out, or remove the dependency lines from app.pods, when you run a 'rake config' it still shows up in pods |
I'm seeing something similar, but it occurs when I attempt using RestKit. |
@mattgreen Be sure to require one of the RestKit ‘subspecs’ not just ‘RestKit’. See CocoaPods/CocoaPods#160 |
Yeah I figured that out by trial and error. :) I still get this: |
yah, same for me, it's kind've hit or miss gonna see if I can take a look into it as well |
Is it, or is it not always with the same libraries? |
let me do a step by step:
https://gist.github.com/42f5efdc09c6b7200a5e so I'm not sure if that has any effect on any type of caching or if it's just a display bug
➥ rake
|
I've never seen CocoaPods + Motion together install anything yet. Is there a super-simple library I can try? Even JSONKit (as shown in the example) produces the same result. I just tried making a regular XCode project and using CocoaPods with RestKit (using all the subspecs) and it builds fine. |
There's a line in vendor.rb in the method build_static where this glob exists:
This doesn't seem to be finding all the object files in the directory tree (for ASIHTTPRequest and JSONKit at least). Replacing that glob with:
made the build task find all the .o output files and build the .a library correctly. The new problem is that the Cocoapod gem doesn't seem to be passing all of the .m files in to be built in the first place (for some reason it isn't building ASIHTTPRequest/Classes/ASIAuthenticationDialog.m in particular...) |
Good find! Will you submit a pull-request for that?
I think I know the problem, will look in a bit. |
Will do.
Hacked in a different source file finder ( |
…fig.ios?` to work properly. Part of #1.
Actually, I mistook the file that the problem is in for a file in this repo. |
@danlucraft I’ve just pushed a fix for the other issue you found, thanks for the report! |
@danlucraft what vendor.rb file did you make changes to.. what is the file loc? |
/Library/RubyMotion/lib/motion/project/vendor.rb iirc On 4 mei 2012, at 20:18, Robert Malkoreply@reply.github.com wrote:
|
Where are we on this, has the fix been applied or should I manually put in a fix? @danlucraft I changed the line vendor.rb and JSONKit is building now but is there another line I should change somewhere? |
+1 Got the same problem with RestKit. |
Same problem with GMGridView and AFNetworking. Oddly enough, |
I'm seeing a similar issue as ntodd. A simple
However, a |
+1 , with rake --trace works for me as well |
To fix the "Pathname into String" issue temporarily, try this: /Library/RubyMotion/lib/motion/project/vendor.rb Change line 22 from:
To:
|
Thanks! that worked |
I was getting the same Pathname error whilst using JSONKit pod (RVM 1.13.0 and Ruby 1.9.3p125). Using system ruby (1.8.7) via a .rvmc file silenced the Pathname error. Hope this helps. |
In |
Filed a support ticket via the motion support on this one as well, I'm not having any luck with the suggested fix of: line 22: Running RVM 1.8.6 & Ruby 1.9.2p290 |
I'm on 10.6.8 running rbenv and Ruby 1.9.3-p194 and also had these issues. Fixed for me with the changes to Line 22: |
@alistairholt Did you do anything other than just open the file, make those changes, save the file & then re-run |
@macfanatic nope, that was all I did to get it working. I have since made some other changes to |
@macfanatic after making those changes, what error do you get? |
I want RestKit installed, but for the time being I'm working with just JSONKit. So, after making those changes to
In which case, I go in and manually create
My current $:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'motion-cocoapods'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'xxxx'
app.identifier = 'xxxxx'
app.deployment_target = '5.0'
app.device_family = :ipad
app.frameworks += %w(CoreData CFNetwork Security MobileCoreServices SystemConfiguration QuartzCore)
# app.libs << '/usr/lib/libxml2.dylib'
app.interface_orientations = [:landscape_left, :landscape_right]
app.pods do
# dependency 'Reachability', '~> 2.0.4'
# dependency 'RestKit/Network'
# dependency 'RestKit/UI'
# dependency 'RestKit/ObjectMapping'
# dependency 'RestKit/ObjectMapping/JSON'
dependency 'JSONKit'
end
end I'm in the process up updating RVM to |
I merged the changes in vendor.rb and they will appear in the next build (in a few hours hopefully). Thanks a lot guys for the detective work! |
And looking in |
If you create the dir manually CocoaPods thinks that the pod is already installed and skips it (not final behavior, just a stopgap solution). |
@irrationalfab Maybe just permission issues on the Currently I'm trying to get RestKit to install by placing the source in the app.vendor_project('vendor/RestKit', :xcode, target: 'RestKit') Appears that everything compiles just fine & the application launches, however when I go to use the class I get failed Objc stub errors:
Seems like something isn't quite right in the linking phase, am I right? |
@macfanatic I can't comment on RubyMotion side as I haven't played enough with it... yet. Regarding CocoaPods, I'm not aware of any issue that could result in not creating a Pod folder without raising an error. So my bet is in something like the permissions issues. When I have the chances to test the integration better I'll report back. |
@irrationalfab Does appear it was a permissions issue, as I tried setting all this up on my other Mac & had no issues getting the code downloaded when I ran Ie:
|
@macfanatic working on this as well.. FILEMD5HASH_EXTERN is defined in FileMD5Hash_Prefix.pch Looks like for some reason thats not being included while building? I was able to work around it by manually including it. to FileMD5Hash.h:30 Which successfully builds FileMD5Hash. But then.. get ready to run into build errors in RestKit land.. |
Yep, I get the following errors after making that suggested change:
Looks like prefix.pch files aren't being considered in the build process? |
@macfanatic That’s correct, currently they aren't. In the next release (not the upcoming one) we're going to change the way motion-cocoapods uses CocoaPods to make it work exactly like CocoaPods normally does, which will fix these issues. |
@alloy Out of curiosity, when do you expect the release that fixes these issues to be available? We're evaluating RubyMotion to use at the start of an iPad project and this appears to be the last big issue preventing us from going down this path. If it's going to be awhile out, not going to fit in our deadline :) Thanks! |
All of the original issues described in this ticket are fixed in RubyMotion 1.2 and the just released motion-cocoapods 1.0.1 gem. I will create a new ticket regarding the other issue. |
@macfanatic We will work on it on Friday. It will most likely be easy enough, but I can’t promise anything yet. Having said that, you should be probably be able to use CocoaPods as normal (i.e. add a Podfile), but without integrating it into App.xcodeproj (by omitting it from HTH. |
@alloy - Here's what I tried, per your previous suggestion:
Podfile
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'motion-cocoapods'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'xxx'
app.deployment_target = '5.1'
app.device_family = :ipad
app.frameworks += %w(CoreData CFNetwork Security MobileCoreServices SystemConfiguration QuartzCore)
app.interface_orientations = [:landscape_left, :landscape_right]
app.vendor_project('Pods', :xcode, target: 'Pods')
app.pods do
# dependency 'RestKit/Network'
# dependency 'RestKit/UI'
# dependency 'RestKit/ObjectMapping'
# dependency 'RestKit/ObjectMapping/JSON'
end
end Everything builds, but I end up with the following error:
This appears to the same error if I just download the RestKit source project & slap that in the |
@alloy The strange this is I can play around in the IRB-ish prompt via RubyMotion to my heart's content if I just use the RestKit classes & methods myself. However, the moment I access some code that was compiled using RestKit it fails with the |
FWIW, I also have gotten the Considering we're completely on a different problem from the original path error, this might belong in a new issue. |
please see gist: https://gist.github.com/794aa238835b9afe7583
after installing cocoapods and following the instructions, I added a few pods
when running rake, when it's trying to install it blows up with an error in the gist
The text was updated successfully, but these errors were encountered: