Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Xcode error

in Questions Posts: 5

When I generate Xcode for my very simple first Lua program, I get the error

UI API called from background thread.

Not a real expert on Xcode (nor Lua btw). Is there a tutorial on how to avoid this error?

Thank you for any help.



  • Posts: 5

    It was my mistake. I had the line:


    outside of the setup() function. Which works fine in Codea but the export to Xcode gave that error at compilation. Now it is in and all works great.

  • SimeonSimeon Admin Mod
    Posts: 5,778

    @Jose I think there may be some other places where we have that issue in the Codea runtime. It doesn't stop your app from working, but Xcode may invoke the debugger when running in debug mode or print out a warning

Sign In or Register to comment.