无法在设备上构建Swift iOS应用程序

时间:2020-03-30 04:13:41

标签: ios swift xcode cocoapods

我已经有一段时间没有玩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. 将贝多芬框架添加到框架,库和嵌入式内容部分。

Adding the Beethoven framework

一些值得注意的事情:

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

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

1 个答案:

答案 0 :(得分:0)

我能够通过以下方式解决此问题:

为Apple开发者会员付费