Search Unity

iOS ibiPhone-lib.a Undefined symbols for architecture arm64:

Discussion in 'iOS and tvOS' started by frank45, Apr 16, 2015.

  1. frank45

    frank45

    Joined:
    Apr 23, 2012
    Posts:
    26
    Hello i am facing hell lot of problems while deploying game on iOS.

    i have used couple of soomla,plugin and chartboost plugin with the game .

    using unity 5.0.11b for this.xcode version 6.3



    getting the following error.





    http://i.imgur.com/hmqTaJ7.png





    d: warning: directory not found for option '-L"/Users/od/Desktop/FinalUploads/build/Motobuild15.00.2f/Libraries"'



    ld: warning: ignoring file /Users/od/Desktop/FinalUploads/build/Motobuild15.00.2f/Libraries/libiPhone-lib.a, file was built for archive which is not the architecture being linked (arm64): /Users/od/Desktop/FinalUploads/build/Motobuild15.00.2f/Libraries/libiPhone-lib.a



    Undefined symbols for architecture arm64:



    "_UnityRegisterProInterface", referenced from:



    +[UnityAppController(RegisterProInterface) load] in UnityProInterface.o



    "_UnitySendMessage", referenced from:



    -[ChartBoostManager shouldDisplayInterstitial:] in ChartBoostManager.o



    -[ChartBoostManager didDisplayInterstitial:] in ChartBoostManager.o



    -[ChartBoostManager didFailToLoadInterstitial:withError:] in ChartBoostManager.o



    -[ChartBoostManager didCacheInterstitial:] in ChartBoostManager.o



    -[ChartBoostManager didDismissInterstitial:] in ChartBoostManager.o



    -[ChartBoostManager didCloseInterstitial:] in ChartBoostManager.o



    -[ChartBoostManager didClickInterstitial:] in ChartBoostManager.o



    ...



    "_UnityADInterstitialADWasLoaded", referenced from:



    -[UnityInterstitialAd interstitialAdDidLoad:] in iAD.o



    "_UnityADBannerViewWasLoaded", referenced from:



    -[UnityADBanner bannerViewDidLoadAd:] in iAD.o



    "_UnityDropViewTouchProcessing", referenced from:



    -[UnityADBanner dealloc] in iAD.o



    "_UnitySetLogEntryHandler", referenced from:



    UnityInitTrampoline() in UnityAppController.o



    "_UnityCleanup", referenced from:



    -[UnityAppController applicationWillTerminate:] in UnityApp
     
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,624
    you build arm64 arch: go to player settings and change scripting backend to il2cpp, and after that choose arm64 architecture instead of universal (if you need 64bit only)
     
  3. frank45

    frank45

    Joined:
    Apr 23, 2012
    Posts:
    26
    The only option i get in scripting backend is Mono(2.x)
    and we need it in 32 and 64 both architecture
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,926
    @frank45

    Please try a newer version of 5.0. We may not have had support for the IL2CPP scripting backend in 5.0b11 (I don't recall when we added it). Certainly, the latest 5.0.1p1 release has support for IL2CPP.
     
    jamessa likes this.
  5. Waris Ruzi

    Waris Ruzi

    Joined:
    Jun 30, 2015
    Posts:
    1
    Ld /Users/warisruzi/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzjaorunpftltidgcddtpyvzillk/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/uchargilem normal arm64

    cd /Users/warisruzi/Desktop/UniOS/uchargilem

    export IPHONEOS_DEPLOYMENT_TARGET=6.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++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/warisruzi/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzjaorunpftltidgcddtpyvzillk/Build/Products/Release-iphoneos -L/Users/warisruzi/Desktop/UniOS/uchargilem -L/Users/warisruzi/Desktop/UniOS/uchargilem/Libraries -L/Users/warisruzi/Desktop/UniOS/uchargilem/Libraries/Plugins/iOS -F/Users/warisruzi/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzjaorunpftltidgcddtpyvzillk/Build/Products/Release-iphoneos -F/Users/warisruzi/Desktop/UniOS/uchargilem -filelist /Users/warisruzi/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzjaorunpftltidgcddtpyvzillk/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/uchargilem.LinkFileList -dead_strip -weak_framework CoreMotion -weak-lSystem -ObjC -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework CoreMedia -framework EventKit -framework EventKitUI -framework CoreText -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -framework GoogleMobileAds -liconv.2 -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -weak_framework iAd -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -liPhone-lib -lChartboost -lSoomlaIOSCore -lUnityiOSStore -lSoomlaIOSStore -lUnitySoomlaiOSCore -framework GameKit -lsqlite3.0 -framework Security -framework StoreKit -Xlinker -dependency_info -Xlinker /Users/warisruzi/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzjaorunpftltidgcddtpyvzillk/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/uchargilem_dependency_info.dat -o /Users/warisruzi/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzjaorunpftltidgcddtpyvzillk/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/uchargilem



    ld: warning: ignoring file /Users/warisruzi/Desktop/UniOS/uchargilem/Libraries/libiPhone-lib.a, file was built for archive which is not the architecture being linked (arm64): /Users/warisruzi/Desktop/UniOS/uchargilem/Libraries/libiPhone-lib.a

    Undefined symbols for architecture arm64:

    "_UnitySendMessage", referenced from:

    -[ChartBoostManager shouldDisplayInterstitial:] in ChartBoostManager.o

    -[ChartBoostManager didDisplayInterstitial:] in ChartBoostManager.o

    -[ChartBoostManager didFailToLoadInterstitial:withError:] in ChartBoostManager.o

    -[ChartBoostManager didCacheInterstitial:] in ChartBoostManager.o

    -[ChartBoostManager didDismissInterstitial:] in ChartBoostManager.o

    -[ChartBoostManager didCloseInterstitial:] in ChartBoostManager.o

    -[ChartBoostManager didClickInterstitial:] in ChartBoostManager.o

    ...

    "_UnityADInterstitialADWasLoaded", referenced from:

    -[UnityInterstitialAd interstitialAdDidLoad:] in iAD.o

    "_UnityADBannerViewWasLoaded", referenced from:

    -[UnityADBanner bannerViewDidLoadAd:] in iAD.o

    "_UnityDropViewTouchProcessing", referenced from:

    -[UnityADBanner dealloc] in iAD.o

    "_UnitySetLogEntryHandler", referenced from:

    UnityInitTrampoline() in UnityAppController.o

    "_UnityCleanup", referenced from:

    -[UnityAppController applicationWillTerminate:] in UnityAppController.o

    "_UnityOnApplicationWillResignActive", referenced from:

    -[UnityAppController applicationWillResignActive:] in UnityAppController.o

    "_UnityGetAppBackgroundBehavior", referenced from:

    -[UnityAppController applicationWillResignActive:] in UnityAppController.o

    "_UnitySendRemoteNotificationError", referenced from:

    -[UnityAppController application:didFailToRegisterForRemoteNotificationsWithError:] in UnityAppController.o

    "_UnitySendDeviceToken", referenced from:

    -[UnityAppController application:didRegisterForRemoteNotificationsWithDeviceToken:] in UnityAppController.o

    "_UnityLoadApplication", referenced from:

    -[UnityAppController startUnity:] in UnityAppController.o

    "_UnitySetPlayerFocus", referenced from:

    -[UnityAppController startUnity:] in UnityAppController.o

    -[UnityAppController applicationDidBecomeActive:] in UnityAppController.o

    -[UnityAppController applicationWillResignActive:] in UnityAppController.o

    "_UnitySendTouchesMoved", referenced from:

    -[UnityView touchesMoved:withEvent:] in UnityView.o

    "_UnitySendTouchesCancelled", referenced from:

    -[UnityView touchesCancelled:withEvent:] in UnityView.o

    "_UnityEndFrame", referenced from:

    _UnityRepaint in UnityAppController+Rendering.o

    "_UnityGetRenderingAPIs", referenced from:

    -[UnityAppController(Rendering) selectRenderingAPI] in UnityAppController+Rendering.o

    "_UnitySendTouchesEnded", referenced from:

    -[UnityView touchesEnded:withEvent:] in UnityView.o

    "_UnityFinishRendering", referenced from:

    -[UnityAppController(ViewHandling) orientInterface:] in UnityAppController+ViewHandling.o

    "_UnityInitApplicationNoGraphics", referenced from:

    -[UnityAppController application:didFinishLaunchingWithOptions:] in UnityAppController.o

    "_UnitySendLocalNotification", referenced from:

    -[UnityAppController application:didReceiveLocalNotification:] in UnityAppController.o

    -[UnityAppController application:didFinishLaunchingWithOptions:] in UnityAppController.o

    "_UnityDisableDepthAndStencilBuffers", referenced from:

    -[UnityView recreateGLESSurfaceIfNeeded] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    "_UnitySendTouchesBegin", referenced from:

    -[UnityView touchesBegan:withEvent:] in UnityView.o

    "_UnityWillPause", referenced from:

    -[UnityAppController applicationWillResignActive:] in UnityAppController.o

    "_UnityGetDesiredMSAASampleCount", referenced from:

    -[UnityView recreateGLESSurfaceIfNeeded] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    "_UnityInitApplicationGraphics", referenced from:

    -[UnityAppController startUnity:] in UnityAppController.o

    "_UnityGetSRGBRequested", referenced from:

    -[UnityView recreateGLESSurfaceIfNeeded] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    "_UnityCreateExternalColorSurfaceMTL", referenced from:

    _CreateUnityRenderBuffersMTL in MetalHelper.o

    _StartFrameRenderingMTL in MetalHelper.o

    "_UnityReportWWWSentData", referenced from:

    -[UnityWWWConnectionDelegate connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:] in WWWConnection.o

    "_UnitySetViewTouchProcessing", referenced from:

    -[KeyboardDelegate init] in Keyboard.o

    -[UnityADBanner initImpl:layout:type:] in iAD.o

    "_UnityReportBackbufferChange", referenced from:

    -[UnityView recreateGLESSurface] in UnityView.o

    "_UnityUpdateDisplayList", referenced from:

    -[DisplayManager updateDisplayListInUnity] in DisplayManager.o

    "_UnityRequestedScreenOrientation", referenced from:

    -[UnityAppController(ViewHandling) createRootViewController] in UnityAppController+ViewHandling.o

    -[UnityAppController(ViewHandling) checkOrientationRequest] in UnityAppController+ViewHandling.o

    "_UnityGetDataContextGLES", referenced from:

    -[DisplayConnection initRendering] in DisplayManager.o

    "_UnityCaptureScreenshot", referenced from:

    _PreparePresentGLES in GlesHelper.o

    _PreparePresentMTL in MetalHelper.o

    "_UnitySendRemoteNotification", referenced from:

    -[UnityAppController application:didReceiveRemoteNotification:] in UnityAppController.o

    -[UnityAppController application:didFinishLaunchingWithOptions:] in UnityAppController.o

    "_UnityDestroyExternalSurface", referenced from:

    _DestroyUnityRenderBuffersGLES in GlesHelper.o

    _DestroyUnityRenderBuffersMTL in MetalHelper.o

    "_UnityCreateExternalSurfaceGLES", referenced from:

    _CreateUnityRenderBuffersGLES in GlesHelper.o

    "_UnityReportResizeView", referenced from:

    -[UnityView onUpdateSurfaceSize:] in UnityView.o

    "_UnityCreateDummySurface", referenced from:

    _CreateUnityRenderBuffersGLES in GlesHelper.o

    _CreateUnityRenderBuffersMTL in MetalHelper.o

    "_UnityCurrentMTLCommandBuffer", referenced from:

    _PresentMTL in MetalHelper.o

    "_UnityBindFramebuffer", referenced from:

    _CreateSystemRenderingSurfaceGLES in GlesHelper.o

    _DestroySystemRenderingSurfaceGLES in GlesHelper.o

    _CreateRenderingSurfaceGLES in GlesHelper.o

    _DestroyRenderingSurfaceGLES in GlesHelper.o

    _CreateSharedDepthbufferGLES in GlesHelper.o

    _PreparePresentGLES in GlesHelper.o

    "_UnityHasRenderingAPIExtension", referenced from:

    _InitRenderingGLES in GlesHelper.o

    "_UnitySetRenderTarget", referenced from:

    _PreparePresentMTL in MetalHelper.o

    "_UnityIsCaptureScreenshotRequested", referenced from:

    _PreparePresentGLES in GlesHelper.o

    _PreparePresentMTL in MetalHelper.o

    "_UnityStartFrame", referenced from:

    _UnityRepaint in UnityAppController+Rendering.o

    (maybe you meant: _UnityStartFrameRendering)

    "_UnityDidCaptureVideoFrame", referenced from:

    -[CameraCaptureController captureOutput:didOutputSampleBuffer:fromConnection:] in CameraCapture.o

    "_UnityReportWWWFinishedLoadingData", referenced from:

    -[UnityWWWConnectionDelegate connectionDidFinishLoading:] in WWWConnection.o

    "_UnityUseAnimatedAutorotation", referenced from:

    WillRotateToInterfaceOrientation_DefaultImpl(objc_object*, objc_selector*, UIInterfaceOrientation, double) in UnityViewControllerBase.o

    ViewWillTransitionToSize_DefaultImpl(objc_object*, objc_selector*, CGSize, id<UIViewControllerTransitionCoordinator>) in UnityViewControllerBase.o

    "_UnityShouldAutorotate", referenced from:

    -[UnityDefaultViewController supportedInterfaceOrientations] in UnityViewControllerBase.o

    -[UnityAppController(ViewHandling) createRootViewController] in UnityAppController+ViewHandling.o

    -[UnityAppController(ViewHandling) checkOrientationRequest] in UnityAppController+ViewHandling.o

    "_UnityPlayerLoop", referenced from:

    _UnityRepaint in UnityAppController+Rendering.o

    "_UnityInputProcess", referenced from:

    _UnityRepaint in UnityAppController+Rendering.o

    "_UnityDeliverUIEvents", referenced from:

    -[UnityAppController(Rendering) repaint] in UnityAppController+Rendering.o

    "_UnityDisableRenderBuffers", referenced from:

    -[DisplayManager screenDidDisconnect:] in DisplayManager.o

    _StartFrameRenderingMTL in MetalHelper.o

    "_UnityWillResume", referenced from:

    -[UnityAppController applicationDidBecomeActive:] in UnityAppController.o

    "_UnityGetRenderingResolution", referenced from:

    -[UnityView recreateGLESSurfaceIfNeeded] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    "_UnityGetTargetFPS", referenced from:

    -[UnityAppController(Rendering) createDisplayLink] in UnityAppController+Rendering.o

    "_UnityBlitToBackbuffer", referenced from:

    _PreparePresentGLES in GlesHelper.o

    _PreparePresentMTL in MetalHelper.o

    "_UnityCreateExternalDepthSurfaceMTL", referenced from:

    _CreateUnityRenderBuffersMTL in MetalHelper.o

    "UnitySetLastHeading(float, float, float, float, float, double)", referenced from:

    -[LocationServiceDelegate locationManager:didUpdateHeading:] in iPhone_Sensors.o

    "_UnityPause", referenced from:

    -[UnityAppController(UnityInterface) setPaused:] in UnityAppController+UnityInterface.o

    -[MPVideoContext initAndPlay:bgColor:control:scaling:cancelOnTouch:] in MPVideoPlayer.o

    -[MPVideoContext finish] in MPVideoPlayer.o

    -[UnityAppController applicationDidBecomeActive:] in UnityAppController.o

    -[UnityAppController applicationWillResignActive:] in UnityAppController.o

    -[UnityADBanner bannerViewActionShouldBegin:willLeaveApplication:] in iAD.o

    -[UnityADBanner bannerViewActionDidFinish:] in iAD.o

    ...

    (maybe you meant: _UnityPauseCameraCapture)

    "_UnityIsPaused", referenced from:

    -[UnityAppController(UnityInterface) paused] in UnityAppController+UnityInterface.o

    -[UnityAppController(Rendering) repaint] in UnityAppController+Rendering.o

    -[MPVideoContext finish] in MPVideoPlayer.o

    -[UnityView didRotate] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    -[UnityAppController applicationDidBecomeActive:] in UnityAppController.o

    -[UnityAppController(ViewHandling) showGameUI] in UnityAppController+ViewHandling.o

    ...

    "_UnityReportWWWStatusError", referenced from:

    -[UnityWWWConnectionDelegate connection:didReceiveResponse:] in WWWConnection.o

    "UnitySetLastLocation(double, float, float, float, float, float)", referenced from:

    -[LocationServiceDelegate locationManager:didUpdateLocations:] in iPhone_Sensors.o

    "_UnityGetLaunchScreenXib", referenced from:

    -[SplashScreenController create:] in SplashScreen.o

    "_UnityReportWWWReceivedResponse", referenced from:

    -[UnityWWWConnectionDelegate connection:didReceiveResponse:] in WWWConnection.o

    "_UnityADBannerViewWasClicked", referenced from:

    -[UnityADBanner bannerViewActionDidFinish:] in iAD.o

    "_UnityReportWWWFailedWithError", referenced from:

    -[UnityWWWConnectionDelegate connection:didFailWithError:] in WWWConnection.o

    "_UnityReportWWWReceivedData", referenced from:

    -[UnityWWWConnectionDelegate connection:didReceiveData:] in WWWConnection.o

    "_UnityRegisterFBO", referenced from:

    _CreateUnityRenderBuffersGLES in GlesHelper.o

    "_UnityIsOrientationEnabled", referenced from:

    -[UnityDefaultViewController supportedInterfaceOrientations] in UnityViewControllerBase.o

    "_UnityParseCommandLine", referenced from:

    _main in main.o

    ld: symbol(s) not found for architecture arm64

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

    CyberTurboPlays

    Joined:
    Nov 7, 2014
    Posts:
    65
    i m using U5.1.1 personal, i build it to IOS, and then when i tried to submit the archive, it compaint that 64bit not supported.

    later found out with U5.1.1 IOS, script backend is set to monox2, which will produce armv7 only, since apple enforce 64bit earlier this year, i wonder how come Unity make monox2 as default when building for IOS, instead of il2cpp that has 64 bit support?

    i did used U5 to update some of my games previously, i dont remember that i hav to explicitly set script backend to make 64bit support for those games, they went straight out of the box to the archive no complaint at all

    really, is there a reason why they set monox2 as default for IOS build(implying il2cpp is still not yet fully up to the challenge??) or was it just my unity that is doing this?
     
  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,926
    @CyberTurboPlays

    Maybe something went wrong during the upgrade process for your project. The Scripting Backend should be set to IL2CPP for new projects in Unity 5.1.1. If this is something you see again, please submit a bug report. Thanks!