Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Upgraded to Xcode 5.1. Now my game will not build properly. Ton of errors.

Discussion in 'iOS and tvOS' started by photonriot, Mar 14, 2014.

  1. photonriot

    photonriot

    Joined:
    Mar 14, 2014
    Posts:
    3
    My guess is that someone at Unity needs to update the iOS export to account for the recent iOS 7.1 update. Apple wants the games to run on iOS 7.1. In Unity I can set the target iOS version to "unknown" which when opened in Xcode 5.1 will show the "Deployment Target as 4.0." With this I am able to build to my iPad Air running 7.1. HOWEVER, when the Deployment Target is changed to 7.1 all the errors come flying out.

    See the errors for yourself:

    Unity-iPhone Group
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/iPhone_Sensors.mm
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/iPhone_Sensors.mm:469:23: Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int'
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/UI/SplashScreen.mm
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/UI/SplashScreen.mm:119:10: 'wantsFullScreenLayout' is deprecated: first deprecated in iOS 7.0
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/Unity/GlesHelper.mm
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/Unity/GlesHelper.mm:155:12: Implicit conversion loses integer precision: 'EAGLRenderingAPI' (aka 'unsigned long') to 'int'
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/Unity/GlesHelper.mm:249:36: Implicit conversion loses integer precision: 'EAGLRenderingAPI' (aka 'unsigned long') to 'int'
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/Unity/GlesHelper.mm:255:36: Implicit conversion loses integer precision: 'EAGLRenderingAPI' (aka 'unsigned long') to 'int'
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/Unity/DisplayManager.mm
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/Unity/DisplayManager.mm:261:9: Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int'
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/UnityAppController.mm
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/UnityAppController.mm:91:20: Implicit conversion loses integer precision: 'EAGLRenderingAPI' (aka 'unsigned long') to 'int'
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/UnityAppController.mm:255:18: 'wantsFullScreenLayout' is deprecated: first deprecated in iOS 7.0
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/UI/iAD.mm
    /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Classes/UI/iAD.mm:277:9: 'presentFromViewController:' is deprecated: first deprecated in iOS 7.0 - Use -[UIViewController requestInterstitialAdPresentation] and related APIs documented in <iAd/UIViewControlleriAdAdditions.h>.
    ld: warning: ignoring file /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Libraries/libiPhone-lib.a, missing required architecture arm64 in file /Users/UnityUsers01/Desktop/GameProject/MyGame_v1.1_iOS7.1Build/Libraries/libiPhone-lib.a (2 slices)

    Undefined symbols for architecture arm64:

    "_UnityADInterstitialADWasLoaded", referenced from:

    -[UnityInterstitialAd interstitialAdDidLoad:] in iAD.o

    "_UnityADBannerViewWasLoaded", referenced from:

    -[UnityADBanner bannerViewDidLoadAd:] in iAD.o

    "_UnityADBannerViewWasClicked", referenced from:

    -[UnityADBanner bannerViewActionDidFinish:] in iAD.o

    "_UnityDropViewTouchProcessing", referenced from:

    -[UnityADBanner dealloc] in iAD.o

    "_UnitySetViewTouchProcessing", referenced from:

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

    "_UnityCleanup", referenced from:

    -[UnityAppController applicationWillTerminate:] in UnityAppController.o

    "UnityStopVideoIfPlaying()", 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

    "_UnitySendRemoteNotification", referenced from:

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

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

    "_UnityLoadApplication", referenced from:

    -[UnityAppController startUnity:] in UnityAppController.o

    "_UnitySendTouchesMoved", referenced from:

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

    "_UnitySendTouchesCancelled", referenced from:

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

    "_UnitySendTouchesEnded", referenced from:

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

    "_UnitySendLocalNotification", referenced from:

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

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

    "_UnityFinishRendering", referenced from:

    OrientTo(int) in iPhone_View.o

    -[UnityView recreateGLESSurface] in UnityView.o

    "_UnityUse32bitDisplayBuffer", referenced from:

    -[UnityView recreateGLESSurfaceIfNeeded] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    "_UnitySendTouchesBegin", referenced from:

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

    "_UnityGetDesiredMSAASampleCount", referenced from:

    -[UnityView recreateGLESSurfaceIfNeeded] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    "_OBJC_CLASS_$_UnityPLCrashReporter", referenced from:

    objc-class-ref in CrashReporter.o

    "_UnityDisableRenderBuffers", referenced from:

    -[DisplayManager screenDidDisconnect:] in DisplayManager.o

    "_UnityUse24bitDepthBuffer", referenced from:

    -[UnityView recreateGLESSurfaceIfNeeded] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    "_UnityGetRenderingResolution", referenced from:

    -[UnityView recreateGLESSurfaceIfNeeded] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    "_UnityGetTargetFPS", referenced from:

    -[UnityAppController startUnity:] in UnityAppController.o

    "_mono_aot_module_UnityEngine_info", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_UnityUpdateDisplayList", referenced from:

    -[DisplayManager updateDisplayListInUnity] in DisplayManager.o

    "_mono_aot_module_Assembly_UnityScript_info", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_UnityDestroyExternalColorSurface", referenced from:

    DestroyUnityRenderBuffers(UnityRenderingSurface*) in GlesHelper.o

    "_UnityDestroyExternalDepthSurface", referenced from:

    DestroyUnityRenderBuffers(UnityRenderingSurface*) in GlesHelper.o

    "_mono_aot_module_Boo_Lang_info", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_UnityCreateUpdateExternalColorSurface", referenced from:

    CreateUnityRenderBuffers(UnityRenderingSurface*) in GlesHelper.o

    "_UnityCreateUpdateExternalDepthSurface", referenced from:

    CreateUnityRenderBuffers(UnityRenderingSurface*) in GlesHelper.o

    "_UnityIsCaptureScreenshotRequested", referenced from:

    PreparePresentRenderingSurface(UnityRenderingSurface*, EAGLContext*) in GlesHelper.o

    "_gDefaultFBO", referenced from:

    SetupUnityDefaultFBO(UnityRenderingSurface*) in GlesHelper.o

    PreparePresentRenderingSurface(UnityRenderingSurface*, EAGLContext*) in GlesHelper.o

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

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

    "_UnityIsRenderingAPISupported", referenced from:

    CreateContext(EAGLContext*) in EAGLContextHelper.o

    "_UnityPause", referenced from:

    -[UnityVideoViewController viewDidDisappear:] in VideoViewController.o

    -[UnityAppController applicationDidBecomeActive:] in UnityAppController.o

    -[UnityAppController applicationWillResignActive:] in UnityAppController.o

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

    -[UnityADBanner bannerViewActionDidFinish:] in iAD.o

    -[UnityInterstitialAd show] in iAD.o

    -[UnityInterstitialAd interstitialAdDidUnload:] in iAD.o

    ...

    "_mono_aot_register_module", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_mono_aot_module_Assembly_UnityScript_firstpass_info", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_UnityUseAnimatedAutorotation", referenced from:

    -[UnityViewControllerBase willRotateToInterfaceOrientation:duration:] in UnityViewControllerBase.o

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

    -[LocationServiceDelegate locationManager:didUpdateToLocation:fromLocation:] in iPhone_Sensors.o

    "_UnityInputProcess", referenced from:

    -[UnityAppController repaint] in UnityAppController.o

    "_mono_aot_module_Mono_Security_info", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "SetLogEntryHandler(bool (*)(LogType, char const*, char*))", referenced from:

    UnityInitTrampoline() in UnityAppController.o

    "_UnityPlayerLoop", referenced from:

    OnUnityReady() in iPhone_View.o

    -[UnityView didRotate] in UnityView.o

    -[UnityView recreateGLESSurface] in UnityView.o

    -[UnityAppController repaint] in UnityAppController.o

    "_UnityCaptureScreenshot", referenced from:

    PreparePresentRenderingSurface(UnityRenderingSurface*, EAGLContext*) in GlesHelper.o

    "_mono_ficall_flag", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_mono_dl_register_symbol", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_mono_aot_only", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_mono_aot_module_System_Core_info", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_UnityRequestedScreenOrientation", referenced from:

    CheckOrientationRequest() in iPhone_View.o

    ShouldAutorotateToInterfaceOrientation_DefaultImpl(objc_object*, objc_selector*, long) in UnityViewControllerBase.o

    SupportedInterfaceOrientations_DefaultImpl(objc_object*, objc_selector*) in UnityViewControllerBase.o

    ShouldAutorotate_DefaultImpl(objc_object*, objc_selector*) in UnityViewControllerBase.o

    "_UnityInitApplication", referenced from:

    -[UnityAppController startUnity:] in UnityAppController.o

    "_mono_aot_module_System_info", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_mono_aot_module_mscorlib_info", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_UnityIsOrientationEnabled", referenced from:

    ShouldAutorotateToInterfaceOrientation_DefaultImpl(objc_object*, objc_selector*, long) in UnityViewControllerBase.o

    SupportedInterfaceOrientations_DefaultImpl(objc_object*, objc_selector*) in UnityViewControllerBase.o

    "_UnityBlitToSystemFB", referenced from:

    PreparePresentRenderingSurface(UnityRenderingSurface*, EAGLContext*) in GlesHelper.o

    "_UnitySetScreenOrientation", referenced from:

    UpdateOrientationFromController(UIViewController*) in iPhone_View.o

    -[UnityView willRotateTo:] in UnityView.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)
     
    Last edited: Mar 14, 2014
  2. photonriot

    photonriot

    Joined:
    Mar 14, 2014
    Posts:
    3
    Update: To be clear, I can build the game to the iPAD with deployment target 7.1 selected, but one of the yellow flag errors is called "Validate Project Settings : Update to recommended settings (which are listed as Target - Automatically select architectures, Project - Automatically select architectures, and Project - Enable Build Active Architecture Only When Debugging). After clicking "Perform Changes" and trying to build again, that's when I get the errors listed above.

    Thanks.
     
  3. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    You should never let Xcode to fix Unity project settings. It makes too many incorrect assumptions.
     
    dignitygames likes this.
  4. photonriot

    photonriot

    Joined:
    Mar 14, 2014
    Posts:
    3
    Yes, you are correct.

    I needed to properly set my architecture and valid architecture fields under Build Settings. This website helped: Xcode5 Arm64

    I set Architectures to: armv7 (adding armv7s to the list resulted in failure).
    I set Valid Architectures to: armv6 armv7 armv7s arm64.


    The few errors I got afterwards came from having the Game Center disabled. Once I turned it back on, eventhough I don't use it, the errors cleared.

    The only flags remaining are the Deprecations for 'wantsFullScreenLayout', and 'presentFromViewController.'



    Thanks.
     
    Last edited: Mar 14, 2014