Skip to content

Linker error when building for Release in Unified API (arm64) environment on Xamarin IOS  #36

@gundorfj

Description

@gundorfj

Hi,
I can't seem to be around a linker error (found below) I get when I install the latest TSMiniWebBrowser (v1.2) from Xamarin Component Store and making a Release build. I have a feeling that the TSMiniWebBrowser DLL hasn't been generated with the arm64 supported architecture enabled, which is necessary for new APP's to App Store. Maybe I'm all wrong, so I hope that someone can help me, please.
Thanks in advance.

I'm running Xamarin Studio Version 5.7 (build 661) on Mac OS X 10.10.1, with Xcode 6.1.1 (6611)
Build 6A2008a


MTOUCHTASK: warning MT1301: Native library libTSMiniWebBrowser.a (i386, armv7, armv7s) was ignored since it does not match the current build architectures (armv7, arm64)
MTOUCHTASK: warning MT1301: Native library libTSMiniWebBrowser.a (i386, armv7, armv7s) was ignored since it does not match the current build architectures (armv7, arm64)
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -lc++ -liconv -lz -ObjC -fobjc-arc -lsqlite3 -ObjC -fobjc-arc -Wl,-pie -arch arm64 -miphoneos-version-min=7.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/ICONHairSpa.exe.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/Xamarin.iOS.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/mscorlib.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Xml.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Core.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/SharedOndoLibrary.IOSPhone.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Xml.Linq.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/OndoCommonFiles.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/MonoTouch.Dialog-1.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Json.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/ScanditSDK.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/MonoTouch.FacebookConnect.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/MonoTouch.Dialog.PickerElement.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/TSMiniWebBrowser.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/SDWebImage.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/BTProgressHUD.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Web.Services.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/Xamarin.Auth.iOS.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/registrar.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/main.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/libFacebookSDK.a /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/libSDWebImage.a -force_load /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/libscanditsdk-iphone-4.3.0.a -o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/64/Output/ICONHairSpa -framework AVFoundation -framework AudioToolbox -framework QuartzCore -framework CoreImage -framework CoreLocation -framework Foundation -framework MapKit -framework MobileCoreServices -framework Security -framework SystemConfiguration -framework CoreGraphics -framework MediaPlayer -framework MessageUI -framework UIKit -framework CFNetwork -framework CoreVideo -framework CoreMedia -framework ImageIO -weak_framework Accounts -weak_framework Social -lz -liconv -u _FBAppEventNameAchievedLevel -u _FBAppEventNameActivatedApp -u _FBAppEventNameAddedPaymentInfo -u _FBAppEventNameAddedToCart -u _FBAppEventNameAddedToWishlist -u _FBAppEventNameCompletedRegistration -u _FBAppEventNameCompletedTutorial -u _FBAppEventNameInitiatedCheckout -u _FBAppEventNameRated -u _FBAppEventNamePurchased -u _FBAppEventNameSearched -u _FBAppEventNameSpentCredits -u _FBAppEventNameUnlockedAchievement -u _FBAppEventNameViewedContent -u _FBAppEventParameterNameContentID -u _FBAppEventParameterNameContentType -u _FBAppEventParameterNameCurrency -u _FBAppEventParameterNameDescription -u _FBAppEventParameterNameLevel -u _FBAppEventParameterNameMaxRatingValue -u _FBAppEventParameterValueNo -u _FBAppEventParameterNameNumItems -u _FBAppEventParameterNamePaymentInfoAvailable -u _FBAppEventParameterNameRegistrationMethod -u _FBAppEventParameterNameSearchString -u _FBAppEventParameterNameSuccess -u _FBAppEventParameterValueYes -u _FBAppEventsLoggingResultNotification -u _FBErrorAppEventsReasonKey -u _FBErrorDialogInvalidLikeObjectID -u _FBErrorDialogInvalidOpenGraphActionParameters -u _FBErrorDialogInvalidOpenGraphObject -u _FBErrorDialogInvalidShareParameters -u _FacebookNativeApplicationDomain -u _FacebookSDKDomain -u _FBErrorHTTPStatusCodeKey -u _FBInvalidOperationException -u _FBErrorLoginFailedOriginalErrorCode -u _FBErrorLoginFailedReason -u _FBErrorLoginFailedReasonInlineCancelledValue -u _FBErrorLoginFailedReasonInlineNotCancelledValue -u _FBErrorLoginFailedReasonOtherError -u _FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue -u _FBErrorLoginFailedReasonSystemError -u _FBErrorLoginFailedReasonUnitTestResponseUnrecognized -u _FBErrorLoginFailedReasonUserCancelledSystemValue -u _FBErrorLoginFailedReasonUserCancelledValue -u _FBErrorParsedJSONResponseKey -u _FBErrorReauthorizeFailedReasonSessionClosed -u _FBErrorReauthorizeFailedReasonUserCancelled -u _FBErrorReauthorizeFailedReasonUserCancelledSystem -u _FBErrorReauthorizeFailedReasonWrongUser -u _FBErrorSessionKey -u _FBErrorUnprocessedURLKey -u _FBInsightsLoggingResultNotification -u _FBGraphBasePath -u _FBNonJSONResponseProperty -u _FBSessionDidBecomeClosedActiveSessionNotification -u _FBSessionDidBecomeOpenActiveSessionNotification -u _FBSessionDidSetActiveSessionNotification -u _FBSessionDidUnsetActiveSessionNotification -u _FBTokenInformationAppIDKey -u _FBTokenInformationDeclinedPermissionsKey -u _FBTokenInformationExpirationDateKey -u _FBTokenInformationIsFacebookLoginKey -u _FBTokenInformationLoginTypeLoginKey -u _FBTokenInformationPermissionsKey -u _FBTokenInformationPermissionsRefreshDateKey -u _FBTokenInformationRefreshDateKey -u _FBTokenInformationTokenKey -u _FBTokenInformationUserFBIDKey -u _FBLoggingBehaviorAccessTokens -u _FBLoggingBehaviorAppEvents -u _FBLoggingBehaviorCacheErrors -u _FBLoggingBehaviorDeveloperErrors -u _FBLoggingBehaviorFBRequests -u _FBLoggingBehaviorFBURLConnections -u _FBLoggingBehaviorInformational -u _FBLoggingBehaviorPerformanceCharacteristics -u _FBLoggingBehaviorSessionStateTransitions -u _FBLoggingBehaviorUIControlErrors -u _FBPostObject -u _SDWebImageDownloadStartNotification -u _SDWebImageDownloadStopNotification -u _monotouch_GetFolderPath -u _monotouch_timezone_get_data -u _monotouch_log -u _xamarin_release_managed_ref -u _xamarin_create_managed_ref -u _xamarin_get_block_descriptor -u _xamarin_IntPtr_objc_msgSend_IntPtr -u _xamarin_IntPtr_objc_msgSendSuper_IntPtr -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -u _monotouch_start_wwan /Library/Frameworks/Xamarin.iOS.framework/Versions/8.6.0.51/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonosgen-2.0.a /Library/Frameworks/Xamarin.iOS.framework/Versions/8.6.0.51/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonotouch-sgen.a /Library/Frameworks/Xamarin.iOS.framework/Versions/8.6.0.51/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libapp.a
Undefined symbols for architecture arm64:
"OBJC_CLASS$_TSMiniWebBrowser", referenced from:
objc-class-ref in registrar.arm64.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
MTOUCHTASK: error MT5211: Native linking failed, undefined Objective-C class: OBJC_CLASS$_TSMiniWebBrowser. If 'OBJC_CLASS$_TSMiniWebBrowser' is a protocol from a third-party binding, please check that it has the [Protocol] attribute in its api definition file, otherwise verify that all the necessary frameworks have been referenced and native libraries are properly linked in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions