iAds - any way to run in xCode simulator with 'supportedPlatforms' flag?

This works on xCode Simulator and device, but will cause a crash on Android:

[lua]

 [“CoronaProvider.ads.iads”] =

        {

            – required

            publisherId = “com.coronalabs”,

        },

[/lua]

This works on all devices but not on xCode Simulator:

[lua]

 [“CoronaProvider.ads.iads”] =

        {

            – required

            publisherId = “com.coronalabs”,

           supportedPlatforms = { iphone = true },

        },

[/lua]

Is there a flag I can use so it will work on an iOS device, xCode Simulator and Android devices? It’s so frustrating when you wait for a build for the simulator and then realise you still have the flag selected from a device build or vice versa.

settings = {     plugins =     {         ["CoronaProvider.ads.iads"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { iphone=true, ["iphone-sim"]=true },         },      }, }

Since the iphone-sim key has  a special character in it you have to use the square bracket table key notation.   See:
 

http://docs.coronalabs.com/plugin/ads-iads/index.html

Rob

Thanks a lot - when did that sneak in the docs? :wink:

Its been there for a while.

Rob

settings = {     plugins =     {         ["CoronaProvider.ads.iads"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { iphone=true, ["iphone-sim"]=true },         },      }, }

Since the iphone-sim key has  a special character in it you have to use the square bracket table key notation.   See:
 

http://docs.coronalabs.com/plugin/ads-iads/index.html

Rob

Thanks a lot - when did that sneak in the docs? :wink:

Its been there for a while.

Rob