Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Runtime error: module 'plugin.appodeal' not found
Started by hasen6 Apr 24 2018 02:02 AM

12 replies to this topic

Best Answer karpovpw , 25 April 2018 - 12:15 AM

Hi guys, I'll take it from here.
 

I'm trying to build for iOS

That was a little misleading, but this

Corona simulator opens it directly in the xcode simulator

is where the truth lies.

That's a pretty easy fix: you've listed supported platforms in your build settings, but haven't included ["iphone-sim"]. Then trying to launch an app on an iPhone simulator gives a pretty straightforward error - there is no module 'plugin.appodeal' included in iphone simulator build, because, well, you've told it to not include it. Take a closer look at https://docs.coronalabs.com/guide/distribution/advancedSettings/index.html#plugins-supported-platforms to check what I'm talking about.

You can launch your app on an actual iOS device just fine or you can rebuild your app with these platfroms supported:

supportedPlatforms = { iphone=true, android=true, ["android-kindle"]=true, ["iphone-sim"]=true }

And then launch it on an iPhone sim.

It's up to you.

Btw, look closely at https://docs.coronalabs.com/plugin/appodeal/ too. Corona Appodeal plugin doesn't support tvOS at all.

It's better to remove supportedPlatforms line completely, since you don't have any special needs for it. Appodeal plugin will work on any supported platform as stated @ https://docs.coronalabs.com/guide/distribution/advancedSettings/index.html#plugins-supported-platforms

If you have any more questions or concerns - feel free to share them on this forum, it's easier to solve everything together!  B)

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

hasen6

[GLOBAL: userInfoPane.html]
hasen6
  • Contributor

  • 151 posts
  • Corona SDK

I'm trying to build for iOS and I followed the guide at the appodeal website. Thus my build settings are like this:--

 
--
-- For more information on build.settings, see the Project Build Settings guide at:
-- https://docs.coronalabs.com/guide/distribution/buildSettings
--

settings =
{
	orientation =
	{
		-- Supported values for orientation:
		-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight
		default = "portrait",
		supported = { "portrait", },
	},

	--
	-- Android section
	--
	android =
	{
		usesPermissions =
		{
			"android.permission.INTERNET",
		},
	},

	--
	-- iOS section
	--
	iphone =
	{
		plist =
		{
			MinimumOSVersion = "8.0",
			NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },
			UIStatusBarHidden = true,
			UILaunchStoryboardName = "LaunchScreen",
			CFBundleIconFiles =
			{
				"Icon-40.png",
				"Icon-40@2x.png",
				"Icon-40@3x.png",
				"Icon-60@2x.png",
				"Icon-60@3x.png",
				"Icon-72.png",
				"Icon-72@2x.png",
				"Icon-76.png",
				"Icon-76@2x.png",
				"Icon-83.5@2x.png",
				"Icon-Small-50.png",
				"Icon-Small-50@2x.png",
				"Icon-Small.png",
				"Icon-Small@2x.png",
				"Icon-Small@3x.png",
				"Icon.png",
				"Icon@2x.png",
				"NotificationIcon@2x.png",
				"NotificationIcon@3x.png",
				"NotificationIcon~ipad.png",
				"NotificationIcon~ipad@2x.png"
			},
		},
	},

	--
	-- Plugins section
	--
	plugins =
	{
		-- includes IAP Badger as a plug in
		["plugin.iap_badger"] =
		{
		    -- required
		    publisherId = "uk.co.happymongoose",
		},
		["plugin.appodeal"] =
		{
		    publisherId = "com.coronalabs",
		    supportedPlatforms = { iphone=true, android=true, ["android-kindle"]=true, appletvos=true }
		},
	},

	--
	-- Project section
	--
	excludeFiles =
	{
		-- Exclude unnecessary files for each platform
		all = { "Icon.png", "Icon-*dpi.png", "Images.xcassets", },
		android = { "LaunchScreen.storyboardc", },
	},
}

 

The build succeeds and I can't see any errors in the build log in the simulator. But when opening a page where appodeal is required I get the runtime error:

 

module 'plugin.appodeal' not found: resource (plugin.appodeal.lu) does not exist in archive. No field package.preload['plugin.appodeal'] no file...etc etc.



[TOPIC: post.html]
#2

y.briones

[GLOBAL: userInfoPane.html]
y.briones
  • Observer

  • 8 posts
  • Corona SDK

Can you provide apk file and log?



[TOPIC: post.html]
#3

hasen6

[GLOBAL: userInfoPane.html]
hasen6
  • Contributor

  • 151 posts
  • Corona SDK

I can provide the log but not the game's whole source code. The log doesn't even seem to mention Appodeal although it is in the build settings as above. Here is the log:

4月 24 11:48:43.075 Using additional build settings from: build.settings
                    Building: Copying app resources
                    Excluding specified files from build: 
                       excluding: Icon.png
                       excluding: Icon-*dpi.png
                       excluding: Images.xcassets
                    Building: Unpacking build from server
4月 24 11:48:43.113 Building: Adding plugins
4月 24 11:48:43.143 Analyzing plugins...
4月 24 11:48:43.143 	Done.
                    
                    Analyzing Lua plugins...
                    Examining plugin: plugin.iap_badger
                    Found Lua plugin: plugin.iap_badger
4月 24 11:48:43.157 	<execute>mkdir -p "/Users/hasen/Desktop/solitaire 0.826.app/corona-plugins"</execute>
                    	<result></result>
4月 24 11:48:43.158 	<execute>cp -R "/Users/hasen/Desktop/solitaire 0.826.app/.build/plugin.iap_badger/lua/lua_51/"/* "/Users/hasen/Desktop/solitaire 0.826.app/corona-plugins"</execute>
                    	<result></result>
                    	<execute>find "/Users/hasen/Desktop/solitaire 0.826.app/corona-plugins" \( -name '*.lu' -o  -name '*.lua' \) -delete</execute>
                    	<result></result>
4月 24 11:48:43.172 	<execute>COPYPNG=$(xcrun -f copypng); find "/Users/hasen/Desktop/solitaire 0.826.app/corona-plugins" -name '*.png' -exec "$COPYPNG" -compress {} {}.copypng \; -exec mv {}.copypng {} \;</execute>
                    	<result></result>
                    	Done.
                    
                    Compiling Slices...
                    	Compiling architecture:	i386
4月 24 11:48:43.609 	<execute>cd "/var/folders/sc/vxvssbjx2959ybyrygvq0hkr0000gn/T/CLtmpZ5BPsa/i386";unset LIBRARY_PATH; export IPHONEOS_DEPLOYMENT_TARGET=8.0; export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin";"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -arch i386 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk" -ObjC -all_load -fobjc-link-runtime -miphoneos-version-min=8.0 -std=c++11 -stdlib=libc++ -Xlinker -rpath -Xlinker @executable_path/Frameworks -L"/Users/hasen/Desktop/solitaire 0.826.app/.build/libtemplate" -F"/Users/hasen/Desktop/solitaire 0.826.app/Frameworks" -framework AudioToolbox -framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework CoreVideo -framework CoreText -framework GameKit -framework GLKit -framework ImageIO -framework MapKit -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenAL -framework OpenGLES -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework GameController -weak_framework AssetsLibrary -weak_framework Photos -weak_framework Foundation -weak_framework Twitter -lobjc -lsqlite3 -ltemplate -o "/var/folders/sc/vxvssbjx2959ybyrygvq0hkr0000gn/T/CLtmpZ5BPsa/i386/solitaire 0.826"</execute>
                    	<result>ld: warning: directory not found for option '-F/Users/hasen/Desktop/solitaire 0.826.app/Frameworks'</result>
                    		Done.
                    
                    	Compiling architecture:	x86_64
4月 24 11:48:43.800 	<execute>cd "/var/folders/sc/vxvssbjx2959ybyrygvq0hkr0000gn/T/CLtmpZ5BPsa/x86_64";unset LIBRARY_PATH; export IPHONEOS_DEPLOYMENT_TARGET=8.0; export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin";"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -arch x86_64 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk" -ObjC -all_load -fobjc-link-runtime -miphoneos-version-min=8.0 -std=c++11 -stdlib=libc++ -Xlinker -rpath -Xlinker @executable_path/Frameworks -L"/Users/hasen/Desktop/solitaire 0.826.app/.build/libtemplate" -F"/Users/hasen/Desktop/solitaire 0.826.app/Frameworks" -framework AudioToolbox -framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework CoreVideo -framework CoreText -framework GameKit -framework GLKit -framework ImageIO -framework MapKit -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenAL -framework OpenGLES -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework GameController -weak_framework AssetsLibrary -weak_framework Photos -weak_framework Foundation -weak_framework Twitter -lobjc -lsqlite3 -ltemplate -o "/var/folders/sc/vxvssbjx2959ybyrygvq0hkr0000gn/T/CLtmpZ5BPsa/x86_64/solitaire 0.826"</execute>
                    	<result>ld: warning: directory not found for option '-F/Users/hasen/Desktop/solitaire 0.826.app/Frameworks'</result>
                    		Done.
                    
                    	Done.
                    
                    Creating Universal Binary...
4月 24 11:48:43.859 	<execute>cd "/Users/hasen/Desktop/solitaire 0.826.app";export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin";"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo" -create  "/var/folders/sc/vxvssbjx2959ybyrygvq0hkr0000gn/T/CLtmpZ5BPsa/i386/solitaire 0.826" "/var/folders/sc/vxvssbjx2959ybyrygvq0hkr0000gn/T/CLtmpZ5BPsa/x86_64/solitaire 0.826" -output "/Users/hasen/Desktop/solitaire 0.826.app/solitaire 0.826"</execute>
                    	<result></result>
                    	Done.
                    
                    Emit debug symbols...
4月 24 11:48:43.911 	<execute>cd "/Users/hasen/Desktop/solitaire 0.826.app";export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin";"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil" "/Users/hasen/Desktop/solitaire 0.826.app/solitaire 0.826" -o "/Users/hasen/Desktop/solitaire 0.826.app.dSYM"</execute>
                    	<result></result>
                    	Done.
                    
                    Stripping...
4月 24 11:48:43.953 	<execute>cd "/Users/hasen/Desktop/solitaire 0.826.app";export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin";"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" -x "/Users/hasen/Desktop/solitaire 0.826.app/solitaire 0.826"</execute>
                    	<result></result>
                    	Done.
                    
                    Build Succeeded.
4月 24 11:48:43.964 Creating Info.plist...
4月 24 11:48:43.976     adding extra plist setting UIStatusBarHidden: true
                        adding extra plist setting UILaunchStoryboardName: LaunchScreen
                        adding extra plist setting NSAppTransportSecurity: {"NSAllowsArbitraryLoads":true}
4月 24 11:48:43.977     adding extra plist setting CFBundleIconFiles: ["Icon-40.png","Icon-40@2x.png","Icon-40@3x.png","Icon-60@2x.png","Icon-60@3x.png","Icon-72.png","Icon-72@2x.png","Icon-76.png","Icon-76@2x.png","Icon-83.5@2x.png","Icon-Small-50.png","Icon-Small-50@2x.png","Icon-Small.png","Icon-Small@2x.png","Icon-Small@3x.png","Icon.png","Icon@2x.png","NotificationIcon@2x.png","NotificationIcon@3x.png","NotificationIcon~ipad.png","NotificationIcon~ipad@2x.png"]
                        adding extra plist setting MinimumOSVersion: 8.0
4月 24 11:48:43.990 Application version information:
                        Version: 1.0            [CFBundleShortVersionString] (set in Build dialog)
                          Build: 2018.04.242348 [CFBundleVersion] (set by Simulator)
                    Building: Signing application for Xcode Simulator
4月 24 11:48:44.785 iOS build succeeded in 21 seconds
4月 24 11:48:45.097 Running '/Users/hasen/Desktop/solitaire 0.826.app' on Xcode iOS Simulator - iPhone 7 / iOS 10.2 (7C9B87D3-DEB4-4FA5-B1B2-276FEA80C2E4)
4月 24 11:48:53.572 ----------  Device Log Starts  ----------
4月 24 11:48:53.680 [iOS Simulator] objc[57386]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x117523988) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/AVConference.framework/AVConference (0x11745ac38). One of the two will be used. Which one is undefined.
                    [iOS Simulator] objc[57386]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11ab18998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11a54b880). One of the two will be used. Which one is undefined.
4月 24 11:48:53.706 [iOS Simulator] Platform: iPhone / x86_64 / 10.2 / Apple Software Renderer / OpenGL ES 2.0 APPLE-13.0.7 / 2017.3061 / en | US | en_US | en
4月 24 11:48:54.288 [iOS Simulator] [aqme] 255: AQDefaultDevice (1): skipping input stream 0 0 0x0
4月 24 11:48:54.481 [iOS Simulator] [] nw_host_stats_add_src recv too small, received 24, expected 28
4月 24 11:48:54.494 [iOS Simulator] [] ____nwlog_simulate_crash_inner_block_invoke dlopen CrashReporterSupport failed
4月 24 11:48:54.494 [iOS Simulator] [] __nwlog_err_simulate_crash simulate crash failed "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
                    [iOS Simulator] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
                    [iOS Simulator] 	        [x86_64] libnetcore-856.30.16
                    [iOS Simulator] 	    0   libsystem_network.dylib             0x000000010c57c666 __nw_create_backtrace_string + 123
                    [iOS Simulator] 	    1   libnetwork.dylib                    0x000000010c956006 nw_socket_add_input_handler + 3164
                    [iOS Simulator] 	    2   libnetwork.dylib                    0x000000010c933555 nw_endpoint_flow_attach_protocols + 3768
                    [iOS Simulator] 	    3   libnetwork.dylib                    0x000000010c932572 nw_endpoint_flow_setup_socket + 563
                    [iOS Simulator] 	    4   libnetwork.dylib                    0x000000010c931298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
                    [iOS Simulator] 	    5   libnetwork.dylib                    0x000000010c94cae1 nw_endpoint_handler_path_change + 1261
                    [iOS Simulator] 	    6   libnetwork.dylib                    0x000000010c94c510 nw_endpoint_handler_start + 570
                    [iOS Simulator] 	    7   libnetwork.dylib                    0x000000010c9641f9 nw_endpoint_resolver_start_next_child + 2240
                    [iOS Simulator] 	    8   libdispatch.dylib                   0x0000
4月 24 11:48:56.293 [iOS Simulator] [aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
4月 24 11:48:56.478 [iOS Simulator] [] nw_host_stats_add_src recv too small, received 24, expected 28
4月 24 11:48:56.492 [iOS Simulator] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
4月 24 11:48:56.492 [iOS Simulator] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
                    [iOS Simulator] 	        [x86_64] libnetcore-856.30.16
                    [iOS Simulator] 	    0   libsystem_network.dylib             0x000000010c57c666 __nw_create_backtrace_string + 123
                    [iOS Simulator] 	    1   libnetwork.dylib                    0x000000010c956006 nw_socket_add_input_handler + 3164
                    [iOS Simulator] 	    2   libnetwork.dylib                    0x000000010c933555 nw_endpoint_flow_attach_protocols + 3768
                    [iOS Simulator] 	    3   libnetwork.dylib                    0x000000010c932572 nw_endpoint_flow_setup_socket + 563
                    [iOS Simulator] 	    4   libnetwork.dylib                    0x000000010c931298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
                    [iOS Simulator] 	    5   libnetwork.dylib                    0x000000010c94cae1 nw_endpoint_handler_path_change + 1261
                    [iOS Simulator] 	    6   libnetwork.dylib                    0x000000010c94c510 nw_endpoint_handler_start + 570
                    [iOS Simulator] 	    7   libnetwork.dylib                    0x000000010c9641f9 nw_endpoint_resolver_start_next_child + 2240
                    [iOS Simulator] 	    8   libdispatch.dylib                   0x0000
4月 24 11:48:56.732 [iOS Simulator] [] nw_host_stats_add_src recv too small, received 24, expected 28
4月 24 11:48:56.745 [iOS Simulator] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
4月 24 11:48:56.746 [iOS Simulator] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
                    [iOS Simulator] 	        [x86_64] libnetcore-856.30.16
                    [iOS Simulator] 	    0   libsystem_network.dylib             0x000000010c57c666 __nw_create_backtrace_string + 123
                    [iOS Simulator] 	    1   libnetwork.dylib                    0x000000010c956006 nw_socket_add_input_handler + 3164
                    [iOS Simulator] 	    2   libnetwork.dylib                    0x000000010c933555 nw_endpoint_flow_attach_protocols + 3768
                    [iOS Simulator] 	    3   libnetwork.dylib                    0x000000010c932572 nw_endpoint_flow_setup_socket + 563
                    [iOS Simulator] 	    4   libnetwork.dylib                    0x000000010c931298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
                    [iOS Simulator] 	    5   libnetwork.dylib                    0x000000010c94cae1 nw_endpoint_handler_path_change + 1261
                    [iOS Simulator] 	    6   libnetwork.dylib                    0x000000010c94c510 nw_endpoint_handler_start + 570
                    [iOS Simulator] 	    7   libnetwork.dylib                    0x000000010c9641f9 nw_endpoint_resolver_start_next_child + 2240
                    [iOS Simulator] 	    8   libdispatch.dylib                   0x0000
4月 24 11:48:57.939 [iOS Simulator] [] nw_endpoint_handler_add_write_request [2.1 88.99.30.67:443 failed socket-flow (satisfied)] cannot accept write requests
4月 24 11:48:57.940 [iOS Simulator] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [22] Invalid argument
4月 24 11:48:58.302 [iOS Simulator] [aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
4月 24 11:49:00.310 [iOS Simulator] [aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
4月 24 11:49:02.319 [iOS Simulator] [aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
4月 24 11:49:12.361 [iOS Simulator] [aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
4月 24 11:49:13.254 ---------- Device Log Finished ----------



[TOPIC: post.html]
#4

hasen6

[GLOBAL: userInfoPane.html]
hasen6
  • Contributor

  • 151 posts
  • Corona SDK

At the moment the only code I have regarding the Appodeal plugin is:

local appodeal = require( "plugin.appodeal" )

That and the build settings entry. But as it is it's not working so no point me adding any further ad related code.



[TOPIC: post.html]
#5

y.briones

[GLOBAL: userInfoPane.html]
y.briones
  • Observer

  • 8 posts
  • Corona SDK

 

I can provide the log but not the game's whole source code. The log doesn't even seem to mention Appodeal although it is in the build settings as above. 

 

Can you also please send the project structure from Xcode?



[TOPIC: post.html]
#6

hasen6

[GLOBAL: userInfoPane.html]
hasen6
  • Contributor

  • 151 posts
  • Corona SDK

Can you also please send the project structure from Xcode?

Not sure what you mean, the Corona simulator opens it directly in the xcode simulator? It doesn't even need to open xcode itself at all.



[TOPIC: post.html]
#7

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 231 posts
  • Corona Staff

  Best Answer

Hi guys, I'll take it from here.
 

I'm trying to build for iOS

That was a little misleading, but this

Corona simulator opens it directly in the xcode simulator

is where the truth lies.

That's a pretty easy fix: you've listed supported platforms in your build settings, but haven't included ["iphone-sim"]. Then trying to launch an app on an iPhone simulator gives a pretty straightforward error - there is no module 'plugin.appodeal' included in iphone simulator build, because, well, you've told it to not include it. Take a closer look at https://docs.coronalabs.com/guide/distribution/advancedSettings/index.html#plugins-supported-platforms to check what I'm talking about.

You can launch your app on an actual iOS device just fine or you can rebuild your app with these platfroms supported:

supportedPlatforms = { iphone=true, android=true, ["android-kindle"]=true, ["iphone-sim"]=true }

And then launch it on an iPhone sim.

It's up to you.

Btw, look closely at https://docs.coronalabs.com/plugin/appodeal/ too. Corona Appodeal plugin doesn't support tvOS at all.

It's better to remove supportedPlatforms line completely, since you don't have any special needs for it. Appodeal plugin will work on any supported platform as stated @ https://docs.coronalabs.com/guide/distribution/advancedSettings/index.html#plugins-supported-platforms

If you have any more questions or concerns - feel free to share them on this forum, it's easier to solve everything together!  B)


  • roaminggamer and y.briones like this

[TOPIC: post.html]
#8

hasen6

[GLOBAL: userInfoPane.html]
hasen6
  • Contributor

  • 151 posts
  • Corona SDK

Hi guys, I'll take it from here.
 

That was a little misleading, but this

is where the truth lies.

That's a pretty easy fix: you've listed supported platforms in your build settings, but haven't included ["iphone-sim"]. Then trying to launch an app on an iPhone simulator gives a pretty straightforward error - there is no module 'plugin.appodeal' included in iphone simulator build, because, well, you've told it to not include it. Take a closer look at https://docs.coronalabs.com/guide/distribution/advancedSettings/index.html#plugins-supported-platforms to check what I'm talking about.

You can launch your app on an actual iOS device just fine or you can rebuild your app with these platfroms supported:

supportedPlatforms = { iphone=true, android=true, ["android-kindle"]=true, ["iphone-sim"]=true }

And then launch it on an iPhone sim.

 

Ok I guess I neglected to mention it was on the simulator rather than an actual device. I didn't realise it wouldn't be the same.

 

Btw, look closely at https://docs.coronalabs.com/plugin/appodeal/ too. Corona Appodeal plugin doesn't support tvOS at all.

Actually that code was copied directly from the Appodeal Corona SDK integration guide....I guess someone needs to let them know it's wrong?



[TOPIC: post.html]
#9

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 231 posts
  • Corona Staff

I'll write it to them directly, although they can see that thread just fine and I'm sure that the docs update is already planned, but just in case.

Thanks for noticing!



[TOPIC: post.html]
#10

hasen6

[GLOBAL: userInfoPane.html]
hasen6
  • Contributor

  • 151 posts
  • Corona SDK

Ok that seems to have solved it. Thanks.



[TOPIC: post.html]
#11

hasen6

[GLOBAL: userInfoPane.html]
hasen6
  • Contributor

  • 151 posts
  • Corona SDK

I'll write it to them directly, although they can see that thread just fine and I'm sure that the docs update is already planned, but just in case.

Thanks for noticing!

I just thought I'd add that the plugin itself displays the warning "appodeal.init() WARNING: The Appodeal plugin is only supported on Android, iOS and tvOS devices." so it also says it works on tvOS devices?

 

This error comes up when running in the simulator. Obviously the plugin doesn't work in the Corona simulator but I just thought I'd point out the error message that says this. Did it never work for tvOS or is it a recent thing?



[TOPIC: post.html]
#12

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 231 posts
  • Corona Staff

Seems like it. I am too seeing some tvOS activity in legacy sources, can't say when and why tvOS support was stopped for now.

I'll investigate more, hope that we can bring back (or start from the beginning) tvOS support.



[TOPIC: post.html]
#13

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 231 posts
  • Corona Staff

There won't be tvOS support in the nearest future updates, due to some limitations, sadly.




[topic_controls]
[/topic_controls]