Search Unity

New error for architecture armv7 in MMTAppController

Discussion in 'iOS and tvOS' started by SteeBono, May 20, 2015.

  1. SteeBono

    SteeBono

    Joined:
    Apr 4, 2015
    Posts:
    11
    Hi,
    I have an issue with my game and Xcode 6.3.1, I have built my game with Unity 4.6.1 free for iOS.
    In my game there is this plugin:
    - Google Play SDK
    - Unity ADS
    - Facebook SDK
    - Pushwoosh SDK

    I have solved all issue with all external plugin and framework, but now it appeared an error saying:
    Code (Xcode Errors):
    1. Undefined symbols for architecture armv7:
    2.   "_MMTUnitySetGraphicsDevice", referenced from:
    3.       -[MMTAppController shouldAttachRenderDelegate] in MMTAppController.o
    4.   "_MMTUnityRenderEvent", referenced from:
    5.       -[MMTAppController shouldAttachRenderDelegate] in MMTAppController.o
    6. ld: symbol(s) not found for architecture armv7
    7. clang: error: linker command failed with exit code 1 (use -v to see invocation)
    And this is the MMTAppController.mm (maybe can help you to understand the errors)

    Code (CSharp):
    1. #import <UIKit/UIKit.h>
    2. #import "UnityAppController.h"
    3.  
    4. extern "C" void MMTUnitySetGraphicsDevice(void* device, int deviceType, int eventType);
    5. extern "C" void MMTUnityRenderEvent(int marker);
    6.  
    7. @interface MMTAppController : UnityAppController
    8. {
    9. }
    10. - (void)shouldAttachRenderDelegate;
    11. @end
    12.  
    13. @implementation MMTAppController
    14.  
    15. - (void)shouldAttachRenderDelegate;
    16. {
    17.     UnityRegisterRenderingPlugin(&MMTUnitySetGraphicsDevice, &MMTUnityRenderEvent);
    18. }
    19. @end
    20.  
    21.  
    22. IMPL_APP_CONTROLLER_SUBCLASS(MMTAppController)
    Thanks you!
     
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,624
    Code (csharp):
    1.  
    2. extern "C" void MMTUnitySetGraphicsDevice(void* device, int deviceType, int eventType);
    3. extern "C" void MMTUnityRenderEvent(int marker);
    4.  
    this is mere prototypes. So you miss some source file or library with their implementation.