Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

How to use Xcode API for embedding frameworks?

Discussion in '2017.2 Beta' started by pchuri, Aug 14, 2017.

  1. pchuri

    pchuri

    Joined:
    Aug 18, 2014
    Posts:
    12
    Is the "PBXProjectExtensions.AddFileToEmbedFrameworks" right?
    It raise the exception below when building iOS.
    (I use Unity 2017.2 b6 and Xcode Version 9.0 beta (9M136h))

    I look forward to hear answers.
    Thank you.

    ========
    Exception: The given GUID 033966F41B18B03000ECD701 does not refer to a known build section
    UnityEditor.iOS.Xcode.PBXProjectData.BuildSectionAny (System.String sectionGuid) (at /Users/builduser/buildslave/unity/build/External/XcodeAPI/Xcode/PBXProjectData.cs:227)
    UnityEditor.iOS.Xcode.PBXProject.BuildSectionAny (System.String sectionGuid) (at /Users/builduser/buildslave/unity/build/External/XcodeAPI/Xcode/PBXProject.cs:76)
    UnityEditor.iOS.Xcode.PBXProject.GetCopyFilesBuildPhaseByTarget (System.String targetGuid, System.String name, System.String dstPath, System.String subfolderSpec) (at /Users/builduser/buildslave/unity/build/External/XcodeAPI/Xcode/PBXProject.cs:1072)
    UnityEditor.iOS.Xcode.PBXProject.AddCopyFilesBuildPhase (System.String targetGuid, System.String name, System.String dstPath, System.String subfolderSpec) (at /Users/builduser/buildslave/unity/build/External/XcodeAPI/Xcode/PBXProject.cs:1102)
    UnityEditor.iOS.Xcode.Extensions.PBXProjectExtensions.AddFileToEmbedFrameworks (UnityEditor.iOS.Xcode.PBXProject proj, System.String targetGuid, System.String fileGuid) (at /Users/builduser/buildslave/unity/build/External/XcodeAPI/Xcode/PBXProjectExtensions.cs:399)
    NaverSpeech.Plugins.iOS.NaverSpeech.Editor.NaverSpeechBuildPostprocessor.OnPostprocessBuildIos (System.String pathToBuiltProject) (at Assets/NaverSpeech/Plugins/iOS/NaverSpeech/Editor/NaverSpeechBuildPostprocessor.cs:58)
    NaverSpeech.Plugins.iOS.NaverSpeech.Editor.NaverSpeechBuildPostprocessor.OnPostprocessBuild (BuildTarget target, System.String pathToBuiltProject) (at Assets/NaverSpeech/Plugins/iOS/NaverSpeech/Editor/NaverSpeechBuildPostprocessor.cs:17)
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    UnityEditor.Build.BuildPipelineInterfaces+AttributeCallbackWrapper.OnPostprocessBuild (BuildTarget target, System.String path) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:86)
    UnityEditor.Build.BuildPipelineInterfaces.OnBuildPostProcess (BuildTarget platform, System.String path, Boolean strict) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:324)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    ========
     
  2. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    Hi, could you submit a bug report with reproduction project attached? I'd like to look into precise circumstances causing this bug. Thanks!
     
  3. pchuri

    pchuri

    Joined:
    Aug 18, 2014
    Posts:
    12
    I submitted the report. (Case 942488)
    Thank you.
     
    Last edited: Aug 16, 2017
unityunity