Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Symbol(s) not found for architecture arm64 (Unity 5.3.1f, Xcode 7.2)

Discussion in 'iOS and tvOS' started by moon4ik, Jan 26, 2016.

  1. moon4ik

    moon4ik

    Joined:
    Jan 15, 2016
    Posts:
    2
    Hello,
    I use Unity 5.3.1f and Xcode 7.2

    I write, a game and use standard social for Game Center (Leader Board and Achievements).
    Achievements
    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3. using System.Runtime.InteropServices;
    4. public static class achievements {
    5. [DllImport("__Internal")]
    6. public static extern void _ReportAchievement( string achievementID, float progress );
    7. }
    And report by
    Code (CSharp):
    1. achievements._ReportAchievement("MyAchievementID", 100.0f);
    But when I try to build project in Xcode, I have error:
    "__ReportAchievement", referenced from:
    _achievements__ReportAchievement_m58478526_0 in Bulk_Assembly-CSharp_0.o
    (maybe you meant: _achievements__ReportAchievement_m58478526_0)
    Symbol(s) not found for architecture arm64"
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
  2. moon4ik

    moon4ik

    Joined:
    Jan 15, 2016
    Posts:
    2
    In description for Unity 5.3.1p4 I found that they add support Xcode 7.3 and more important: "don't use __declspec attributes" :) http://unity3d.com/unity/qa/patch-releases/5.3.1p4

    The main trouble is:
    Code (CSharp):
    1. [DllImport("__Internal")]
    http://docs.unity3d.com/Manual/PluginsForIOS.html

    I solve my problem with GameCenter (Leaderboards and Achievements) using standard Social without any plugins for iOS.

    And solve problem with Plugins, need to select File - Build Settings - Symlink Unity libraries :)
    Good luck!
     
    Last edited: Jan 27, 2016
  3. Sickwitit

    Sickwitit

    Joined:
    Dec 22, 2014
    Posts:
    123