Forum

2 replies [Last post]
Deets
User offline. Last seen 25 weeks 12 hours ago. Offline
userbadge
Joined: 2010-01-18
Points: 0

I have been doing many small projects for testing. The projects all uses the same data folder for assets but in 1 project that does Iw2D draws only, the ipa file generated was 4mb and taking a look in the immediate_files, I noticed the whole of the data folder is being used.

This happens in both 4.0 and 4.1.

Is this by design that I cannot make a project without assets?

Dave P
User offline. Last seen 15 hours 35 min ago. Offline
moderatorbadge
Joined: 2009-10-23
Points: 4240

Hi Deets,

Use the assets {} block in your mkb to specify explicit files and directories to use. See the beattoy and kartz examples for how to do this.

Without the assets {} block, your whole data directory is deployed.

Dave

Deets
User offline. Last seen 25 weeks 12 hours ago. Offline
userbadge
Joined: 2010-01-18
Points: 0

Hi Dave,

I tried the assets { } part and it works if i specify something in it like the following:


assets
{
(data)
test.jpg
}

In this case, only test.jpg gets deployed in the ipa. However, this test.jpg is not used in my program, in fact, no assets were used.

I noticed that in Helloworld example, the assets { } section is not found in the mkb, but the deployed files did not include the whole data directory, I would like to know how was that possible?

EDIT: I found the reason, the assets { } was part of the ExamplesS3EMain.mkf instead. Thanks Dave, will take note of this. :)