Error launching desktop app: dyld: Symbol not found _iconv

You must Login before you can answer or comment on any questions.

I just created a new Desktop application with PHP as the language to use, and without creating any modifications to the startup html thats included, I attempted to launch the application.

I get the following error, and the application fails to launch:

dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /Users/predominant/Library/Application Support/Titanium/modules/osx/php/1.1.0/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib
— asked 2 years ago by Graham Weldon
83 Comments
  • To assist you I just need a couple things... I see your running on OSX, what version are you running, also, what Desktop SDK version are you using?

    — commented 2 years ago by Matt Apperson

  • Any updates on this issue now that Lion has been released?

    — commented 2 years ago by Jason Jesuraj

  • Please grab the RC5 from this link. This fixes the PHP problem on Lion.

    Desktop 1.2.0.RC5 for OSX

    — commented 2 years ago by Alan DuBoff

  • Show 80 more comments

20 Answers

Graham: So here's the issue.

1) You're on Lion which hasn't been released and from a Apple Developers Program is still somewhat under an NDA

2) Titanium is open source, we are under NDA, if we push changes into open source on projects under NDA we could get kicked out of the dev program and never be able to do anything w/ apple products again

3) We plan on supporting Lion properly as soon as it's properly released by Apple

— answered 2 years ago by Tony Guntharp
answer permalink
6 Comments
  • We're now properly releases, is there an ETA on the fix?

    — commented 2 years ago by Graham Weldon

  • Any updates?

    — commented 2 years ago by Graham Weldon

  • Another week gone by with nothing from Appcelerator. Truly awesome stuff.

    — commented 2 years ago by Graham Weldon

  • Show 3 more comments

As a "temporary" solution:

Download the "Better replacement libiconv" (a patched version) from https://bugzilla.gnome.org/attachment.cgi?id=192432&action=edit

Replace the libiconv.2.dylib /Library/Application Support/Titanium/modules/osx/php/1.1.0 with the downloaded file.

cd /Library/Application\ Support/Titanium/modules/osx/php/1.1.0/ 
mv libiconv.2.dylib  libiconv.2.dylib.old 
cp /Users/drzippie/Downloads/libiconv.2.dylib  .

— answered 2 years ago by Jose Antonio Cortes Eiras
answer permalink
8 Comments
  • thx this realy help

    — commented 2 years ago by Alex Dem

  • app is runing, but php lib not work

    Could not load module (/Users/alex/Library/Application Support/Titanium/modules/osx/php/1.1.0/libphpmodule.dylib): "Error loading module (/Users/alex/Library/Application Support/Titanium/modules/osx/php/1.1.0/libphpmodule.dylib): dlopen(/Users/alex/Library/Application Support/Titanium/modules/osx/php/1.1.0/libphpmodule.dylib, 9): Library not loaded: /opt/local/lib/libmcrypt.4.dylib
      Referenced from: /Users/alex/Library/Application Support/Titanium/modules/osx/php/1.1.0/libphp5.dylib
      Reason: no suitable image found.  Did find:
        /Users/alex/Library/Application Support/Titanium/modules/osx/php/1.1.0/libmcrypt.4.dylib: file too short
        /opt/local/lib/libmcrypt.4.dylib: mach-o, but wrong architecture

    — commented 2 years ago by Alex Dem

  • Alex,

    As a test, can you rename your /opt/local to something else and see if it works. By the message above it's looking in /opt/local, so you must have some ports installed.

    Is it possible you can rename the directory temporarily and see if it runs???

    — commented 2 years ago by Alan DuBoff

  • Show 5 more comments

Hi, has support been added yet? I did get an update prompt just now and installed, but I am still getting the above error as Matt.

I just placed a release candidate up in the cloud which fixes this issue. This needs to be looked at more for the long term, but in the meantime, RC5 for osx can be gotten at the following link, which has been tested on Lion.

Release Candidate 5 for OSX

— answered 2 years ago by Alan DuBoff
answer permalink
1 Comment
  • I removed this SDK for the time being as it is not working across all Lions. Looking into it now.

    — commented 2 years ago by Alan DuBoff

I observe, that when I add any PHP code, it is not executed. I don't see any results. Example:

http://k.minus.com/jB1ZqcIy8GJnf.png

I'm using:

http://k.minus.com/jh2qoOP4endtP.png

Any ideas why any PHP code cannot be executed?

This issue is caused by using OSX Lion, we dont yet support Lion and cant truly support it until its released. When Lion is released, we will support it.

Any news on this? I need to use Titanium to continue my development

It only works for me when I have Ruby, Python and PHP unticked in the project file. The error comes up when I enable PHP. I've not tried enabling Ruby or Python. See if that works, if you have all of them unticked in your project file.

— answered 2 years ago by Firas Al-Khaffaf
answer permalink
2 Comments
  • Thats not a solution. PHP is supposed to be a supported language, and its the one that I want to use.

    Either:

    1. Remove support for languages that are not working, or
    2. Fix support for languages that are not working

    — commented 2 years ago by Graham Weldon

  • I'm sure the guys at Appcelerator are in the process of fixing this issue. I also need PHP support too. I hope they fix this ASAP :)

    — commented 2 years ago by Firas Al-Khaffaf

I have opened a ticket for this bug here. I will be looking into this and working on a solution. Feel free to watch that ticket for progress and further discussion.

So Lion has been released, and I just downloaded Titanium Studio, and am seeing this error. Is there an update somewhere?

I just downloaded it on Lion and an getting the same error. By when will you fix this?

We need a fix fast! Lion has been out for a good while and I'm still stuck with this issue. Can't do anything!

The same problem here. I'm using desktopsdk-1.2.0.RC4-osx.zip but the problem still exists :(

— answered 2 years ago by Jakub Ch
answer permalink
9 Comments
  • Jakub,

    What exactly is your problem?

    What version of SDK, what version of Studio, and what platform? Just saying you have the same problem does not help us track it down and fix it, unfortunately. At least to date I haven't been able to read minds across the network, but I'm working on that API...;-)

    — commented 2 years ago by Alan DuBoff

  • I'm trying to develop desktop PHP App for OSX, and while compiling the app, I see above error in console log. FYI - the App does not contain any code, it's just an example App.

    — commented 2 years ago by Jakub Ch

  • More information:

    Titanium Studio, build: 1.0.4.201108101535 SDK Version: 1.2.0.RC4

    Screenshot available here:

    http://img225.imageshack.us/img225/2103/screenshot20110915at101.png

    — commented 2 years ago by Jakub Ch

  • Show 6 more comments

Any word when this will be fixed?...... It's been a while.....

Guys, I'm still working on this, and trying to get a build for Lion...php doesn't seem too friendly to osx...but I haven't given up yet.

— answered 2 years ago by Alan DuBoff
answer permalink
4 Comments
  • And the odd things is that I found some info that says PHP is not supported on osx, but Apple supports it themselves...so...it can be done...

    — commented 2 years ago by Alan DuBoff

  • Hope to get any update soon from you Alan!

    — commented 2 years ago by Jakub Ch

  • I'm working on it.

    — commented 2 years ago by Alan DuBoff

  • Show 1 more comment

Your Answer

Think you can help? Login to answer this question!