Simple Lua Extension Example

In that example code, why does only the main.lua show in the Corona folder in Xcode?

If you try and add the other files in to xcode in the corona folder they show in red as if there not there.

Outside the corona folder in xcode they show up.

 

I’m don’t understand this.

Did you ever find an answer to this? I’m having the same problem.

Did you ever find an answer to this? I’m having the same problem.

Hey guys. One solution to this:

  1. Delete the corona folder from the Xcode project (just choose remove references, Don’t delete the files)

  2. Drag the corona folder back into the Xcode project, and all the files will show up.

Now all the files contained in the corona folder will show up in the Xcode project.

After doing this any files you add to the corona folder (later on) still need to be added to the corona folder in the Xcode project. This is how you do it.

*  (were going to use test.lua as our example) 

  1. Add the test.lua file to the corona folder located inside the SimpleLuaExtension folder on your hard drive.

  2. Drag the test.lua file into the corona folder in Xcode.

  3. Done.

Just remember that Xcode doesn’t recursively scan project folders to check for new files added, you must always manually add the files to the project yourself ( There may be a way to make it do it recursively, but I have never looked into doing it )

I hope this helps

Hey guys. One solution to this:

  1. Delete the corona folder from the Xcode project (just choose remove references, Don’t delete the files)

  2. Drag the corona folder back into the Xcode project, and all the files will show up.

Now all the files contained in the corona folder will show up in the Xcode project.

After doing this any files you add to the corona folder (later on) still need to be added to the corona folder in the Xcode project. This is how you do it.

*  (were going to use test.lua as our example) 

  1. Add the test.lua file to the corona folder located inside the SimpleLuaExtension folder on your hard drive.

  2. Drag the test.lua file into the corona folder in Xcode.

  3. Done.

Just remember that Xcode doesn’t recursively scan project folders to check for new files added, you must always manually add the files to the project yourself ( There may be a way to make it do it recursively, but I have never looked into doing it )

I hope this helps

Cheers.

Cheers.