Error #2046 in blank Flex application in IntelliJ IDEA 10

Not far ago Intellij IDEA 10 was released. I downloaded it and launched blank Flex application but found this:

“Error #2046: The loaded file did not have a valid signature”.

This problem is described here: http://forums.adobe.com/thread/723378?decorator=print&displayFullThread=true. The reason: IDEA doesn’t pass “-static-link-runtime-shared-libraries” parameter to the compiled by default. So flash player cannot find RSL libraries in runtime. Thus if you have the same problem – just add a string “-static-link-runtime-shared-libraries=true” to you additional compiler options.

Fun coding!

Comment is closed.