Obscure Xcode build error: “The file “myapp-SBPartialInfo.plist” couldn’t be opened because there is no such file.”

吃可爱长大的小学妹 提交于 2019-12-18 16:52:41

问题


I'm getting the following error toward the end of the build:

error: could not read data from '/Users/myname/Library/Developer/Xcode/DerivedData/myapp-ftieubjjfkuwyrhhleghfevbhxuu/Build/Intermediates/myapp.build/Debug-iphoneos/myapp.build/myapp-SBPartialInfo.plist': The file “myapp-SBPartialInfo.plist” couldn’t be opened because there is no such file.

The only thing I can think of is that it is a result of having aborted a build an hour or so ago.

I have cleaned, quit Xcode, rebooted my computer - none of the easy fixes are working. I've checked the other build directories (Debug-iphonesimulator and Release-iphoneos), and neither of those directories contain the file either. But both the simulator and the archive are building correctly.

Xcode bugs are the worst.


回答1:


I heard back from Apple Support.

Something was wrong with one of the generated files. Here are the steps to fix it:

1) Quit Xcode.

2) Open Finder and select Go > Go to Folder...

3) Delete the DerivedData folder

4) Open Xcode.

5) Clean your project

6) Build




回答2:


In my case the problem was that somehow the Run action in my scheme showed my app's name without the ".app" extension. Editing the scheme and picking AppName.app fixed it.




回答3:


In my case, I resolved this by setting the Deployment Target to iOS 9.0 from iOS 8.0, as I had a UIStackView, which is not supported before iOS 9.0



来源:https://stackoverflow.com/questions/29087895/obscure-xcode-build-error-the-file-myapp-sbpartialinfo-plist-couldn-t-be-ope

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!