在 Xcode 12.5.1 中找不到构建输入文件 [英] Build input file cannot be found in Xcode 12.5.1

查看:21
本文介绍了在 Xcode 12.5.1 中找不到构建输入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 m1 mac 机器,现在出现以下错误.

I am using m1 mac machine, Now I am getting the below error.

尝试过:

我在排除的架构中添加了 erm64 和 x86_64.但仍然失败并出现以下错误.

I have added erm64 and x86_64 in the Excluded Architechtures. But still it fails with the below error.

如果我将 Build System 更改为 New Legacy Build(Deprecated),它将不起作用.删除派生数据并清理项目并重新运行它不起作用的应用程序.还创建了 VALID_ARCHS 并为本地构建和存档构建添加了 arm64 和 x86_64.(现在我已经删除了)

If I change the Build System to New Legacy Build(Deprecated) it not works. Deleted the derived data and cleaned the project and rerun the app it not works. Also created VALID_ARCHS and added arm64 and x86_64 for local build and archive build. (Now i have deleted this)

在 Xcode 12.5.1 中找不到构建输入文件

Build input file cannot be found in Xcode 12.5.1

error: Build input file cannot be found: '/Users/jesphin/Library/Developer/Xcode/DerivedData/app-acbwzzdkvazcpfbaiyudpfvlkwyv/Build/Products/Debug-iphonesimulator/App News.app/App News' (in target 'App' from project 'App')

推荐答案

对于我的情况,无法在 mac m1 中找到构建错误已为我解决.

The build cannot be found error resolved for me in mac m1 for my case.

在框架中添加 arch 以显示 xcode 中的错误.

Add arch in the Framework which shows the error in the xcode.

在模拟器上构建:

  1. 在 Exclude arch of the Target 中添加 arm64 在目标的有效 archs 中添加 arm64 arm64e i386 x86_64

  1. Add arm64 in Exclude arch of the Target Add arm64 arm64e i386 x86_64 in valid archs of the target

在显示错误的框架中添加 Valid_Archs 作为 x86_64

Add Valid_Archs as x86_64 in the framework which shown the error

存档构建:

在排除目标拱门中添加 x86_64.

Add x86_64 in Exclude arch of the Target.

在目标的有效拱形中添加 arm64 arm64e i386 x86_64.

Add arm64 arm64e i386 x86_64 in valid archs of the target.

在显示错误的框架中添加 Valid_Archs 作为 arm64 x86_64

Add Valid_Archs as arm64 x86_64 in the framework which shown the error

这篇关于在 Xcode 12.5.1 中找不到构建输入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆