Hello
I have problem about admob plugin, I tried to add admob plugin to my iOS App (my old is admob yearly subscription in market place, Now it automatic activated in marketplace/my activated product)
But After i build and test, my app had closed immediately (crash), It occur only iOS app, in android app is fine no crash and banner showed.
I had tried in Corona-3582,Corona-3583,Corona-3598 both on xCode Simulator and on device(Test Fight) result is same , What should i do?, Thank you in advance.
Below is my information.
build.setting
settings =
{
orientation =
{
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = “portrait”,
supported = { “portrait” }
},android =
{applicationChildElements = { [[ <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-29995xxx4194xxxx~707987xxxx"/> -- replace with your app id. See: https://goo.gl/fQ2neu ]], }, },
plugins =
{["plugin.admob"] = { publisherId = "com.coronalabs" },
},
iphone =
{
xcassets = “Images.xcassets”,
plist =
{
UILaunchStoryboardName = “LaunchScreen”,
ITSAppUsesNonExemptEncryption = false, – This sample doesn’t use custom encryption
},
},window =
{
titleText =
{
default = “Hello World”,
},
},
}
main.lua
local admob = require( “plugin.admob” )
local appId = “ca-app-pub-2999510741947420~803619xxxx” – ios
–local appId = “ca-app-pub-2999510741947420~7079878085” – android
local banner_id = “ca-app-pub-3940256099942544/2934735716” – test banner unit ios
–local banner_id = “ca-app-pub-3940256099942544/6300978111” – test banner unit androidlocal function test ( test_type, id )
local function adListener( event )
for k,v in pairs( event ) do
print( k, v )
end
print( ‘---------------------------\n’ )if ( event.phase == "init" ) then admob.load( test_type, { adUnitId = id } ) elseif ( event.phase == "loaded" ) then admob.show( test_type ) end
end
admob.init( adListener, { appId = appId } )
end– Run one or the other, but not both
test( “banner”, banner_id )
My location of plugin
/Users/utain99macair/Solar2DPlugins/com.coronalabs/plugin.admob/iphone/data.tgz
Debug Log from xCode Simulator
Jun 6 23:06:30 MacBook-Air HelloWorld[22852]: assertion failed: 19E287 17F61: libxpc.dylib + 83746 [ED46009E-B942-37CC-95D4-82CF3FE90BD8]: 0x7d
Jun 6 23:06:31 MacBook-Air com.apple.CoreSimulator.SimDevice.6A877902-9A89-4878-B652-B5D12571725C[20959] (UIKitApplication:com.tainapps.sortcolorit[1288][rb-legacy][22852]): Service exited due to SIGABRT
Jun 6 23:06:59 MacBook-Air diagnosticd[20999]: dispatch_io_write error: 32 (Broken pipe)
Jun 6 23:06:59 MacBook-Air diagnosticd[20999]: reflect channel created for fd 5
Jun 6 23:06:59 MacBook-Air budd[22867]: objc[22867]: Class BYBuddyDaemonCloudSyncClient is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SetupAssistant.framework/SetupAssistant (0x7fff893b7048) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SetupAssistant.framework/budd (0x101160668). One of the two will be used. Which one is undefined.