iOS -info.plist文件路径问题

整理项目文件时,因修改了PrefixHeader.pch 和info.plist这两个文件路径产生了报错信息:

1、PrefixHeader.pch 文件和info.plist文件路径问题

*'~PrefixHeader.pch'file not found(该文件不能被打开)

*'~Info.plist':The file "Info.plist" couldn't be opened because there is no such file(由于该路径下没有“Info.plist”文件尚未被找到,故此文件不能被打开)

与此同时,点击info时,发现页面呈现如下信息:Infomation from info.plist not available.File may not exist at specified path

解决方法:工程中Build Setting中配置正确的相对路径,$(SRCROOT)/+路径


错误2:Info.plist

Showing Recent Messages :-1: Multiple commands produce '/Users/wangzelong/Library/Developer/Xcode/DerivedData/LNRuntime-cfwqvkqkkqmiuudqlpmmdsrncvpv/Build/Products/Debug-iphonesimulator/LNRuntime.app/Info.plist': 1) Target 'LNRuntime' (project 'LNRuntime') has copy command from '/Users/wangzelong/Desktop/Runtime-RunLoop/Runtime 运行时/LNRuntime/Info.plist' to '/Users/wangzelong/Library/Developer/Xcode/DerivedData/LNRuntime-cfwqvkqkkqmiuudqlpmmdsrncvpv/Build/Products/Debug-iphonesimulator/LNRuntime.app/Info.plist' 2) Target 'LNRuntime' (project 'LNRuntime') has process command with output '/Users/wangzelong/Library/Developer/Xcode/DerivedData/LNRuntime-cfwqvkqkkqmiuudqlpmmdsrncvpv/Build/Products/Debug-iphonesimulator/LNRuntime.app/Info.plist'

解决方案:

根据提示信息,选中对应的target-> Build Phases -> Copy Bundle Resource -> 移除Info.plist


参考文章:https://blog.csdn.net/vivi1111vivi/article/details/50628589

https://www.jianshu.com/p/7637246485e2

你可能感兴趣的:(iOS -info.plist文件路径问题)