Example #1
0
        private static void AddKakaoFrameworks(string buildPath)
        {
            foreach (var framework in _SystemFrameworks)
            {
                KGIosSupport.AddFramework(framework);
            }

            string frameworkFullPath = BuildTools.GetXcodeFrameworkFullPath(buildPath);

            foreach (var folderPath in _FolderPaths)
            {
                string folderFullPath = Path.Combine(_FrameworkRoot, folderPath);
                if (Directory.Exists(folderFullPath))
                {
                    foreach (var fileFullPath in Directory.GetDirectories(folderFullPath))
                    {
                        string fileName = Path.GetFileName(fileFullPath);
                        if (fileName.EndsWith(".framework") || fileName.EndsWith(".bundle"))
                        {
                            string dstFullPath = Path.Combine(frameworkFullPath, fileName);
                            FolderUtil.CopyAndReplace(fileFullPath, dstFullPath);
                            string xcodePath = Path.Combine(BuildTools.FrameworkXcodeRoot, fileName);                       //添加到Xcode工程的文件路径(相对路径)
                            KGIosSupport.AddFileToBuild(xcodePath, xcodePath);
                        }
                    }
                }
            }
        }