We’re using CoronaCards on iOS. As you can see from the title We’re getting this error:
attempt to index global ‘network’ (a nil value)
I tried moving the “network.download()” call to be the very first line in the main.lua file and still the issue remains. From reading similar issues, it says that something has overridden the “network” variable, but nothing really had the chance to do so as it was the very first line.
Viewing all the variables like so:
for k,v in pairs(_G) do
print(k,v)
end
I see every other GLOBAL variable, but no network.
Really need help understanding at what point network is being declared and what could override it?
My project has gotten really big, it is very hard to take a part of it to show you.
I have downloaded downloaded CoronaCrads from the main download page and not sure which version I have. I’ve attempted to download the most recent version and replace it with my current one. But, trying to build the project again I get an “Apple Match-O Linker Error”.
Is there a way to see which version I have, and/or to fix the Match-O Linker error?
Does the problem with the network library happen if you build a simple test app?
When you run your project in Xcode a line like this which includes the version will get logged to the Xcode debug console:
Platform: iPhone / x86\_64 / 10.3 / Apple Software Renderer / OpenGL ES 2.0 APPLE-14.0.15 / 2017.3079 / en | US | en\_US | en
We always need to know the version of Corona you are using. You mention two different versions in your post but don’t say what either of them is. Also, in this case, the version of Xcode would be useful.
To help you with linker errors, I’ll need to see copy and pasted text from the errors with enough context to see what’s going on. You may want to use Xcode’s “Report Navigator” to get a clearer view of the errors:
No. I do not have any files named network.lua or any file named network.*.
Is there a way I can see if it’s ever loaded properly when CoronaCards is loaded?
Is there a network model you can provide me with to require instead?
Another issue we are experiencing:
On iPad in Landscape mode, CoronaCards is reading the touch in the wrong way. So I created a fullscreen see-through Rect and a Circle that shows Corona’s X and Y of the event.
My project has gotten really big, it is very hard to take a part of it to show you.
I have downloaded downloaded CoronaCrads from the main download page and not sure which version I have. I’ve attempted to download the most recent version and replace it with my current one. But, trying to build the project again I get an “Apple Match-O Linker Error”.
Is there a way to see which version I have, and/or to fix the Match-O Linker error?
Does the problem with the network library happen if you build a simple test app?
When you run your project in Xcode a line like this which includes the version will get logged to the Xcode debug console:
Platform: iPhone / x86\_64 / 10.3 / Apple Software Renderer / OpenGL ES 2.0 APPLE-14.0.15 / 2017.3079 / en | US | en\_US | en
We always need to know the version of Corona you are using. You mention two different versions in your post but don’t say what either of them is. Also, in this case, the version of Xcode would be useful.
To help you with linker errors, I’ll need to see copy and pasted text from the errors with enough context to see what’s going on. You may want to use Xcode’s “Report Navigator” to get a clearer view of the errors:
No. I do not have any files named network.lua or any file named network.*.
Is there a way I can see if it’s ever loaded properly when CoronaCards is loaded?
Is there a network model you can provide me with to require instead?
Another issue we are experiencing:
On iPad in Landscape mode, CoronaCards is reading the touch in the wrong way. So I created a fullscreen see-through Rect and a Circle that shows Corona’s X and Y of the event.