When i use the compiled swc files, no problems. When I use the libraries and include the src, i get problems.

kimcity's Avatar


31 May, 2012 06:24 AM

I prefer not to use swc files.

I prefer to use git submodule and add the libraries I need.

I added the FlexUnit4 libraries this way.

See http://cl.ly/H2oV

I then get could not resolve <flexUnitUIRunner:TestRunnerBase> to a component implementation

Once I drop those the source paths and use swc files, the errors disappear.

Please advise.

  1. 1 Posted by kimcity on 31 May, 2012 06:26 AM

    kimcity's Avatar

    if it wasn't clear in the first place, let me state that i want to use the libraries as much as possible over swc files.

  2. 2 Posted by kimcity on 02 Jun, 2012 02:58 PM

    kimcity's Avatar

    Hi there, I hope to get a response

  3. Support Staff 3 Posted by labriola on 02 Jun, 2012 03:49 PM

    labriola's Avatar


    This wont work without a lot of tweaking and understanding. First, there is no reason not to use the SWC files. Even when you use a SWC, you can still tell Flash Builder where the source is and explore the source as needed.

    However, you need to understand that FlexUnit can be compiled multiple ways, to run on AIR or Flash Player, to run in ActionScript only projects or Flex projects. Since you are just including all of the source, you are including all of these contradictory aspects of the projects inside of yours. During compilation, we use compiler flags to indicate which items we want... you dont have any of those. Further, a compiled SWC contains information about which meta data must be kept. In other words, FlexUnit*.swc has information that instructs your project to retain meta data such as [Test] etc when it compiles your tests. The way you are doing this, you will receive none of this help and will have to duplicate all of this configuration manually.

    So, in short, you can do this if you know how and spend the time to re-setup everything. However, showing you how to do so is well beyond the scope of this forum as we advise people to use the built and test SWC files. Again, when you link a SWC into your project, you can specify the directory where the source can be found so you can browse and review it... even set breakpoints in it... That is much more advisable than what you are trying to do

    If you insist that you must use the source, then I advise you to look at the project files for each of the FlexUnit projects, determine which ones you actually need for your project, learn to setup the manifest infromation, compiler options, etc. Best of luck

  4. labriola closed this discussion on 02 Jun, 2012 03:49 PM.

  5. kimcity re-opened this discussion on 02 Jun, 2012 03:54 PM

  6. 4 Posted by kimcity on 02 Jun, 2012 03:54 PM

    kimcity's Avatar

    I see.

    Thank you for your advice, labriola

  7. kimcity closed this discussion on 02 Jun, 2012 03:55 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac