Including Bridge Support into App
Anyone know if there's a way to include Bridge Support Preview 3 into my MacRuby app so users before 10.7 doing need to install Bridge Support separately? -- Kevin Colyar http://kevin.colyar.net
You should be able to pass the --bs option to macruby_deploy in your Deploy target. On 2012-02-24, at 2:56 PM, Kevin Colyar wrote:
Anyone know if there's a way to include Bridge Support Preview 3 into my MacRuby app so users before 10.7 doing need to install Bridge Support separately?
-- Kevin Colyar http://kevin.colyar.net
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Kevin, Even with the -bs option, MacRuby app might still not be able to load the bridge support preview properly on 10.6. Here's what I do for Gmail Notifr: dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation load_bridge_support_file "#{dir_path}/BridgeSupport/Security.bridgesupport" if NSAppKitVersionNumber < 1138 1138 is the version number for 10.7, on which it doesn't have problem. The above lines are put in rb_main.rb file. You can see the full file if interested: https://github.com/ashchan/gmail-notifr/blob/master/rb_main.rb Hope this works for you. Cheers, James On Sat, Feb 25, 2012 at 4:56 AM, Kevin Colyar <kevin@colyar.net> wrote:
Anyone know if there's a way to include Bridge Support Preview 3 into my MacRuby app so users before 10.7 doing need to install Bridge Support separately?
-- Kevin Colyar http://kevin.colyar.net
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Sorry Kevin, The above code was actually loading extra bridge support file (Security in this case). I have misunderstood your question. Guys I'm very sorry about this interruption. James On Sat, Feb 25, 2012 at 8:19 AM, James Chen <ashchan@gmail.com> wrote:
Kevin,
Even with the -bs option, MacRuby app might still not be able to load the bridge support preview properly on 10.6. Here's what I do for Gmail Notifr:
dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
load_bridge_support_file "#{dir_path}/BridgeSupport/Security.bridgesupport" if NSAppKitVersionNumber < 1138
1138 is the version number for 10.7, on which it doesn't have problem.
The above lines are put in rb_main.rb file. You can see the full file if interested:
https://github.com/ashchan/gmail-notifr/blob/master/rb_main.rb
Hope this works for you.
Cheers, James
On Sat, Feb 25, 2012 at 4:56 AM, Kevin Colyar <kevin@colyar.net> wrote:
Anyone know if there's a way to include Bridge Support Preview 3 into my MacRuby app so users before 10.7 doing need to install Bridge Support separately?
-- Kevin Colyar http://kevin.colyar.net
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
No problem James. Maybe you can still help me out. Even with the --bs option, when I run my app on a 10.6 w/o Bridge Suport Preview it segfaults on me. Any ideas? Kevin
Kevin, Did you try creating an empty app with --bs option? For a long time I also saw segfaults from several stdlibs (libssh for example). So it's hard to say if it's the preview that caused your problem or other libs. James On Mon, Feb 27, 2012 at 9:01 AM, Kevin Colyar <kevin@colyar.net> wrote:
No problem James.
Maybe you can still help me out. Even with the --bs option, when I run my app on a 10.6 w/o Bridge Suport Preview it segfaults on me.
Any ideas?
Kevin
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi Kevin, Have you had any luck figuring out the issue? If not, I think it might be worth opening at ticket against MacRuby with some more details (i.e. crash logs, sample code/project). Posting the info to the mailing list might be even more helpful. -- Mark On 2012-02-26, at 7:44 PM, James Chen wrote:
Kevin,
Did you try creating an empty app with --bs option? For a long time I also saw segfaults from several stdlibs (libssh for example). So it's hard to say if it's the preview that caused your problem or other libs.
James
On Mon, Feb 27, 2012 at 9:01 AM, Kevin Colyar <kevin@colyar.net> wrote: No problem James.
Maybe you can still help me out. Even with the --bs option, when I run my app on a 10.6 w/o Bridge Suport Preview it segfaults on me.
Any ideas?
Kevin
_______________________________________________ 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
participants (3)
-
James Chen
-
Kevin Colyar
-
Mark Rada