gpt4 book ai didi

ios - 如何解决 "error: Failed to read Info.plist of app (Couldn' t 加载 DVTFilePath 的信息字典)”

转载 作者:技术小花猫 更新时间:2023-10-29 11:14:27 25 4
gpt4 key购买 nike

我正在使用 Xcode 版本 7.1.1 (7B1005)

我尝试构建的 iOS 应用程序是通过复制应用程序的现有 Mac 版本并更改相关的目标操作系统设置而生成的。我之前已经成功地使用另一个应用程序完成了此操作,没有任何重大问题。但是,此应用程序的 Info.plist 文件(直接从工作应用程序复制)可能会导致某种问题。

  • iOS 版本的 Xcode build设置中的“Info.plist 文件”设置设置为正确的路径。如果我将它设置为非工作路径,我会得到一个不同的错误(ProcessInfoPlistFile 报告错误)
  • 我检查了构建的应用程序包,它确实包含一个 Info.plist 文件。

以下是我的问题产生的错误:

replacing existing signature
bundle format unrecognized, invalid, or unsuitable

Command /usr/bin/codesign failed with exit code 1

我通过将 --deep 添加到协同设计标志来解决第一个错误。添加后我会得到这个错误:

Validate /Users/me/Library/Developer/Xcode/DerivedData/long string of characters/Build/Products/Debug-iphoneos/my\ app\ name.app
cd /Users/me/Perforce/workspace/project/Platforms/OSX
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"
export PRODUCT_TYPE=com.apple.product-type.application
builtin-validationUtility /Users/me/Library/Developer/Xcode/DerivedData/long string of characters/Build/Products/Debug-iphoneos/my\ app\ name.app

error: Failed to read Info.plist of app /Users/me/Library/Developer/Xcode/DerivedData/long string of characters/Build/Products/Debug-iphoneos/my app name.app (Couldn't load Info dictionary for <DVTFilePath:0x7f97125bb4b0:'/Users/me/Library/Developer/Xcode/DerivedData/long string of characters/Build/Products/Debug-iphoneos/my app name.app'>)

最佳答案

我遇到了同样的问题(在我的案例中没有名为“resources”的文件夹,所以问题出在其他地方)。使用 xCode 8.2.1

解决方案:确保 Info.plist 文件列在每个目标的构建阶段 -> 复制捆绑资源部分。

关于ios - 如何解决 "error: Failed to read Info.plist of app (Couldn' t 加载 DVTFilePath 的信息字典)”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34280365/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com