[펌] PostProcessBuild에서 PodFile 수정 방법
Unity3D/iOS / 2022. 11. 18. 12:15
PostProcessBuild에 아래처럼 FixPodFile()을 추가하고,
원하는 내용을 줄바꿈(\n) 포함해서 WriteLine에 string 형태로 추가한다.
#if UNITY_2019_3_OR_NEWER
[PostProcessBuild( 45 )]//must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and that it's added before "pod install" (50)
private static void FixPodFile( BuildTarget target, string buildPath )
{
using (StreamWriter sw = File.AppendText( buildPath + "/Podfile" ))
{
sw.WriteLine( "\ntarget 'Unity-iPhone' do\nend" );
}
}
#endif
[출처] https://github.com/googlesamples/unity-jar-resolver/issues/405
반응형
'Unity3D > iOS' 카테고리의 다른 글
[펌] UnityEngine.Videoplayer not rendering video on IOS Devices (0) | 2022.11.25 |
---|---|
[빌드에러] (Xcode 14): Signing for "GoogleSignIn-GoogleSignIn" requires a development team. (0) | 2022.11.18 |
[펌] [Xcode] Set 'Always Embed Swift Standard Libraries' in PostProcess (0) | 2022.11.17 |
[펌] ITMS-90427: Invalid Swift Support (0) | 2022.11.16 |
[펌] ERROR ITMS-90206: "Invalid Bundle. (0) | 2022.11.16 |