[MacRuby-devel] macruby singleton_methods
Hi, Suppose: class User; def self.all;end end With Ruby 1.8, and 1.9.2 interpreters User.singleton_methods #=> [:all] With Macruby you get []. Normal ? Is it an issue to add ? Can we interpret 1.9.2 code with macruby and expect the same result ? Thanks. ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] macruby singleton_methods
Yes you can compare MacRuby against 1.9.2. I *think* the best would be to compare against 1.9 trunk, but Laurent might have to correct me on that. So yes, please file a ticket for this issue :) On Wed, May 11, 2011 at 1:24 PM, anoiaque wrote: > Hi, > > Suppose: class User; def self.all;end end > > > With Ruby 1.8, and 1.9.2 interpreters > > User.singleton_methods #=> [:all] > > With Macruby you get []. > > Normal ? > Is it an issue to add ? > > > > > Can we interpret 1.9.2 code with macruby and expect the same result ? > > > > Thanks. > > > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] MacRuby Application .pkg install results in Unsupported Architecture
Thanks for taking the time to look into this Josh. I hadn't used the file command on my bundle contents. After doing this on a vanilla MacRuby app, I did not find any files that were not x86_64. Also, I've been installing the latest nightly builds of Macruby. I'm sure it is something silly that I'm doing! Here is a github project of the vanilla app I'm using to test this: [email protected]:danielwestendorf/BlankMacRubyApp.git Thanks again for all the help! dw On Tue, May 10, 2011 at 10:39 PM, Joshua Ballanco wrote: > Hey Daniel, > > Check in the console (/Applications/Utilities/Console.app) to see if there > are any more specific warnings that get logged when you attempt to log your > app. Have you verified the built architectures of all the binaries in your > .app bundle with `file`? Also, you might try re-installing MacRuby. If you > don't get this resolved by the weekend, I should be able to take a closer > look. > > Cheers, > > Josh > On Tuesday, May 10, 2011 at 11:43 PM, Daniel Westendorf wrote: > > Hey all, > > > > I'm still having trouble with this. Does anyone else have any input? > > > > Like I said, I can create a vanilla MacRuby application in Xcode4, remove > the i386 from the Valid Architectures and setting Architecture to 64-bit > Intel, Archive using the Deployment target, and then Share and create a > .pkg. The resulting pkg results in the same error "Appname can't be > installed on this computer". I can provide an example app if someone wants > to look closer? > > > > Thanks again for looking, > > > > Daniel > > > > On Mon, May 9, 2011 at 2:33 PM, Daniel Westendorf > wrote: > > > Here is a screenshot of my project's build settings: > http://imgur.com/pGoLF > > > > > > Thoughts? Am I looking in the wrong place? > > > > > > dw > > > > > > > > > On Mon, May 9, 2011 at 12:18 PM, Dominic Dagradi > wrote: > > > > If it's a blank MacRuby application, definitely check the "Valid > Architectures" again, for *all* configurations. You might be editing only > Debug, and not Release. > > > > > > > > Dominic Dagradi > > > > Developer, Bearded > > > > [email protected] > > > > http://bearded.com > > > > 412.376.7273 tel > > > > 412.945.6017 fax > > > > > > > > > > > > > > > > On Monday, May 9, 2011 at 10:55 AM, Daniel Westendorf wrote: > > > > > That is good to know. I don't think it relates to my specific > problem though, since I'm getting the same error with a "blank" MacRuby > application generated from Xcode, or am I misunderstanding? > > > > > > > > > > Thanks, > > > > > Daniel > > > > > > > > > > On Mon, May 9, 2011 at 11:42 AM, Dominic Dagradi < > [email protected]> wrote: > > > > > > It's not necessarily MacRuby or your application that is raising > the invalid architecture warning. Any framework that contains PPC code will > now flag your binary with Apple, so you need to remove the offending code. > Growl seems to be a pretty common one in this case. > > > > > > > > > > > > Check out the comments on this question: > http://stackoverflow.com/questions/5684244/mac-app-store-binary-rejection-question > > > > > > > > > > > > Dominic Dagradi > > > > > > Developer, Bearded > > > > > > [email protected] > > > > > > http://bearded.com > > > > > > 412.376.7273 tel > > > > > > 412.945.6017 fax > > > > > > > > > > > > > > > > > > On Monday, May 9, 2011 at 10:39 AM, Daniel Westendorf wrote: > > > > > > > Hi Thomas, > > > > > > > > > > > > > > Thanks for the response. > > > > > > > > > > > > > > I actually already had both the ARCHS and VALID_ARCHS set > exactly as you do. I'm also using codesign to sign the .app before I submit > it. I'm still getting the same error. > > > > > > > > > > > > > > On a side note, if I create a fresh MacRuby application, don't > change a thing, attempt to Archive it as a .pkg, then try to install, I get > the same error "Testapp can't be installed on this computer". It looks like > there is a default setting that is causing this. Any other suggestions? > > > > > > > > > > > > > > Thanks! > > > > > > > > > > > > > > On Mon, May 9, 2011 at 12:00 AM, Thomas R. Koll < > [email protected]> wrote: > > > > > > > > Hi Daniel, > > > > > > > > > > > > > > > > I have those two related to the arch: > > > > > > > > > > > > > > > > ARCHS = $(ARCHS_STANDARD_64_BIT) > > > > > > > > VALID_ARCHS = x86_64 > > > > > > > > > > > > > > > > Don't forget that you have to codesign the rbo files, > > > > > > > > a look into the resulting app's CodeResources will tell you. > > > > > > > > > > > > > > > > and welcome to the shop :) > > > > > > > > > > > > > > > > > > > > > > > > Am 09.05.2011 um 02:47 schrieb Daniel Westendorf: > > > > > > > > > > > > > > > > > Hi all, > > > > > > > > > > > > > > > > > > I'm trying to get my application submitted to the Mac App > Store, and I've gotten the following response: > > > > > > > > > > > > > > > > > > Unsupported Architecture - Application executables may > support either or both of the Intel architectures: > > > > > > > > > > > > > > >
[MacRuby-devel] Class MacRuby implemented in two locations
Hi Everyone,I am getting a strange error when I try to build a project. I made some minor changes to an application and now when I build the app I am getting this message:objc[5058]: Class MacRuby is implemented in both /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/libmacruby.dylib and /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/libmacruby.dylib. One of the two will be used. Which one is undefined. objc[5058]: Class MacRubyDebuggerConnector is implemented in both /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/libmacruby.dylib and /Users/shaun/Library/Developer/Xcode/DerivedData/Eos_Kids_Kiosk-bmxdeyuthjvgxchcwptzlmfrxpil/Build/Products/Debug/Eos Kids Kiosk.app/Contents/MacOS/../Frameworks/MacRuby.framework/Versions/Current/usr/lib/libmacruby.dylib. One of the two will be used. Which one is undefined.The project builds fine and runs on my computer. When I deploy it it is only 28MB (I seem to remember the apps being about 50MB with MacRuby embeded) and it crashes on the computer I am deploying to. In the console log on the other computer I get a "Job appears to have crashed: Abort Trap" error message. I think my framework isn't embedding properly but I can't see where the problem is in the Xcode Setup. Any suggestions on where to start looking?Thanks,Shaun___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] macruby_deploy not embedding all of MacRuby
I was able to fix this problem with the following script: #!/bin/sh APP="MyApp" SOURCE_BUILD_DIR="build/Release" TARGET_BUILD_DIR="build/Deploy" LOCAL="$SOURCE_BUILD_DIR/$APP.app/" REMOTE="$TARGET_BUILD_DIR/$APP.app/" rsync --progress $* -avzut $LOCAL $REMOTE --exclude .DS_Store --copy-links PATH="$PATH:/usr/local/bin" macruby_deploy --embed --compile "$REMOTE" Still not sure with the cause of the bug is, something to do with macruby_deploy not embedding symbolically linked files. On Fri, Mar 11, 2011 at 4:56 PM, Kevin Colyar wrote: > MD5 hashes match. I am building my app on an encrypted disk image if that > would matter at all. I wouldn't think it would affect it. > > My tester is on a 64bit machine. I'll try building it on 0.9 and see if > that helps. > > Any idea why the directory size would be so dramatically different? > > Kevin > > > On Fri, Mar 11, 2011 at 4:49 PM, Laurent Sansonetti > wrote: > >> Hi Kevin, >> >> It sounds like a data corruption problem, but it could also maybe due to >> running the application on an Intel 32-bit machine (because, as of 0.10, >> i386 support is not built in anymore by default). >> >> I would run md5 hashes on both the embedded dylib and the one in >> /Library/Frameworks to ensure that no data corruption happened. >> >> Laurent >> >> On Mar 11, 2011, at 3:33 PM, Kevin Colyar wrote: >> >> I'm running the following command to prepare my app to share with testers. >> >> PATH="$PATH:/usr/local/bin" macruby_deploy --embed --compile >> "$TARGET_BUILD_DIR/$PROJECT_NAME.app" >> >> On my machine, its says the app directory is ~25MB but testers get the >> following error when they try to run it: >> >> dyld: Library not loaded: >> @executable_path/../Frameworks/MacRuby.framework/Versions/0.10/usr/lib/libmacruby.dylib >> Referenced from: /Applications/ViKing.app/Contents/MacOS/ViKing >> Reason: no suitable image found. Did find: >> >> /Applications/ViKing.app/Contents/MacOS/../Frameworks/MacRuby.framework/Versions/0.10/usr/lib/libmacruby.dylib: >> unknown file type, first eight bytes: 0x6C 0x69 0x62 0x6D 0x61 0x63 0x72 >> 0x75 >> >> /Applications/ViKing.app/Contents/MacOS/../Frameworks/MacRuby.framework/Versions/0.10/usr/lib/libmacruby.dylib: >> unknown file type, first eight bytes: 0x6C 0x69 0x62 0x6D 0x61 0x63 0x72 >> 0x75 >> Trace/BPT trap >> >> When I upload the app directory to a remote server it's ~55MB and works >> only other's machines. >> >> I assume this is due to symbolic links. Has anyone else seen this or have >> a fix for it? Perhaps I'm missing a flag that I need to pass to >> macruby_deploy. >> >> Thanks, >> Kevin >> >> -- >> Kevin Colyar >> http://kevin.colyar.net >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> > > > -- > Kevin Colyar > http://kevin.colyar.net > > -- Kevin Colyar http://kevin.colyar.net ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Class MacRuby implemented in two locations
I figured out my issue. I had a buggy script running on a second thread which wasn't reporting the error. Is there a way to have a second thread throw an error back to Xcode when something goes wrong?
NSThread.detachNewThreadSelector('control_server:', toTarget: self, withObject: 'dummy')I am still getting the "Class MacRuby is implemented in both..." error, although it doesn't seem to be breaking anything. Is this something I should worry about?Thanks,ShaunOn May 11, 2011, at 03:26 PM, saugust wrote:
Hi Everyone,I am getting a strange error when I try to build a project. I made some minor changes to an application and now when I build the app I am getting this message:objc[5058]: Class MacRuby is implemented in both /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/libmacruby.dylib and /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/libmacruby.dylib. One of the two will be used. Which one is undefined.
objc[5058]: Class MacRubyDebuggerConnector is implemented in both /Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/libmacruby.dylib and /Users/shaun/Library/Developer/Xcode/DerivedData/Eos_Kids_Kiosk-bmxdeyuthjvgxchcwptzlmfrxpil/Build/Products/Debug/Eos Kids Kiosk.app/Contents/MacOS/../Frameworks/MacRuby.framework/Versions/Current/usr/lib/libmacruby.dylib. One of the two will be used. Which one is undefined.The project builds fine and runs on my computer. When I deploy it it is only 28MB (I seem to remember the apps being about 50MB with MacRuby embeded) and it crashes on the computer I am deploying to. In the console log on the other computer I get a "Job appears to have crashed: Abort Trap" error message. I think my framework isn't embedding properly but I can't see where the problem is in the Xcode Setup. Any suggestions on where to start looking?Thanks,Shaun___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
