Runtime error module 'network' not found on iOS

I use Corona Enterprise 2013.1105 daily build, however, there is a runtime error for not founding a ‘network.lua’.

I’am very urgent, help please.

May 14 18:27:28 EungShiks-iPhone MoneyVitamin[6713] <Warning>: Runtime error
    module ‘network’ not found:
        no field package.preload[‘network’]
        no file ‘/var/mobile/Applications/9BC1448E-E0A2-4C02-86FE-F659FA0E5EF5/MoneyVitamin.app/network.lua’
        no file ‘/var/mobile/Applications/9BC1448E-E0A2-4C02-86FE-F659FA0E5EF5/MoneyVitamin.app/network.lua’
        no file ‘./network.so’
        no file '/var/mobile/Applications/9BC1448E-E0A2-4C02-86FE-F659FA0E5EF5/MoneyVitamin.app/network.so’network
    stack traceback:
        [C]: ?
        [C]: in function ‘require’
        ?: in main chunk
May 14 18:27:28 EungShiks-iPhone MoneyVitamin[6713] <Warning>: Runtime error
    
    stack traceback:
        [C]: ?
        [C]: in function ‘require’
        ?: in main chunk
May 14 18:27:28 EungShiks-iPhone MoneyVitamin[6713] <Warning>: Runtime error
    module ‘network’ not found:resource (network.lu) does not exist in archive
        no field package.preload[‘network’]
        no file ‘/var/mobile/Applications/9BC1448E-E0A2-4C02-86FE-F659FA0E5EF5/MoneyVitamin.app/network.lua’
        no file ‘/var/mobile/Applications/9BC1448E-E0A2-4C02-86FE-F659FA0E5EF5/MoneyVitamin.app/network.lua’
        no file ‘./network.so’
        no file '/var/mobile/Applications/9BC1448E-E0A2-4C02-86FE-F659FA0E5EF5/MoneyVitamin.app/network.so’network
    stack traceback:
        [C]: ?
        [C]: in function ‘require’
        ?: in function <?:9>

I tested with Corona Enterprise build 1088, 1100, 1105, and 1106.

After I upgraded Corona Enterprise from build 1031.

Most of version of Corona Enterprise occur following errors except build 1031.

 Runtime error
    module ‘network’ not found:
        no field package.preload[‘network’]

There are no require( “network” ) code line in any of my source codes.

I also tested with Corona Enterprise build 1043 and it occurs the same error.

Finally I could upgrade CoronaSDK 2013.1041 from 1031.

But over 1041, that is, 1043 occurred the error of not found network.lua or network.so.

I found following daily build summary:

 CoronaSDK 2013.1043
Post date: Wed, 2013-03-06 20:23
Release notes for build 2013.1041 through 2013.1043

  • Added tag PRE-NETWORK-2.0 for changeset 313145db6420

  • This changeset adds updates and augments the existing network functionality and support.

  • Adding Network 2.0 support/fixes

  • Updated projects to include new networking libraries across platforms and updated the setup project to deploy the new networking dll.

  • Removed LuaLibNetwork references

  • Project changes to add network lib

There are something a lot change in **NETWORK** library of Corona SDK, right?

Am I missing something related to **NETWORK** library?

Please help me out of it!

@Coronaent1

Could you please post a bug report with a sample project to test?  The latest daily enterprise build appears to be working correctly with the network request calls.

I found the solution finally.

One of my colleague found that libplayer.a is not loading automatically in iOS.

So I have to add a flag into ‘Other Linker Flags’ of Build Settings on my target.

Here is a flag:

-force\_load $(SYSTEM\_APPS\_DIR)/CoronaEnterprise/Corona/ios/lib/libplayer.a

If you use Corona Enterprise over 2013.1041 you have to load ‘libplayer.a’ forcefully.

And there is one more thing:

If you update your app now, you have to use over 2013.1076 version of Corona Enterprise.

Because you must not use ‘uniqueIdentifier’ of UDID from 1/5/2013, there is a ‘uniqueIdentifier’ keyword included prior to 2013.1076 version of Corona Enterprise.

I tested with Corona Enterprise build 1088, 1100, 1105, and 1106.

After I upgraded Corona Enterprise from build 1031.

Most of version of Corona Enterprise occur following errors except build 1031.

 Runtime error
    module ‘network’ not found:
        no field package.preload[‘network’]

There are no require( “network” ) code line in any of my source codes.

I also tested with Corona Enterprise build 1043 and it occurs the same error.

Finally I could upgrade CoronaSDK 2013.1041 from 1031.

But over 1041, that is, 1043 occurred the error of not found network.lua or network.so.

I found following daily build summary:

 CoronaSDK 2013.1043
Post date: Wed, 2013-03-06 20:23
Release notes for build 2013.1041 through 2013.1043

  • Added tag PRE-NETWORK-2.0 for changeset 313145db6420

  • This changeset adds updates and augments the existing network functionality and support.

  • Adding Network 2.0 support/fixes

  • Updated projects to include new networking libraries across platforms and updated the setup project to deploy the new networking dll.

  • Removed LuaLibNetwork references

  • Project changes to add network lib

There are something a lot change in **NETWORK** library of Corona SDK, right?

Am I missing something related to **NETWORK** library?

Please help me out of it!

@Coronaent1

Could you please post a bug report with a sample project to test?  The latest daily enterprise build appears to be working correctly with the network request calls.

I found the solution finally.

One of my colleague found that libplayer.a is not loading automatically in iOS.

So I have to add a flag into ‘Other Linker Flags’ of Build Settings on my target.

Here is a flag:

-force\_load $(SYSTEM\_APPS\_DIR)/CoronaEnterprise/Corona/ios/lib/libplayer.a

If you use Corona Enterprise over 2013.1041 you have to load ‘libplayer.a’ forcefully.

And there is one more thing:

If you update your app now, you have to use over 2013.1076 version of Corona Enterprise.

Because you must not use ‘uniqueIdentifier’ of UDID from 1/5/2013, there is a ‘uniqueIdentifier’ keyword included prior to 2013.1076 version of Corona Enterprise.