“无法找到构建输入文件"Swift 4.2、Xcode 10.0 [英] 'Build input file cannot be found' Swift 4.2, Xcode 10.0
问题描述
在 Xcode 10.0 中使用 swift 4.2 构建时出现以下错误:
I am getting the following error when building in Xcode 10.0 with swift 4.2:
推荐答案
在检查器周围移动文件夹会导致错误找不到构建输入文件"
Moving the folders around the inspector can cause the error "Build input file cannot be found"
SWIFT 5
在 Swift 5 中,出现了错误,但身份显示没有错误.
In Swift 5, the error came up but the identity showed no errors.
- 进入构建设置并选择打包.
- 删除 Debug 和 Release 的当前路径并输入保存 info.plist 的新路径.
例如 [APPROJECTNAME]/[THEINFOPLISTFOLDER]/info.plist在下面的截图中,路径是API-client/Resources/info.plist
For example [APPROJECTNAME]/[THEINFOPLISTFOLDER]/info.plist In the screenshot below, the path is API-client/Resources/info.plist
SWIFT 4
要修复它,请转到常规选项卡并在身份下重新选择您喜欢的 info.plist
To fix it, go to the general tab and under identity reselect the info.plist that you like
希望能帮到你
这篇关于“无法找到构建输入文件"Swift 4.2、Xcode 10.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!