Exception: Calling TargetGuidByName with name='Unity-iPhone' is deprecated.【解決策】
Error内容
Exception: Calling TargetGuidByName with name='Unity-iPhone' is deprecated. There are two targets now, call GetUnityMainTargetGuid() - for app or GetUnityFrameworkTargetGuid() - for source/plugins to get Guid instead.
解決方法
PBXProject proj = new PBXProject();
string targetGuid = proj.TargetGuidByName("Unity-iPhone");
↓↓↓↓ 上記を以下のように変更する ↓↓↓↓
PBXProject proj = new PBXProject();
string targetGuid = proj.GetUnityMainTargetGuid();
原因
Unity-iPhoneが複数存在しているため