Admob plugin with Corona Enterprise

hello, 
is there any special file that need to be included when i am trying to use admob plugin with corona enterprise?

because whenever i build and run it on a device it keep telling me this
 

ERROR: Runtime error

module ‘plugin.admob’ not found:resource (plugin.admob.lu) does not exist in archive

no field package.preload[‘plugin.admob’]

or 

any documentation about how to use admob plugin with corona enterprise?

thank you :slight_smile:

Have you bought the admob plugin? You still have to buy the plugin from corona marketplace and ask for a copy

https://marketplace.coronalabs.com/plugin/admob

Send an email to support AT coronalabs.com and ask them to send you the files.

Rob

Thanks Rob, we mailed support over 24h ago but still no reply … And yes Scott, we bought the plugin, just didn’t know you had to ask for a copy if you are using Enterprise   :slight_smile:

I already received the Admob Plugin from Corona Support, but I still get the same error when build using XCode… :frowning:
On XCode, I already put the plugin on Linked Framework and Libraries on General tab, and also set Library Search Paths on Build Settings tab… Then I build it, but still got error…
I also try to build Samples code on the Admob Plugin, and still got same error, :frowning:

This is the error : 
 

2017-04-19 14:25:24.983 App[7577:96581] ERROR: Runtime error module 'plugin.admob' not found:resource (plugin.admob.lu) does not exist in archive no field package.preload['plugin.admob'] no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin/admob.so' no file './plugin/admob.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin.so' no file './plugin.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin.so'plugin.admobluaopen\_plugin\_admob stack traceback: [C]: in function 'require' ?: in function 'require' /Users/Panda/Documents/21 Truth od Dare/Code/ios/../Corona/main.lua:13: in main chunk 2017-04-19 14:25:24.984 App[7577:96581] Runtime Error: Runtime error: module 'plugin.admob' not found:resource (plugin.admob.lu) does not exist in archive no field package.preload['plugin.admob'] no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin/admob.so' no file './plugin/admob.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin.so' no file './plugin.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin.so'plugin.admobluaopen\_plugin\_admob stack traceback: [C]: in function 'require' ?: in function 'require' /Users/Panda/Documents/21 Truth od Dare/Code/ios/../Corona/main.lua:13: in main chunk

It sounds like you’ve done everything correct.

However, for iOS, keep in mind that the libraries for device and simulator are split into two. ‘iphone’ contains the static libs for armv7 and arm64 (device), and ‘iphone-sim’ contains the static libs for i386 and x86_64 (Xcode simulator). You can use ‘lipo’ to join these libraries if you want…

I’ve sent you a PM with an Xcode project for reference that successfully builds for and runs on device.

Dear ingemar_cl,

Thank you for your information and suggestion, :slight_smile:
It works now, :slight_smile:
I’m sorry because I only test with XCode simulator before,
After I did your suggestion for test on device it works, :slight_smile:

Thank you again ingemar_cl and all, :slight_smile:

Have you bought the admob plugin? You still have to buy the plugin from corona marketplace and ask for a copy

https://marketplace.coronalabs.com/plugin/admob

Send an email to support AT coronalabs.com and ask them to send you the files.

Rob

Thanks Rob, we mailed support over 24h ago but still no reply … And yes Scott, we bought the plugin, just didn’t know you had to ask for a copy if you are using Enterprise   :slight_smile:

I already received the Admob Plugin from Corona Support, but I still get the same error when build using XCode… :frowning:
On XCode, I already put the plugin on Linked Framework and Libraries on General tab, and also set Library Search Paths on Build Settings tab… Then I build it, but still got error…
I also try to build Samples code on the Admob Plugin, and still got same error, :frowning:

This is the error : 
 

2017-04-19 14:25:24.983 App[7577:96581] ERROR: Runtime error module 'plugin.admob' not found:resource (plugin.admob.lu) does not exist in archive no field package.preload['plugin.admob'] no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin/admob.so' no file './plugin/admob.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin.so' no file './plugin.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin.so'plugin.admobluaopen\_plugin\_admob stack traceback: [C]: in function 'require' ?: in function 'require' /Users/Panda/Documents/21 Truth od Dare/Code/ios/../Corona/main.lua:13: in main chunk 2017-04-19 14:25:24.984 App[7577:96581] Runtime Error: Runtime error: module 'plugin.admob' not found:resource (plugin.admob.lu) does not exist in archive no field package.preload['plugin.admob'] no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.lua' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin/admob.so' no file './plugin/admob.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin/admob.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/corona-plugins/plugin.so' no file './plugin.so' no file '/Users/Panda/Library/Developer/CoreSimulator/Devices/2F337A93-16E6-465A-B01B-80C228764D1C/data/Containers/Bundle/Application/812E27FE-C6F2-4569-9314-9BDD21449AEE/App.app/plugin.so'plugin.admobluaopen\_plugin\_admob stack traceback: [C]: in function 'require' ?: in function 'require' /Users/Panda/Documents/21 Truth od Dare/Code/ios/../Corona/main.lua:13: in main chunk

It sounds like you’ve done everything correct.

However, for iOS, keep in mind that the libraries for device and simulator are split into two. ‘iphone’ contains the static libs for armv7 and arm64 (device), and ‘iphone-sim’ contains the static libs for i386 and x86_64 (Xcode simulator). You can use ‘lipo’ to join these libraries if you want…

I’ve sent you a PM with an Xcode project for reference that successfully builds for and runs on device.

Dear ingemar_cl,

Thank you for your information and suggestion, :slight_smile:
It works now, :slight_smile:
I’m sorry because I only test with XCode simulator before,
After I did your suggestion for test on device it works, :slight_smile:

Thank you again ingemar_cl and all, :slight_smile: