Monobjc / monobjc

Git Repository for the Monobjc Project
http://www.monobjc.net/
17 stars 3 forks source link

Running monobjc-sdp reports "Cannot open assembly...No such file or directory." #310

Closed letiemble closed 11 years ago

letiemble commented 11 years ago

(This issue was orignally reported by Larry Daniele on 2011-10-22 02:07:42)

I just installed a fresh copy of MonoDevelop 2.8.1 and monobjc 4.0.1552.0 including the add-ins. I am able to successfully build and run the ScriptingBridgeiCal app.

However, when I try to follow the Cocoa Scripting tutorial (http://www.monobjc.net/index.php?page=tutorial-cocoa-scripting) and run the monobjc-sdp command, I get the response:

Cannot open assembly '/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/2.0/Monobjc.Sdp.exe': No such file or directory.

This file does not exist. However, a newer version of the program is available at '/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.0/Monobjc.Sdp.exe'

Without this, I can't create a scripting bridge for my application.

letiemble commented 11 years ago

(This comment was orignally posted by Laurent Etiemble on 2011-10-22 10:03:19)

Monobjc 4.0 now uses the 4.0 profile by default and I have forgotten to update this script. The issue has been corrected and will be part of the next release (end of october).

Meanwhile, you can edit the script (you have to use sudo to have correct permissions): "sudo vi /usr/bin/monobjc-sdp". Replace the "2.0" with "4.0".