Re: [MacRuby-devel] Note of warning about Xcode 4
Hi I'm on OS X 10.6.6 with MacRuby 0.9 installed via RVM on a older i386 MacBookPro2,2. Check out this screenshot: http://www.delirium.ch/test/connections.png Due to the lack of templates, I've created the project in Xcode 3 and then worked with it in Xcode 4 - which worked just fine in the last beta, the GM and now the final. And it works as well for newly created XIBs, not just for the generated MainMenu.xib. Cheers, -sven ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Potential macirb issue
This worked fine on an older version of trunk that I had installed, but with the current trunk I can confirm the same problem. Can you please file a ticket? On Thu, Mar 10, 2011 at 9:01 PM, Mark Rada wrote: > Hey all, > > I am getting an error when I add a #to_s method to NSURL: > > ± irb > irb(main):001:0> class NSURL > irb(main):002:1> alias_method :to_s, :absoluteString > irb(main):003:0> end > => NSURL > irb(main):004:0> NSURL.URLWithString( 'macruby.org' ) > RuntimeError: can't modify frozen/immutable string > > irb(main):005:0> test = NSURL.URLWithString( 'macruby.org' ) > RuntimeError: can't modify frozen/immutable string > > irb(main):006:0> test.to_s > => "macruby.org" > irb(main):007:0> > > So the error seems to be macirb trying to do something to the string that is > returned from #to_s. > > I'm not sure if this is unique to MacRuby, as the CRuby documentation for > Object#to_s doesn't say whether the returned object should be frozen, but > should I be making #to_s return a mutable/unfrozen string? > > > Mark Rada > mr...@marketcircle.com > > > > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] re-implemention of attr_accessor and valueForKey:
Hi, Thanks for ticket and simplify the code. For a while I'll use class_eval to define a method which require KVC compliant. 2011/3/11 Thibault Martin-Lagardette : > Hi, > After fiddling a little bit with the code, I could not find the exact issue, > but could reduce the code a lot. > For the sake of it, I opened a Trac ticket with the reduced > code: https://www.macruby.org/trac/ticket/1188 > Cheers, > -- > Thibault Martin-Lagardette > > On Thursday, March 10, 2011 at 13:59, kyossi wrote: > > Hi, > > I'm plan to add some functionality to existing attr_accessor. > I've started with re-implement attr_accessor with same functionality, > but when I implement it by define_method, it failed with Segmentation > fault when I call valueForKey(:key). > > Am i doing wrong with class Base2??, > > The Code is > > #utility > class String > #upcase first char. "foo".upcaseFirstChar => "Foo" > def upcaseFirstChar > self[0].upcase + self[-self.size+1, self.size-1] > end > end > > #implement of my_attr_accessor with evaluate string. works fine > class Base > def self.my_attr_accessor(sym) > class_eval %{ > def #{sym} > @#{sym} > end > > def set#{sym.to_s.upcaseFirstChar}(val) > @#{sym} = val > end > }} > end > end > > class MyClass < Base > my_attr_accessor :foo > end > > > obj = MyClass.new > obj.setFoo(3) > p obj.foo #=>3 > p obj.valueForKey(:foo) #=>3 > > #another implement of my_attr_accessor > class Base2 > def self.my_attr_accessor(sym) > define_method(sym) do > instance__variable_get("@#{sym}") > end > > define_method("set#{sym.to_s.upcaseFirstChar}") do |val| > instance_variable_set("@#{sym}", val) > end > end > end > > class MyClass2 < Base2 > my_attr_accessor :foo > end > > obj2 = MyClass2.new > obj2.setFoo(7) > p obj2.foo #=>7 > p obj2.valueForKey(:foo) #=> Segmentation fault > > > = > $ macruby my_attr_accessor.rb > 3 > 3 > 7 > Segmentation fault > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Xcode 4 is out... any plan to integrate soon?
Ok . Seems like someone got it to work but did not explain how he did... On Mar 10, 2011, at 10:54 PM, Matt Aimonetti wrote: > Please refer to the other posts about the same topic sent today. > > - Matt > > On Thu, Mar 10, 2011 at 9:25 PM, Manu wrote: > Hi > > Now that Xcode 4 is out , and that MacRuby 0.9 is out, any plans to > integrate with Xcode 4? Just curious. I saw a post last month but was > wondering if there were any update > > Emmanuel > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Xcode 4 is out... any plan to integrate soon?
Indeed and others couldn't get Xcode to work. - Matt On Fri, Mar 11, 2011 at 8:34 AM, Manu wrote: > Ok . Seems like someone got it to work but did not explain how he did... > > > On Mar 10, 2011, at 10:54 PM, Matt Aimonetti wrote: > > Please refer to the other posts about the same topic sent today. > > - Matt > > On Thu, Mar 10, 2011 at 9:25 PM, Manu wrote: > >> Hi >> >> Now that Xcode 4 is out , and that MacRuby 0.9 is out, any plans to >> integrate with Xcode 4? Just curious. I saw a post last month but was >> wondering if there were any update >> >> Emmanuel >> ___ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> > > > ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Xcode 4 is out... any plan to integrate soon?
Interestingly, I made the mistake to remove Xcode 3.. so I have only Xcode 4 but I see it working with an older project. So where can I find the template for MacRuby? And where should they be installed? So far beside few path issues in the build it seems to mostly work I created a new file SomeClass.rb and a class, and I see it working on the Custom Class field of the interface Emmanuel On Mar 11, 2011, at 8:50 AM, Matt Aimonetti wrote: > Indeed and others couldn't get Xcode to work. > > - Matt > > On Fri, Mar 11, 2011 at 8:34 AM, Manu wrote: > Ok . Seems like someone got it to work but did not explain how he did... > > > On Mar 10, 2011, at 10:54 PM, Matt Aimonetti wrote: > >> Please refer to the other posts about the same topic sent today. >> >> - Matt >> >> On Thu, Mar 10, 2011 at 9:25 PM, Manu wrote: >> Hi >> >> Now that Xcode 4 is out , and that MacRuby 0.9 is out, any plans to >> integrate with Xcode 4? Just curious. I saw a post last month but was >> wondering if there were any update >> >> Emmanuel >> ___ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> > > ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Xcode 4 is out... any plan to integrate soon?
Can you verify that the outlets are working? Laurent said he would commit the templates shortly so they should be available in a future nightly build. - Matt On Fri, Mar 11, 2011 at 8:59 AM, Manu wrote: > Interestingly, I made the mistake to remove Xcode 3.. so I have only Xcode > 4 but I see it working with an older project. > > So where can I find the template for MacRuby? And where should they be > installed? So far beside few path issues in the build it seems to mostly > work > > I created a new file SomeClass.rb and a class, and I see it working on the > Custom Class field of the interface > > Emmanuel > > On Mar 11, 2011, at 8:50 AM, Matt Aimonetti wrote: > > Indeed and others couldn't get Xcode to work. > > - Matt > > On Fri, Mar 11, 2011 at 8:34 AM, Manu wrote: > >> Ok . Seems like someone got it to work but did not explain how he did... >> >> >> On Mar 10, 2011, at 10:54 PM, Matt Aimonetti wrote: >> >> Please refer to the other posts about the same topic sent today. >> >> - Matt >> >> On Thu, Mar 10, 2011 at 9:25 PM, Manu wrote: >> >>> Hi >>> >>> Now that Xcode 4 is out , and that MacRuby 0.9 is out, any plans to >>> integrate with Xcode 4? Just curious. I saw a post last month but was >>> wondering if there were any update >>> >>> Emmanuel >>> ___ >>> MacRuby-devel mailing list >>> MacRuby-devel@lists.macosforge.org >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >> >> >> > > ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] MacRuby build issues with LLVM
My customers with new MacBook Pro's have confirmed that the new version of my QuickAlarm app with the new MacRuby 0.1/LLVM works! Good job everybody! > Yes, it was a problem in LLVM, which wasn't generating code for the proper > architecture. I hope this was an exception and that we won't need to target > new LLVM versions each time new architectures are introduced :) > > Thanks for verifying the fixes. I will release trunk as 0.10 tomorrow evening. > > Laurent > > On Mar 10, 2011, at 3:00 AM, Nick Ludlam wrote: > >> I can also confirm this now builds correctly. Thanks very much for the >> speedy turnaround, Laurent. >> >> Out of interest, do you know why the Core i7 chip in this laptop behaves >> differently to the Core 2 Duo in my previous laptop? Is it perhaps just that >> LLVM is failing to detect the CPU correctly, and is creating code based on >> incorrect assumptions? >> >> On 10 Mar 2011, at 02:27, Laurent Sansonetti wrote: >> >>> I got confirmation that trunk as of r5271 should work. Because of the >>> severity of this problem, and the recent changes in macruby_deploy >>> regarding App Store submissions, I think we should release 0.10 as soon as >>> possible now. I will work on it. >>> >>> Laurent >>> >>> On Mar 9, 2011, at 4:09 PM, Laurent Sansonetti wrote: >>> Okay, I committed support for LLVM 2.9 as of r5269 and verified that no regression is introduced (the spec suite runs fine). Please update your repository, do a rake clean, then build with the CFLAGS="-D__SUPPORT_LLVM_29__" option. Example: $ rake CFLAGS="-D__SUPPORT_LLVM_29__" jobs=8 If this fixes the problem, we might need to roll out a MacRuby release with this new LLVM soon, as I suspect the problem will hit many people. Laurent On Mar 9, 2011, at 2:10 PM, Laurent Sansonetti wrote: > Okay, API breakage, but I can reproduce that on my machine :) I will hack > on it later today and post a message here once it's supposed to compile, > this way you can continue testing. > > Laurent > > On Mar 9, 2011, at 2:03 PM, Nick Ludlam wrote: > >> Ok, well it's not failing in the same way, but it's still failing: >> >> /usr/bin/gcc-4.2 -std=c99 -I. -I./include -pipe -fno-common -fexceptions >> -fblocks -g -O3 -Wall -Wno-deprecated-declarations -Werror -arch x86_64 >> -I./icu-1060 -c ucnv.c -o .objs/ucnv.o >> /usr/bin/gcc-4.2 -std=c99 -I. -I./include -pipe -fno-common -fexceptions >> -fblocks -g -O3 -Wall -Wno-deprecated-declarations -Werror -arch x86_64 >> -I./icu-1060 -c encoding.c -o .objs/encoding.o >> /usr/bin/g++-4.2 -I. -I./include -fblocks -g -Wall >> -Wno-deprecated-declarations -Werror -arch x86_64 >> -I/opt/llvm-macruby/include -D_DEBUG -D_GNU_SOURCE >> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 -fno-rtti >> -fno-common -Woverloaded-virtual -I./icu-1060 -c main.cpp -o .objs/main.o >> In file included from vm.h:593, >>from main.cpp:17: >> compiler.h:82: error: ISO C++ forbids declaration of ?DIFactory? with no >> type >> compiler.h:82: error: expected ?;? before ?*? token >> rake aborted! >> Command failed with status (1): [/usr/bin/g++-4.2 -I. -I./include >> -fblocks ...] >> >> (See full trace by running task with --trace) >> >> >> >> >> On 9 Mar 2011, at 21:34, Laurent Sansonetti wrote: >> >>> It looks like it might take a while until I get my hands on a new MBP, >>> so could one try the following? >>> >>> 1) Grab a copy of >>> https://llvm.org/svn/llvm-project/llvm/branches/release_29 using svn, >>> then build it using the same instructions in README.rdoc. I am just >>> hoping that this new version of LLVM supports the new hardware and that >>> it doesn't introduce API breakage. >>> 2) Re-build and install MacRuby trunk after doing a rake clean. >>> >>> Laurent >>> >>> On Mar 9, 2011, at 1:08 PM, Laurent Sansonetti wrote: >>> Sorry the late reply. It's probably because this version of LLVM that we use cannot target the new CPU yet. I will investigate :) Laurent On Mar 9, 2011, at 12:10 PM, Nick Ludlam wrote: > Yes, this looks like it's exactly the problem I'm having, from the > look of the log, so perhaps it's a Sandy Bridge / Core i5/7 issue. > Curious! > > On 9 Mar 2011, at 19:56, Richard Sepulveda wrote: > >> I have a customer that is also having this same problem with my >> MacRuby Mac App Store application running on his new MacBook Pro. I >> don't have >> access to this type of Mac so I haven't been able to reproduce this >> problem. >> >> He has tried MacRuby 0.8 and 0.9 versions of my app with the same
Re: [MacRuby-devel] Xcode 4 is out... any plan to integrate soon?
Hi All, I installed Xcode 4 and then the latest nightly build and the outlets are not working for me. Thanks Shaun On 2011-03-11, at 10:22 AM, Matt Aimonetti wrote: > Can you verify that the outlets are working? > Laurent said he would commit the templates shortly so they should be > available in a future nightly build. > > - Matt > > On Fri, Mar 11, 2011 at 8:59 AM, Manu wrote: > Interestingly, I made the mistake to remove Xcode 3.. so I have only Xcode 4 > but I see it working with an older project. > > So where can I find the template for MacRuby? And where should they be > installed? So far beside few path issues in the build it seems to mostly work > > I created a new file SomeClass.rb and a class, and I see it working on the > Custom Class field of the interface > > Emmanuel > > On Mar 11, 2011, at 8:50 AM, Matt Aimonetti wrote: > >> Indeed and others couldn't get Xcode to work. >> >> - Matt >> >> On Fri, Mar 11, 2011 at 8:34 AM, Manu wrote: >> Ok . Seems like someone got it to work but did not explain how he did... >> >> >> On Mar 10, 2011, at 10:54 PM, Matt Aimonetti wrote: >> >>> Please refer to the other posts about the same topic sent today. >>> >>> - Matt >>> >>> On Thu, Mar 10, 2011 at 9:25 PM, Manu wrote: >>> Hi >>> >>> Now that Xcode 4 is out , and that MacRuby 0.9 is out, any plans to >>> integrate with Xcode 4? Just curious. I saw a post last month but was >>> wondering if there were any update >>> >>> Emmanuel >>> ___ >>> MacRuby-devel mailing list >>> MacRuby-devel@lists.macosforge.org >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >> >> > > > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Xcode 4 is out... any plan to integrate soon?
Sorry, I was looking in the wrong place. I can confirm the outlets ARE working for me. To reiterate, I installed Xcode 4 and then the nightly build from the installer package and not from the command line. Thank you, SHAUN AUGUST DIRECTOR OF DESIGN EOS LIGHTMEDIA CORPORATION 320 - 825 POWELL STREET, VANCOUVER, BC V6A 1H7 T 604 639 5488 / F 604 639 5489 / M 604 760-5475 / W eoslightmedia.com On 2011-03-11, at 12:50 PM, Shaun August wrote: > Hi All, > > I installed Xcode 4 and then the latest nightly build and the outlets are not > working for me. > > > Thanks > > Shaun > > > > > > On 2011-03-11, at 10:22 AM, Matt Aimonetti wrote: > >> Can you verify that the outlets are working? >> Laurent said he would commit the templates shortly so they should be >> available in a future nightly build. >> >> - Matt >> >> On Fri, Mar 11, 2011 at 8:59 AM, Manu wrote: >> Interestingly, I made the mistake to remove Xcode 3.. so I have only Xcode 4 >> but I see it working with an older project. >> >> So where can I find the template for MacRuby? And where should they be >> installed? So far beside few path issues in the build it seems to mostly >> work >> >> I created a new file SomeClass.rb and a class, and I see it working on the >> Custom Class field of the interface >> >> Emmanuel >> >> On Mar 11, 2011, at 8:50 AM, Matt Aimonetti wrote: >> >>> Indeed and others couldn't get Xcode to work. >>> >>> - Matt >>> >>> On Fri, Mar 11, 2011 at 8:34 AM, Manu wrote: >>> Ok . Seems like someone got it to work but did not explain how he did... >>> >>> >>> On Mar 10, 2011, at 10:54 PM, Matt Aimonetti wrote: >>> Please refer to the other posts about the same topic sent today. - Matt On Thu, Mar 10, 2011 at 9:25 PM, Manu wrote: Hi Now that Xcode 4 is out , and that MacRuby 0.9 is out, any plans to integrate with Xcode 4? Just curious. I saw a post last month but was wondering if there were any update Emmanuel ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >>> >> >> >> ___ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] trunk depends on a new LLVM
For those compiling from the repository: MacRuby now requires LLVM 2.9. I tested revision 127367 to be okay, so I recommend this one. The README.rdoc file has been updated with newer instructions. Also, as trunk no longer builds for i386 by default, LLVM doesn't need to be built for it anymore, which results in a much faster build. For those using the nightly builds, we will make sure it gets updated. Laurent ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Xcode 4 is out... any plan to integrate soon?
I just tested Xcode4 on a Snow Leopard machine, after having re-installed MacRuby, and it seems that outlets and actions are recognized again! Thanks for letting me know, I will prepare and integrate some templates into the upcoming 0.10 release. Laurent On Mar 11, 2011, at 12:53 PM, Shaun August wrote: > Sorry, I was looking in the wrong place. I can confirm the outlets ARE > working for me. To reiterate, I installed Xcode 4 and then the nightly build > from the installer package and not from the command line. > > > Thank you, > > > SHAUN AUGUST DIRECTOR OF DESIGN > > EOS LIGHTMEDIA CORPORATION > > 320 - 825 POWELL STREET, VANCOUVER, BC V6A 1H7 > > T 604 639 5488 / F 604 639 5489 / M 604 760-5475 / W eoslightmedia.com > > On 2011-03-11, at 12:50 PM, Shaun August wrote: > >> Hi All, >> >> I installed Xcode 4 and then the latest nightly build and the outlets are >> not working for me. >> >> >> Thanks >> >> Shaun >> >> >> >> >> >> On 2011-03-11, at 10:22 AM, Matt Aimonetti wrote: >> >>> Can you verify that the outlets are working? >>> Laurent said he would commit the templates shortly so they should be >>> available in a future nightly build. >>> >>> - Matt >>> >>> On Fri, Mar 11, 2011 at 8:59 AM, Manu wrote: >>> Interestingly, I made the mistake to remove Xcode 3.. so I have only Xcode >>> 4 but I see it working with an older project. >>> >>> So where can I find the template for MacRuby? And where should they be >>> installed? So far beside few path issues in the build it seems to mostly >>> work >>> >>> I created a new file SomeClass.rb and a class, and I see it working on the >>> Custom Class field of the interface >>> >>> Emmanuel >>> >>> On Mar 11, 2011, at 8:50 AM, Matt Aimonetti wrote: >>> Indeed and others couldn't get Xcode to work. - Matt On Fri, Mar 11, 2011 at 8:34 AM, Manu wrote: Ok . Seems like someone got it to work but did not explain how he did... On Mar 10, 2011, at 10:54 PM, Matt Aimonetti wrote: > Please refer to the other posts about the same topic sent today. > > - Matt > > On Thu, Mar 10, 2011 at 9:25 PM, Manu wrote: > Hi > > Now that Xcode 4 is out , and that MacRuby 0.9 is out, any plans to > integrate with Xcode 4? Just curious. I saw a post last month but was > wondering if there were any update > > Emmanuel > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > >>> >>> >>> ___ >>> MacRuby-devel mailing list >>> MacRuby-devel@lists.macosforge.org >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> ___ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] macruby_deploy not embedding all of MacRuby
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 MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] macruby_deploy not embedding all of MacRuby
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 > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] macruby_deploy not embedding all of MacRuby
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 > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > > ___ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > -- Kevin Colyar http://kevin.colyar.net ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Xcode 4 is out... any plan to integrate soon?
does not seem to work for now.. I tried creating a simple class with a simple attribute (for a button place holder) and link it the controller class to the button and nothing shows in the list to make that link On Mar 11, 2011, at 10:22 AM, Matt Aimonetti wrote: > Can you verify that the outlets are working? > Laurent said he would commit the templates shortly so they should be > available in a future nightly build. > > - Matt > > On Fri, Mar 11, 2011 at 8:59 AM, Manu wrote: > Interestingly, I made the mistake to remove Xcode 3.. so I have only Xcode 4 > but I see it working with an older project. > > So where can I find the template for MacRuby? And where should they be > installed? So far beside few path issues in the build it seems to mostly work > > I created a new file SomeClass.rb and a class, and I see it working on the > Custom Class field of the interface > > Emmanuel > > On Mar 11, 2011, at 8:50 AM, Matt Aimonetti wrote: > >> Indeed and others couldn't get Xcode to work. >> >> - Matt >> >> On Fri, Mar 11, 2011 at 8:34 AM, Manu wrote: >> Ok . Seems like someone got it to work but did not explain how he did... >> >> >> On Mar 10, 2011, at 10:54 PM, Matt Aimonetti wrote: >> >>> Please refer to the other posts about the same topic sent today. >>> >>> - Matt >>> >>> On Thu, Mar 10, 2011 at 9:25 PM, Manu wrote: >>> Hi >>> >>> Now that Xcode 4 is out , and that MacRuby 0.9 is out, any plans to >>> integrate with Xcode 4? Just curious. I saw a post last month but was >>> wondering if there were any update >>> >>> Emmanuel >>> ___ >>> MacRuby-devel mailing list >>> MacRuby-devel@lists.macosforge.org >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >> >> > > ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel