Runtime error: module 'plugin.appodeal' not found

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.

Can you provide apk file and log?

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 ----------

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.

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.

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)

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.

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

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!

Ok that seems to have solved it. Thanks.

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?

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.

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

Can you provide apk file and log?

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 ----------

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.

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.

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)

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.

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