我复制了两个mac之间的项目.我收到了有关在Xcode 4 ProcessInfoPlistFile中找不到Info.plist的错误消息:
无法从'/Users/iamme/Documents/XCode/myapp/myapp/myapp-Info.plist'中读取数据:无法打开文件"myapp-Info.plist",因为没有此类文件.
正如在Xcode中所建议的那样无法打开Info.plist - 错误说"没有这样的文件"我去构建设置并放置正确的路径 - 我从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
Run Code Online (Sandbox Code Playgroud) 我试图将项目文件夹中的文件移动到另一个文件夹,一切正常,但Xcode现在无法找到我的Info.plist文件.这是我得到的错误.
could not read data from '/Users/jamiefraser/Developer/CocoaTouch Apps/MyApp/MyApp/MyApp/MyApp-Info.plist': The file “MyApp-Info.plist” couldn’t be opened because there is no such file.
Run Code Online (Sandbox Code Playgroud)
实际的文件位置是
'/Users/jamiefraser/Developer/CocoaTouch Apps/MyApp/MyApp/MyApp-Info.plist'
Run Code Online (Sandbox Code Playgroud)
我检查了项目的构建设置,然后阅读
MyApp/MyApp-Info.plist
Run Code Online (Sandbox Code Playgroud)
我已经尝试删除构建文件夹并清理项目,但我总是得到同样的错误.我感谢您提供的任何帮助
我刚刚购买了一台新的iMac,我希望将旧的MacBook上的所有Xcode项目复制/导入到它上面.如何在不设置SVN存储库的情况下完成此操作?
两台机器都在同一网络上.这应该很简单,但我不知道如何......
提前致谢