Could not read from Info.plist

前端 未结 5 1599
迷失自我
迷失自我 2020-12-14 10:50

I copied a project between 2 macs. I got the error message about Info.plist not found in Xcode 4 ProcessInfoPlistFile:

could not read data from \'/U

5条回答
  •  余生分开走
    2020-12-14 11:13

    Don't use an absolute path here, use a path relative to your project file.

    The default layout for Xcode projects is this:

    CodeName.xcodeproj
    CodeName/
        CodeName-Info.plist
        CodeName-Prefix.pch
    

    Graphically, that looks like this in Finder: Project Layout in Finder

    In this case, you'd want Info.plist File to be CodeName/CodeName-Info.plist.

    Here, I've selected the Xcode project, target, and used the search bar to limit the settings being shown:

    Info.plist setting

    Finally, check that your project is including the info.plist file from the right location.

    Info.plist location

提交回复
热议问题