Hi Corena devs.
I’m getting this error. Picture attached.
everything is working fine on Android. but not in iOS.
Any thoughts ?
thanks
Hi Corena devs.
I’m getting this error. Picture attached.
everything is working fine on Android. but not in iOS.
Any thoughts ?
thanks
Do you have [“iphone-sim”] = true included in:
supportedPlatforms = { iphone=true, android=true, osx=true, win32=true, appletvos=true, [“iphone-sim”=true }
??
Hi Rob. No I don’t. is that necessary ?
should I write like this ? :
["plugin.applovin"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, appletvos=true,["iphone-sim"]=true } },
After removing the plugin. I got the same error but with flurry. should I repeat the same thing again ?
Sorry, left off a bracket:
[“iphone-sim”]=true
Yes. There is a different plugin for the Xcode simulator. When you use the supportedPlatform line you’re saying “only include these platforms and exclude everything else”. You’re excluding the Xcode simulator. Frankly you don’t even need that line if you want it for all platforms. Some plugins might be Android only and including them in an iOS build would generate errors.
For what it’s worth, Lua supports two ways to index Lua tables: dot notation and [] notation.
myTable.key = “value”
and
myTable[“key”] = “value”
are identical an interchangable with one exeption. If the key has a hyphen in it or some other non-letter/non-number you have to use the [] notation. Since “iphone-sim” has a hyphen in it, we have to use the [] version for that one. Using the dot notation saves typing.
If you’re going to test on the Xcode iOS simulator, you will either need to remove the supportedPlatforms line completely (or comment it out) or add in the [“iphone-sim”]=true for each plugin.
Thanks Rob. I’ll make the changes right away.
Do you have [“iphone-sim”] = true included in:
supportedPlatforms = { iphone=true, android=true, osx=true, win32=true, appletvos=true, [“iphone-sim”=true }
??
Hi Rob. No I don’t. is that necessary ?
should I write like this ? :
["plugin.applovin"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, appletvos=true,["iphone-sim"]=true } },
After removing the plugin. I got the same error but with flurry. should I repeat the same thing again ?
Sorry, left off a bracket:
[“iphone-sim”]=true
Yes. There is a different plugin for the Xcode simulator. When you use the supportedPlatform line you’re saying “only include these platforms and exclude everything else”. You’re excluding the Xcode simulator. Frankly you don’t even need that line if you want it for all platforms. Some plugins might be Android only and including them in an iOS build would generate errors.
For what it’s worth, Lua supports two ways to index Lua tables: dot notation and [] notation.
myTable.key = “value”
and
myTable[“key”] = “value”
are identical an interchangable with one exeption. If the key has a hyphen in it or some other non-letter/non-number you have to use the [] notation. Since “iphone-sim” has a hyphen in it, we have to use the [] version for that one. Using the dot notation saves typing.
If you’re going to test on the Xcode iOS simulator, you will either need to remove the supportedPlatforms line completely (or comment it out) or add in the [“iphone-sim”]=true for each plugin.
Thanks Rob. I’ll make the changes right away.