iphone – 无法从Info.plist读取
我在2个Mac之间复制了一个项目.我收到有关在
Xcode 4 ProcessInfoPlistFile中找不到的Info.plist的错误消息:
根据Xcode can’t open Info.plist — error says “there is no such file”的建议,我去构建设置,并将正确的路径 – 我从Xcode中显示的文件路径复制和粘贴. 不幸的是,编译时我得到完全相同的信息.那么Info.plist路径在哪里存储? 更新:我已经按照建议放置相对路径,但仍然收到错误(在活动日志中提供完整的消息): Process myapp/myapp-Info.plist ProcessInfoPlistFile /Users/username/Library/Developer/Xcode/DerivedData/myapp-ancooijwpdbuzbbggnsalnhvckyr/Build/Products/Debug-iphonesimulator/myapp.app/Info.plist myapp/myapp-Info.plist cd /Users/username/Documents/XCode/myapp setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-infoPlistUtility myapp/myapp-Info.plist -genpkginfo /Users/username/Library/Developer/Xcode/DerivedData/myapp-ancooijwpdbuzbbggnsalnhvckyr/Build/Products/Debug-iphonesimulator/myapp.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/username/Library/Developer/Xcode/DerivedData/myapp-ancooijwpdbuzbbggnsalnhvckyr/Build/Products/Debug-iphonesimulator/myapp.app/Info.plist 解决方法
不要在这里使用绝对路径,使用相对于项目文件的路径.
Xcode项目的默认布局是: CodeName.xcodeproj CodeName/ CodeName-Info.plist CodeName-Prefix.pch 在图形上,在Finder中看起来像这样: 在这种情况下,您希望Info.plist文件为CodeName / CodeName-Info.plist. 在这里,我选择了Xcode项目,目标,并使用搜索栏来限制显示的设置: 最后,检查您的项目是否包含来自正确位置的info.plist文件. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |