UDP socket not working if built

Hi all,

I have this app, works perfectly in Win32, Android, iOS, and also in OSX under the simulator, but once built for OSX, no network.

It uses Lua sockets, UDP, to contact a device in the local network.

I’ve tried every combination of these in the build.settings:

osx =
{
entitlements =
{
[“com.apple.security.network.client”] = true,
},
plist =
{
NSAllowsArbitraryLoads = true,
– NSAllowsLocalNetworking = true,
NSAppTransportSecurity =
{
NSAllowsArbitraryLoads = true,
– NSAllowsLocalNetworking = true,
–NSAllowsArbitraryLoads = true,

  },
},

},

And I mean every combination - no luck.

Any help most appreciated!

And take care!

I finally managed to have it working, so for the record, the working build.settings:

 macos = 
 {
     entitlements = 
    {
      ["com.apple.security.network.client"] = true,
      ["com.apple.security.network.server"] = true,
     },
   plist =
   {
      NSAppTransportSecurity =
      {
       NSAllowsArbitraryLoads = true,          
       NSAllowsLocalNetworking = true,
      },
    },
  },

The section is to be called “macos” (not “osx” as in some examples or old forum messages).