[3455] Building for XCode simulator fails with a linker error

I’m trying to build for the xcode simulator and I’m getting a linker error (seems to be related to the appodeal  ad network?). This is the log:

Compiling architecture: i386

Jan 06 12:34:10.649 <execute>cd “/var/folders/cd/3b217xf17436y5p5t6t5hwhr0000gn/T/CLtmpQK9cnC/i386”;unset LIBRARY_PATH; export IPHONEOS_DEPLOYMENT_TARGET=8; 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/iPhoneSimulator12.1.sdk” -ObjC -all_load -fobjc-link-runtime -miphoneos-version-min=8 -std=c++11 -stdlib=libc++ -Xlinker -rpath -Xlinker @executable_path/Frameworks -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/libtemplate" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.MyTarget" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Mobvista" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.FacebookAudience" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.AppLovin" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.AdColony" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.StartApp" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.GoogleAdMob" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/CoronaProvider.native.popup.activity" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Flurry" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.base" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.IronSource" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Chartboost" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Tapjoy" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Unity" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.TwitterMoPub" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.InMobi" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.AmazonAds" -L"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Vungle" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/libtemplate" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.MyTarget" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Mobvista" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.FacebookAudience" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.AppLovin" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.AdColony" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.StartApp" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.GoogleAdMob" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/CoronaProvider.native.popup.activity" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Flurry" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.base" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.IronSource" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Chartboost" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Tapjoy" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Unity" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.TwitterMoPub" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.InMobi" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.AmazonAds" -F"/Users/gianmichelemariani/Projects/brikkin/build/Brikkin.app/.build/plugin.appodeal.beta.Vungle" -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 MyTargetSDK -framework MTGSDK -framework FBAudienceNetwork -framework AppLovinSDK -framework AdColony -framework StartApp -framework GoogleMobileAds -framework FlurrySDK -framework JavaScriptCore -framework CoreBluetooth -framework WebKit -framework CoreTelephony -framework Appodeal -framework AppodealAdExchangeSDK -framework IronSource -framework Chartboost -framework Tapjoy -framework UnityAds -framework MoPubSDK -framework InMobiSDK -framework AmazonAd -framework VungleSDK -weak_framework GameController -weak_framework AssetsLibrary -weak_framework Photos -weak_framework Foundation -weak_framework Twitter -weak_framework EventKit -weak_framework WatchConnectivity -weak_framework Social -weak_framework SafariServices -weak_framework AdSupport -weak_framework EventKitUI -lobjc -lsqlite3 -ltemplate -lAPDMyTargetAdapter -lAPDMobvistaAdapter -lAPDFacebookAudienceAdapter -lAPDAppLovinAdapter -lAPDAdColonyAdapter -lAPDStartAppAdapter -lAPDGoogleAdMobAdapter -lnative-popup-activity -lAPDFlurryAdapter -lplugin_appodeal_base -lxml2 -lz -lAPDAppodealAdExchangeAdapter -lAPDIronSourceAdapter -lAPDChartboostAdapter -lAPDTapjoyAdapter -lAPDUnityAdapter -lAPDTwitterMoPubAdapter -lAPDInMobiAdapter -lAPDAmazonAdsAdapter -lAPDVungleAdapter -o “/var/folders/cd/3b217xf17436y5p5t6t5hwhr0000gn/T/CLtmpQK9cnC/i386/Brikkin”</execute>

                    <result>Undefined symbols for architecture i386:

                      “_VTCreateCGImageFromCVPixelBuffer”, referenced from:

                          -[FNFIOSurfacePlayerLayer displayPixelBuffer:] in FBAudienceNetwork(FNFIOSurfacePlayerLayer.mm.o)

                          -[FNFPlayerIOSurfaceLayer displayPixelBuffer:atTime:preventPlayback:] in FBAudienceNetwork(FNFPlayerIOSurfaceLayer.mm.o)

                    ld: symbol(s) not found for architecture i386

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

Jan 06 12:34:10.650 

Jan 06 12:34:10.670 ERROR: Builder failed: Undefined symbols for architecture i386:

Jan 06 12:34:10.670   “_VTCreateCGImageFromCVPixelBuffer”, referenced from:

                          -[FNFIOSurfacePlayerLayer displayPixelBuffer:] in FBAudienceNetwork(FNFIOSurfacePlayerLayer.mm.o)

                          -[FNFPlayerIOSurfaceLayer displayPixelBuffer:atTime:preventPlayback:] in FBAudienceNetwork(FNFPlayerIOSurfaceLayer.mm.o)

                    ld: symbol(s) not found for architecture i386

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

Jan 06 12:34:10.672 BUILD ERROR: There was a problem linking the app.

                    

                    Check the console for more information.

Jan 06 12:34:10.672 

Jan 06 12:34:10.697 iOS build failed (12) after 229 seconds

Jan 06 12:34:11.050 ERROR: Build Failed: There was a problem linking the app.

                    

                    Check the console for more information.

Anyone has any idea about this? I’m in the final stages of checks before submitting to the app store.

Thanks.

Interesting? Are you trying to build for Windows Desktop? Last time I checked Appodeal does not have i386 libraries. If you are building for windows desktop, I would make sure that you limit those plugins to only Android and iOS.

If you are not building for Windows desktop, I have no idea why you would get i386 errors.

symbol(s) not found for architecture i386

Nope, just building for iOS simulator. Normal iOS build does work BTW, just XCode Simulator.

I’ve commented out the FB Audience Network in the appodeal settings (I’m using the beta version), and that made it work.

ah. that makes sense. that tells me that the FB Audience Network adapter does not have i386 slice. The Simulator runs on i386 since that is the processor of the machine. 

I looked at the repo and there should be an iphone-simulator (i.e. i386 sliced) version of the plugin so it should work. I pinged engineering.

Rob

Interesting? Are you trying to build for Windows Desktop? Last time I checked Appodeal does not have i386 libraries. If you are building for windows desktop, I would make sure that you limit those plugins to only Android and iOS.

If you are not building for Windows desktop, I have no idea why you would get i386 errors.

symbol(s) not found for architecture i386

Nope, just building for iOS simulator. Normal iOS build does work BTW, just XCode Simulator.

I’ve commented out the FB Audience Network in the appodeal settings (I’m using the beta version), and that made it work.

ah. that makes sense. that tells me that the FB Audience Network adapter does not have i386 slice. The Simulator runs on i386 since that is the processor of the machine. 

I looked at the repo and there should be an iphone-simulator (i.e. i386 sliced) version of the plugin so it should work. I pinged engineering.

Rob