Bug 60286 - Compile error
Summary: Compile error
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-20 09:58 UTC by Younghwa Park
Modified: 2017-11-22 20:50 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Younghwa Park 2017-10-20 09:58:54 UTC
Code works for iPhone emulator.
When I try to build for device, Compile fails.



    
    Mono Ahead of Time compiler - compiling assembly /Users/bezzangi/Projects/SpeakingDic/iOS/obj/iPhone/Debug/device-builds/ipad5.3-11.0.3/mtouch-cache/Build/Newtonsoft.Json.dll
    AOTID AE9C5ECB-71A8-6BC0-B45A-47646A698ED5
    Code: 3839584(70%) Info: 55725(1%) Ex Info: 1336116(24%) Unwind Info: 12375(0%) Class Info: 18188(0%) PLT: 7649(0%) GOT Info: 161743(2%) Offsets: 42015(0%) GOT: 142592
    Compiled: 6947/6947 (100%), No GOT slots: 0 (0%), Direct calls: 1032 (13%)
    Output file: '/Users/bezzangi/Projects/SpeakingDic/iOS/obj/iPhone/Debug/device-builds/ipad5.3-11.0.3/mtouch-cache/arm64/Newtonsoft.Json.dll.s'.
    Linking symbol: '_mono_aot_module_Newtonsoft_Json_info'.
    JIT time: 1247 ms, Generation time: 693 ms, Assembly+Link time: 42 ms.
    
    Process exited with code 1, command:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreTelephony -framework CoreVideo -framework GLKit -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework StoreKit -framework SystemConfiguration -framework Foundation -framework UIKit -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -weak_framework CFNetwork -Xlinker -rpath -Xlinker @executable_path /Users/bezzangi/Projects/SpeakingDic/iOS/obj/iPhone/Debug/device-builds/ipad5.3-11.0.3/mtouch-cache/arm64/Google.MobileAds.dll.o /Users/bezzangi/Projects/SpeakingDic/iOS/obj/iPhone/Debug/device-builds/ipad5.3-11.0.3/mtouch-cache/GoogleMobileAds /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonosgen-2.0.dylib /Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libxamarin-debug.dylib -ObjC -lz -liconv -gdwarf-2 -std=c99 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -shared -read_only_relocs suppress -install_name @rpath/libGoogle.MobileAds.dll.dylib -fapplication-extension -o /Users/bezzangi/Projects/SpeakingDic/iOS/obj/iPhone/Debug/device-builds/ipad5.3-11.0.3/mtouch-cache/arm64/libGoogle.MobileAds.dll.dylib -DDEBUG -u _GADAdSizeFromCGSize -u _GADAdSizeFullWidthPortraitWithHeight -u _GADAdSizeFullWidthLandscapeWithHeight -u _GADAdSizeEqualToSize -u _CGSizeFromGADAdSize -u _IsGADAdSizeValid -u _GADAdSizeIsFluid -u _NSStringFromGADAdSize -u _NSValueFromGADAdSize -u _GADAdSizeFromNSValue -u _kGADAdSizeBanner -u _kGADAdSizeFluid -u _kGADAdSizeFullBanner -u _kGADAdSizeInvalid -u _kGADAdSizeLargeBanner -u _kGADAdSizeLeaderboard -u _kGADAdSizeMediumRectangle -u _kGADAdSizeSkyscraper -u _kGADAdSizeSmartBannerLandscape -u _kGADAdSizeSmartBannerPortrait -u _GADNativeCustomTemplateAdMediaViewKey -u '_OBJC_CLASS_$_GADNativeCustomTemplateAd' -u _kGADSimulatorID -u '_OBJC_CLASS_$_GADRequest' -u '_OBJC_CLASS_$_GADRequestError' -u '_OBJC_CLASS_$_GADRewardBasedVideoAd' -u '_OBJC_CLASS_$_GADAdChoicesView' -u '_OBJC_CLASS_$_GADAdLoader' -u '_OBJC_CLASS_$_GADAdLoaderOptions' -u '_OBJC_CLASS_$_GADAdReward' -u '_OBJC_CLASS_$_GADAudioVideoManager' -u '_OBJC_CLASS_$_GADBannerView' -u '_OBJC_CLASS_$_GADCorrelator' -u '_OBJC_CLASS_$_GADCorrelatorAdLoaderOptions' -u '_OBJC_CLASS_$_GADCustomEventExtras' -u '_OBJC_CLASS_$_GADCustomEventRequest' -u '_OBJC_CLASS_$_GADDebugOptionsViewController' -u '_OBJC_CLASS_$_GADDefaultInAppPurchase' -u '_OBJC_CLASS_$_GADDynamicHeightSearchRequest' -u '_OBJC_CLASS_$_GADExtras' -u '_OBJC_CLASS_$_GADInAppPurchase' -u '_OBJC_CLASS_$_GADInterstitial' -u '_OBJC_CLASS_$_GADMediatedNativeAdNotificationSource' -u '_OBJC_CLASS_$_GADMediaView' -u '_OBJC_CLASS_$_GADMobileAds' -u '_OBJC_CLASS_$_GADNativeAd' -u '_OBJC_CLASS_$_GADNativeAdImage' -u '_OBJC_CLASS_$_GADNativeAdImageAdLoaderOptions' -u '_OBJC_CLASS_$_GADNativeAdViewAdOptions' -u '_OBJC_CLASS_$_GADNativeAppInstallAd' -u '_OBJC_CLASS_$_GADNativeAppInstallAdView' -u '_OBJC_CLASS_$_GADNativeContentAd' -u '_OBJC_CLASS_$_GADNativeContentAdView' -u '_OBJC_CLASS_$_GADNativeExpressAdView' -u '_OBJC_CLASS_$_GADSearchBannerView' -u '_OBJC_CLASS_$_GADSearchRequest' -u '_OBJC_CLASS_$_GADVideoController' -u '_OBJC_CLASS_$_GADVideoOptions' -u '_OBJC_CLASS_$_DFPBannerView' -u '_OBJC_CLASS_$_DFPBannerViewOptions' -u '_OBJC_CLASS_$_DFPCustomRenderedAd' -u '_OBJC_CLASS_$_DFPInterstitial' -u _kDFPSimulatorID -u '_OBJC_CLASS_$_DFPRequest'
    Undefined symbols for architecture arm64:
      "_CACurrentMediaTime", referenced from:
          l10249 in GoogleMobileAds(flat-arm64)
      "_OBJC_CLASS_$_CADisplayLink", referenced from:
          objc-class-ref in GoogleMobileAds(flat-arm64)
      "_OBJC_CLASS_$_CAMediaTimingFunction", referenced from:
          objc-class-ref in GoogleMobileAds(flat-arm64)
      "_OBJC_CLASS_$_CATransaction", referenced from:
          objc-class-ref in GoogleMobileAds(flat-arm64)
      "_OBJC_CLASS_$_CATransition", referenced from:
          objc-class-ref in GoogleMobileAds(flat-arm64)
      "_kCAMediaTimingFunctionEaseInEaseOut", referenced from:
          l11507 in GoogleMobileAds(flat-arm64)
      "_kCATransitionFromTop", referenced from:
          l11507 in GoogleMobileAds(flat-arm64)
      "_kCATransitionPush", referenced from:
          l11507 in GoogleMobileAds(flat-arm64)
    ld: symbol(s) not found for architecture arm64
    clang : error : linker command failed with exit code 1 (use -v to see invocation)
    
    MTOUCH : error MT5216: Native linking failed for '/Users/bezzangi/Projects/SpeakingDic/iOS/obj/iPhone/Debug/device-builds/ipad5.3-11.0.3/mtouch-cache/arm64/libGoogle.MobileAds.dll.dylib'. Please file a bug report at http://bugzilla.xamarin.com
Done building target "_CompileToNative" in project "SpeakingDic.iOS.csproj" -- FAILED.

Done building project "SpeakingDic.iOS.csproj" -- FAILED.

Build FAILED.

/Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2003,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190.
clang : error : linker command failed with exit code 1 (use -v to see invocation)
MTOUCH : error MT5216: Native linking failed for '/Users/bezzangi/Projects/SpeakingDic/iOS/obj/iPhone/Debug/device-builds/ipad5.3-11.0.3/mtouch-cache/arm64/libGoogle.MobileAds.dll.dylib'. Please file a bug report at http://bugzilla.xamarin.com
    1 Warning(s)
    2 Error(s)

Time Elapsed 00:00:31.91

---------------------- Done ----------------------

Build: 2 errors, 1 warning
Comment 1 Manuel de la Peña [MSFT] 2017-10-23 11:43:32 UTC
Hello,

Can you please provide the full information of the version you are using as well as a small example test application do duplicate the issue?
Comment 2 John Miller [MSFT] 2017-11-22 20:50:04 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!