Xcode 14.2生成多个信息列表

hfwmuf9z  于 2023-02-16  发布在  其他
关注(0)|答案(1)|浏览(190)

我有一个要在项目中使用的info.plist文件。Location设置为Relative to projecttarget membership已选中
我得到这个错误

Multiple commands produce '...appname.app/Info.plist'

在下面我有两个子项的错误

Target 'targetname' (project 'targetname') has copy command from 'my own folder/Info.plist' to '/Users/.../Library/Developer/Xcode/DerivedData/project.../Build/Products/Debug-iphoneos/appname.app/Info.plist'

Target 'targetname' (project 'projectname') has process command with output '/Users/.../Library/Developer/Xcode/DerivedData/.../Build/Products/Debug-iphoneos/appname.app/Info.plist'

我试着直接编辑其他的info.plist,它只是重新生成
我尝试删除派生数据文件夹,但它只是重新生成
我将info.plist添加到copy bundle resources,没有重复项
compile sources中也没有重复项
会不会是project. pbxproj的内容

// !$*UTF8*$!
{
    archiveVersion = 1;
    classes = {
    };
    objectVersion = 56;
    objects = {

/* Begin PBXBuildFile section */

        75B28283299B83B10087A029 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 75B28282299B83B10087A029 /* Info.plist */; };

        75E959AD299943800053FCFD /* SettingsModal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75E959AC299943800053FCFD /* SettingsModal.swift */; };
        75F816D829980B1E002062A9 /* appname.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75F816D729980B1E002062A9 /* appname.swift */; };
        75F816DA29980B1E002062A9 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75F816D929980B1E002062A9 /* ContentView.swift */; };
        75F816E129980B1F002062A9 /* Persistence.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75F816E029980B1F002062A9 /* Persistence.swift */; };
        75F816E429980B1F002062A9 /* appname.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 75F816E229980B1F002062A9 /* projectname.xcdatamodeld */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
        75B28282299B83B10087A029 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = projectname/Info.plist; sourceTree = SOURCE_ROOT; };
    ...
    GENERATE_INFOPLIST_FILE = YES;

任何帮助都是受欢迎的,谢谢

zvms9eto

zvms9eto1#

临时修复
INFOPLIST_KEY_NSFaceIDUsageDescription ="此应用程序使用面部ID进行身份验证。";

相关问题