无法在设备上构建 swift ios 应用程序

failing to build swift ios application on device

我有一段时间没玩 iOS 了,现在我想起来为什么我要远离它了。我正在尝试在我的设备上构建我的新应用程序,因为它需要麦克风,但它没有这样做。以下是我收到的错误消息:

Showing All Issues

PBXCp /Users/*/Library/Developer/Xcode/DerivedData/pitchee-bklwfakpvazvegapgfgacyfhyrod/Build/Products/Debug-iphoneos/Beethoven.framework /Users/*/Library/Developer/Xcode/DerivedData/pitchee-bklwfakpvazvegapgfgacyfhyrod/Build/Products/Debug-iphoneos/pitchee.app/Frameworks/Beethoven.framework
    cd /Users/*/workspace/pitchee
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -exclude *.tbd -bitcode-strip replace-with-marker -bitcode-strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip -resolve-src-symlinks /Users/*/Library/Developer/Xcode/DerivedData/pitchee-bklwfakpvazvegapgfgacyfhyrod/Build/Products/Debug-iphoneos/Beethoven.framework /Users/*/Library/Developer/Xcode/DerivedData/pitchee-bklwfakpvazvegapgfgacyfhyrod/Build/Products/Debug-iphoneos/pitchee.app/Frameworks

error: /Users/*/Library/Developer/Xcode/DerivedData/pitchee-bklwfakpvazvegapgfgacyfhyrod/Build/Products/Debug-iphoneos/Beethoven.framework: No such file or directory

我尝试过的事情:

  1. 正在删除 DerivedData 文件夹,然后重试。
  2. 运行 产品 > 清洁 然后重试。
  3. 正在删除钥匙串中的证书,重新生成然后重试。
  4. 将 Beethoven 框架添加到 框架、库和嵌入式内容 部分。

一些可能值得注意的事情:

  1. 该应用程序是一个 SwiftUI 应用程序,目标是 iOS 13.2。这可能是 Swift 5.0 应用程序。
  2. Pod (Beethoven) 是使用 Cocoapods
  3. 安装的
  4. The Pod(贝多芬)目标 iOS 8.0
  5. Pod(贝多芬)必须将其源代码转换为 Swift 4.0
  6. 使用 XCode 版本 11.4 (11E146)

可以按原样构建我的应用程序吗?

我通过以下方式解决了这个问题:

支付 Apple 开发者会员资格