When I build my product for the simulator or for direct install from Xcode to my device, all works fine.
When I archive>distribute, the app is missing modules when it starts. "Runtime error module 'network' not found:resource (network.lu) does not exist in archive...
And then a list of al the places it looked.
Xcode 15.3
Solar2d 2024.3706 (latest)
Macbook Pro M3 Sonoma 14.4.1
Programming in Lua on Solar2d "native" (includes Objective-C and Swift code)
I have had a related (I think) problem with the simulator and device builds missing other modules (all includes) -- but only after working fine for maybe a dozen builds. I then explicitly add them in, one by one. There is no way I can manually add in network, because it is built into the Solar2d environment. I am pretty sure this is an Xcode bug, not a Solar2d bug. But also likely I have a setting wrong.