Xcode 6.1 keeps telling me some PartialInfo.plist

2019-02-08 04:03发布

After I upgraded to Xcode 6.1, it kept throwing this exception when I tried to build my existing application. I tried to remove 'MyController' and add back again. But it would throw the same exception with different controller.

could not read data from '/Users/macbookpro/Library/Developer/Xcode/DerivedData/MyApp-
dmhwkhbfbxprhycwjeunwtbbtsxj/Build/Intermediates/MyApp.build/DEV-iphoneos/MyApp.build/MyController-
PartialInfo.plist': The file “MyController-PartialInfo.plist” couldn’t be opened because there is no
such file.

7条回答
啃猪蹄的小仙女
2楼-- · 2019-02-08 04:43

I found the answer. I have to replace all xib files' IBCocoaTouchPlugin to newer version.

<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
查看更多
贼婆χ
3楼-- · 2019-02-08 04:44

This is generally happens when you open old version xibs nothing to do only click on the xib in file panel its version will automatically changed/updated with newer version.

so also you not need to remember it.

查看更多
Viruses.
4楼-- · 2019-02-08 04:53

For me (with Xcode 6.3) this was happening with a file that happened to end in ~iPhone.xib. I changed it end in the all lower-case ~iphone.xib, and problem solved.

查看更多
Animai°情兽
5楼-- · 2019-02-08 04:53

Common answer for most of question... Restart Xcode. It works for me.

查看更多
女痞
6楼-- · 2019-02-08 04:58

You can solve it by deleting the content in the DerivedData folder. If you're worried about deleting too many folders, then delete only the folders that start with the name of your current project that you're trying to problem-solve for. Remember to close XCode before you delete the data

Library/Developer/Xcode/DerivedData/

查看更多
beautiful°
7楼-- · 2019-02-08 05:03

I encountered this problem when I moved my .plist file to a new folder. You have to go into the Targets list (select the top bar on the left vertical menu of Xcode, the one that has the name of your project, and then select Targets on the vertical menu second from the left) and find the Identity section. From there, select the button that lets you specify the new path of the .plist file.

If that doesn't work, then try deleting your project's folder in ~/Library/Developer/Xcode/DerivedData/ and building again.

查看更多
登录 后发表回答