hypersurge / awe6

awe6, the inverted game framework (Haxe)
http://awe6.org
MIT License
79 stars 11 forks source link

Can't compile to iOS #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.create a awe6 project
2.compile it to iOS simulator
3.the error happen

What is the expected output? What do you see instead?
For iPhone:
Haxe simulator build CONFIG : Debug-iphonesim
haxe Build.hxml -D simulator -cpp build/Debug-iphonesim -debug -D HXCPP_CLANG 
-D OBJC_ARC
Error : Resource file not found : assets/_exclude/config.xml
make: *** [build-haxe-i386] Error 1

Command 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/usr/bin/make failed with exit code 2

What version of the product are you using? On what operating system?
haxe2.1+nme3.5.5+awe6 1.3.522+mac os 10.7.3+xcode4.3.3

Please provide any additional information below.

Original issue reported on code.google.com by liyong...@gmail.com on 5 Mar 2013 at 5:04

GoogleCodeExporter commented 9 years ago
Error : Resource file not found : assets/_exclude/config.xml

Not sure why NME is looking for it?  Please verify that nmml file includes:

<assets path="assets" rename="assets" include="*" exclude="_exclude|*.ogg" 
if="flash" />
<assets path="assets" rename="assets" include="*" exclude="_exclude" 
unless="flash" />

Does the nme.Assets.hx file (for ios build) include reference to config.xml?
Do other cpp targets work ok?

Does it work ok if you replace both above nmml asset nodes with:

<assets path="assets" rename="assets" include="*" exclude="_exclude" />

Original comment by robert.f...@hypersurge.com on 5 Mar 2013 at 5:15

GoogleCodeExporter commented 9 years ago
Sorry, red herring on the nmml file.  I replicated error by removing 
assets/_exclude/config.xml ...

Please verify contents of projectdir/assets/_exclude/

Original comment by robert.f...@hypersurge.com on 5 Mar 2013 at 5:18

GoogleCodeExporter commented 9 years ago
I had try to exclude the _exclude when compile to IOS,but error didn't gone. 
and I want to know how to verify the file in _exclude folder?Could you show me 
a sample?
bellow is the code in my main.hx,it's created by haxelib run awe6 create 
command,nothing has been changed!
/////////////
import ericzhao.Factory;
import nme.Lib;
import haxe.Log;
import haxe.PosInfos;
import haxe.Resource;

/**
 * ...
 * @author seraph
 */

class Main {    
    static function main() {
        #if debug
        var l_isDebug:Bool = true;
        #else
        var l_isDebug:Bool = false;
        #end
        if ( !l_isDebug ) {
            Log.trace = function( v:Dynamic, ?infos:PosInfos ):Void {};
        }
        var l_factory = new Factory( Lib.current, l_isDebug, Resource.getString( "config" ) );
    }

    public function new() {
        // needed for Jeash
    }
}

Original comment by liyong...@gmail.com on 6 Mar 2013 at 1:27

GoogleCodeExporter commented 9 years ago
Does your project have the file:
project/assets/_exclude/config.xml

If not, it needs one.  Basic content would be:

<?xml version="1.0" encoding="utf-8"?>
<data>
    <settings>
        <assets>
            <packages default="assets" audio="assets.audio" />
        </assets>
        <font name="assets_fonts_orbitron_ttf" />
    </settings>
</data>

Original comment by robert.f...@hypersurge.com on 6 Mar 2013 at 6:14

GoogleCodeExporter commented 9 years ago

Original comment by robert.f...@hypersurge.com on 6 Mar 2013 at 6:23

GoogleCodeExporter commented 9 years ago
I had the xml file in the assets folder,but Xcode can't find it!

Original comment by liyong...@gmail.com on 9 Mar 2013 at 3:12

GoogleCodeExporter commented 9 years ago
Is the following line in your project's nmml?

<compilerflag name="-resource assets/_exclude/config.xml@config" />

Original comment by robert.f...@hypersurge.com on 9 Mar 2013 at 6:07

GoogleCodeExporter commented 9 years ago
I'm going to close this issue as "Done".  Please reopen if it is not.

Original comment by robert.f...@hypersurge.com on 25 Mar 2013 at 5:54

GoogleCodeExporter commented 9 years ago
Update: NME (for iOS only) exclude Haxe resources from a folders marked as 
exclude in the nmml file.  Solution is to move the config file outside of the 
assets folder.  Other targets (including other cpp targets) appear to work as 
expected.

Original comment by robert.f...@hypersurge.com on 28 May 2013 at 12:43