Skip to main content
Inspiring
April 7, 2014
Question

Loading "external library" get "I/O error" in mac

  • April 7, 2014
  • 1 reply
  • 1229 views

Hey everyone,

I just discovered the "external library" in extendscript. So I opened up the "samplelib" example in Xcode 5 and buit it. But, when I tried to run the script, I keep getting the "I/O error" at line "var sampleLib = new ExternalObject("lib:" + libPath);" . I tried to change the "SampleLib.framework" file to readable and writable for every user, but it didn't help.

So, guys, any idea what I've been doing wrong?

Thanks!!!

This topic has been closed for replies.

1 reply

Ten A
Community Expert
Community Expert
April 16, 2014

Hi,

Probably your external object framework is not vaild. Check your Xcode project and rebuild it.

Here is working sample image;

Ten

Legend
June 30, 2015

I'm trying to build the sample ExternalObject XCode project that ships with the latest release of Adobe CC, but am getting an error at compile time that states Apple Mach-O Linker (id) Error:  "Undefined symbols for architecture x86_64".  Am I supposed to include something else to get those "symbols"?  Does the sample project only work for 32 bit?

Thanks for your time and help.

—Arie

Legend
June 30, 2015

Okay, it turned out to be OSX Deployment Target setting under Build Settings > Deployment of the target.  I had to switch to OS X 10.8 for it to work.