2017-02-14 2 views
2

현재 Xcode에서 이전에 작동 한 프로젝트를 빌드하려고합니다. 그것은 Vuforia 플러그인을 사용하는 Unity 프로젝트이며, Android에 완벽하게 구축됩니다. 내가 프로젝트에 Security.framework 및 SystemConfiguration.framework을 포함했다Unity Vuforia Xcode 빌드 오류 : "아키텍처 arm64에 대한 정의되지 않은 기호"

Undefined symbols for architecture arm64: 
    "_UnityRenderBufferMTLTexture", referenced from: 
     PlatformiOS::setRenderBuffers(void*) in libVuforiaUnityPlayer.a(PlatformiOS.o) 
    "_UnityCurrentMTLCommandEncoder", referenced from: 
     PlatformiOS::setRenderBuffers(void*) in libVuforiaUnityPlayer.a(PlatformiOS.o) 
ld: symbol(s) not found for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

: 엑스 코드에 구축 할 때

나는 다음과 같은 오류 메시지가 나타납니다.

Unity 5.5.0f3; Vuforia SDK v5.5.9; XCode 8.2.1

답변

0

Unity 프로젝트에서 Vuforia를 업데이트하여 문제를 해결했습니다.하지만 업데이트 전에는 Plugins 폴더에서 Vuforia 파일을 삭제하지 않았습니다. 이전에 Vuforia를 적절히 업데이트하려고 시도했지만 실패했습니다.

그래서 단계 : 1 - 자산/Vuforia를 삭제

2 - 아래의 코드로 업데이트 VuforiaCamera.cs (자산/스크립트/Vuforia)

3 - 가져 오기 최신 Vuforia 패키지

4 - 이익!

public class VuforiaCamera : MonoBehaviour 
{ 
    private bool mVuforiaStarted = false; 

    void Start() 
    { 
     VuforiaARController vuforia = VuforiaARController.Instance; 

     if (vuforia != null) 
      vuforia.RegisterVuforiaStartedCallback(StartAfterVuforia); 
    } 

    private void StartAfterVuforia() 
    { 
     mVuforiaStarted = true; 
     SetAutofocus(); 
    } 

    void OnApplicationPause(bool pause) 
    { 
     if (!pause) 
     { 
      // App resumed 
      if (mVuforiaStarted) 
      { 
       // App resumed and vuforia already started 
       // but lets start it again... 
       SetAutofocus(); // This is done because some android devices lose the auto focus after resume 
       // this was a bug in vuforia 4 and 5. I haven't checked 6, but the code is harmless anyway 
      } 
     } 
    } 

    private void SetAutofocus() 
    { 
     if (CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO)) 
     { 
      Debug.Log("Autofocus set"); 
     } 
     else 
     { 
      // never actually seen a device that doesn't support this, but just in case 
      Debug.Log("this device doesn't support auto focus"); 
     } 
    } 
} 
+0

"VuforiaCamera.cs"의 버전은 무엇입니까? 나는 6.2.10을 사용하고 업데이트 할 VuforiaCamera가 없다. –

+0

@DanielArantesLoverde 나는 같은 문제에 직면 해있다. 거기에 vuforiacamera 스크립트가 보이지 않습니다. 이 문제를 해결하는 방법. 제발 도와주세요 – vanshika

+0

@vanshika 미안하지만, 내가 무엇을했는지 기억이 안나. 하지만 아마도 유니티 버전을 바꾸거나 처음부터 프로젝트를 다시 만들면 ... 내가 기억한다면, 내가 여기에 올리 겠지만, 아마도 내가 다시 만들 것이다. –

관련 문제