找不到构建输入文件-整个文件夹?

时间:2020-11-09 22:28:44

标签: ios xcode react-native

大家好,

我现在有点绝望。我重新安装了Xcode,现在想编译我的应用程序(通过react native构建)。我以前从未遇到过这个问题。

但是现在尝试编译它时,我收到以下问题。

CopySwiftLibs /Users/meX/Library/Developer/Xcode/DerivedData/helloDay-hgejsbaehecevlcymblniafdiwuf/Build/Products/Release-iphoneos/helloDay.app (in target 'helloDay' from project 'helloDay')
    cd /Users/meX/Desktop/appdev/helloday/ios
    export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk
    builtin-swiftStdLibTool --copy --verbose --sign EFF36FE468485687AFFCFCC98FDEC1B855FFF75C --scan-executable /Users/meX/Library/Developer/Xcode/DerivedData/helloDay-hgejsbaehecevlcymblniafdiwuf/Build/Products/Release-iphoneos/helloDay.app/helloDay --scan-folder /Users/meX/Library/Developer/Xcode/DerivedData/helloDay-hgejsbaehecevlcymblniafdiwuf/Build/Products/Release-iphoneos/helloDay.app/Frameworks --scan-folder /Users/meX/Library/Developer/Xcode/DerivedData/helloDay-hgejsbaehecevlcymblniafdiwuf/Build/Products/Release-iphoneos/helloDay.app/PlugIns --platform iphoneos --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/meX/Library/Developer/Xcode/DerivedData/helloDay-hgejsbaehecevlcymblniafdiwuf/Build/Products/Release-iphoneos/helloDay.app/Frameworks --strip-bitcode --strip-bitcode-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/meX/Library/Developer/Xcode/DerivedData/helloDay-hgejsbaehecevlcymblniafdiwuf/Build/Intermediates.noindex/helloDay.build/Release-iphoneos/helloDay.build/SwiftStdLibToolInputDependencies.dep

error: Build input file cannot be found: '/Users/meX/Library/Developer/Xcode/DerivedData/helloDay-hgejsbaehecevlcymblniafdiwuf/Build/Products/Release-iphoneos/helloDay.app/helloDay' (in target 'helloDay' from project 'helloDay')

如您所见,这有点奇怪,因为它不是指向一个文件,而是指向整个文件夹?还是我在这里瞎了?

只需在调试中运行应用程序就可以正常工作。

非常感谢

Jan

1 个答案:

答案 0 :(得分:0)

我不会删除它,但是我能够解决此问题。我不知道这是怎么回事。但是我是这样解决的:

我刚刚创建了一个全新的项目,并将其复制到.xcodeproj文件中。配置完所有内容后,我尝试构建该应用程序,并且一切正常。

也许它也会对某人有所帮助。祝你好运!