iOS Build failed: There was a problem linking the app - Cause by Vungle

I’m trying to build my app for iOS using the latest public build (2016.2380), and it looks like the Vungle plugin is causing it to fail. 

I get the following error in the logs:

Compiling Slices…

Compiling architecture: armv7

<execute>cd “/var/folders/xt/whnwc0fx7p798jgy6lmyswvw0000gp/T/CLtmptfcRWc/armv7”;unset LIBRARY_PATH; export IPHONEOS_DEPLOYMENT_TARGET=7.0; export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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++ -stdlib=libstdc++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -ObjC -all_load -fobjc-link-runtime -miphoneos-version-min=7.0 -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/libtemplate" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/CoronaProvider.ads.vungle" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/plugin.advertisingId" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/plugin.facebook.v4" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/plugin.flurry.analytics" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/plugin.google.play.services" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/plugin.notifications" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/plugin.OneSignal" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/plugin.openssl" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/plugin.pasteboard" -L"/Users/dev2/Documents/Distribution/Store/Underworld Football Manager.app/.build/plugin.utf8" -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 -framework Accounts -framework AdSupport -framework CoreTelephony -framework EventKit -framework EventKitUI -weak_framework GameController -weak_framework AssetsLibrary -weak_framework Photos -weak_framework Foundation -weak_framework Twitter -lobjc -lsqlite3 -ltemplate -lads-vungle -lz -lplugin_library -lfacebook -lFlurryPlugin -lFlurry_7.5.2 -lgoogle-play-services -lnotifications -lplugin_OneSignal -lplugin.openssl -lpasteboard -lplugin.utf8 -o “/var/folders/xt/whnwc0fx7p798jgy6lmyswvw0000gp/T/CLtmptfcRWc/armv7/Underworld Football Manager”</execute>

<result>Undefined symbols for architecture armv7:

  “_OBJC_CLASS_$_WKWebView”, referenced from:

      l_OBJC_$_CATEGORY_WKWebView_$_VungleWKWebView in libads-vungle.a(WKWebView+VungleWKWebView.o)

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)</result>

ERROR: Builder failed: Undefined symbols for architecture armv7:

  “_OBJC_CLASS_$_WKWebView”, referenced from:

      l_OBJC_$_CATEGORY_WKWebView_$_VungleWKWebView in libads-vungle.a(WKWebView+VungleWKWebView.o)

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

BUILD ERROR: There was a problem linking the app.

Any help would be greatly appreciated

Also using the public build #2016.2376! There is a problem in the last Vungle plugin version (CoronaProvider.ads.vungle).

Wednesday was everything ok. Build process fails from yesterday. :frowning:

I’m getting this error too. Tried multiple different builds and it still happens. Using the latest Xcode/Mac OS X.

Same, thanks for any help!

May 20 01:23:28.247 \<result\>Undefined symbols for architecture armv7: May 20 01:23:28.248 "\_OBJC\_CLASS\_$\_WKWebView", referenced from: May 20 01:23:28.248 l\_OBJC\_$\_CATEGORY\_WKWebView\_$\_VungleWKWebView in libads-vungle.a(WKWebView+VungleWKWebView.o) May 20 01:23:28.248 ld: symbol(s) not found for architecture armv7 May 20 01:23:28.248 clang: error: linker command failed with exit code 1 (use -v to see invocation)\</result\> May 20 01:23:28.274 ERROR: Builder failed: Undefined symbols for architecture armv7: May 20 01:23:28.275 "\_OBJC\_CLASS\_$\_WKWebView", referenced from: May 20 01:23:28.275 l\_OBJC\_$\_CATEGORY\_WKWebView\_$\_VungleWKWebView in libads-vungle.a(WKWebView+VungleWKWebView.o) May 20 01:23:28.275 ld: symbol(s) not found for architecture armv7 May 20 01:23:28.275 clang: error: linker command failed with exit code 1 (use -v to see invocation) May 20 01:23:28.275 BUILD ERROR: There was a problem linking the app. Check the console for more information. May 20 01:23:28.308 iOS build failed (12) May 20 01:23:28.632 ERROR: Build Failed: There was a problem linking the app. Check the console for more information.

Vungle has issued a fix:

https://forums.coronalabs.com/topic/59396-coronasdk-20152722-unable-to-build-for-ios-when-vungle-plugin-enabled/

I should pay more attention to the dates on posts :frowning:

Apparently, Vungle reverted their fix which is causing the same error to reappear.  The quickest resolution will be to contact their support and report the issue.

Also using the public build #2016.2376! There is a problem in the last Vungle plugin version (CoronaProvider.ads.vungle).

Wednesday was everything ok. Build process fails from yesterday. :frowning:

I’m getting this error too. Tried multiple different builds and it still happens. Using the latest Xcode/Mac OS X.

Same, thanks for any help!

May 20 01:23:28.247 \<result\>Undefined symbols for architecture armv7: May 20 01:23:28.248 "\_OBJC\_CLASS\_$\_WKWebView", referenced from: May 20 01:23:28.248 l\_OBJC\_$\_CATEGORY\_WKWebView\_$\_VungleWKWebView in libads-vungle.a(WKWebView+VungleWKWebView.o) May 20 01:23:28.248 ld: symbol(s) not found for architecture armv7 May 20 01:23:28.248 clang: error: linker command failed with exit code 1 (use -v to see invocation)\</result\> May 20 01:23:28.274 ERROR: Builder failed: Undefined symbols for architecture armv7: May 20 01:23:28.275 "\_OBJC\_CLASS\_$\_WKWebView", referenced from: May 20 01:23:28.275 l\_OBJC\_$\_CATEGORY\_WKWebView\_$\_VungleWKWebView in libads-vungle.a(WKWebView+VungleWKWebView.o) May 20 01:23:28.275 ld: symbol(s) not found for architecture armv7 May 20 01:23:28.275 clang: error: linker command failed with exit code 1 (use -v to see invocation) May 20 01:23:28.275 BUILD ERROR: There was a problem linking the app. Check the console for more information. May 20 01:23:28.308 iOS build failed (12) May 20 01:23:28.632 ERROR: Build Failed: There was a problem linking the app. Check the console for more information.

Vungle has issued a fix:

https://forums.coronalabs.com/topic/59396-coronasdk-20152722-unable-to-build-for-ios-when-vungle-plugin-enabled/

I should pay more attention to the dates on posts :frowning:

Apparently, Vungle reverted their fix which is causing the same error to reappear.  The quickest resolution will be to contact their support and report the issue.