OpenCV 2.4.10 - 升级到Xcode 6后,Lipo无法打开输入文件

时间:2014-10-28 19:56:36

标签: opencv frameworks xcode6

我一直使用Universal Frameworks超过一年没有问题。我使用Xcode 6和最新的说明创建了新的通用框架。在我尝试将opencv2.framework添加到Link Binary With Libraries之前,所有似乎都工作正常。我的猜测是我需要使用Xcode 6构建的opencv2.framework的更新版本。但我不确定并希望其他人可能有答案。

这是输出:

enter image description here

如果您无法阅读,请参阅以下文字:

2014-10-28 14:38:22.596 xcodebuild[43259:507] [MT] IDELogStore: Log record's backing file ("/Users/pdl/Library/Developer/Xcode/DerivedData/TestOpenCV-boyqihvbbxvpprbeguuarmklthxp/Logs/Build/EF8990BD-5170-4C90-972A-C7FD4B916AAA.xcactivitylog") is missing. Skipping.
2014-10-28 14:38:22.597 xcodebuild[43259:507] [MT] IDELogStore: Log record's backing file ("/Users/pdl/Library/Developer/Xcode/DerivedData/TestOpenCV-boyqihvbbxvpprbeguuarmklthxp/Logs/Build/0C1D3D3B-1490-4BE1-B908-51C74B145890.xcactivitylog") is missing. Skipping.
2014-10-28 14:38:22.597 xcodebuild[43259:507] [MT] IDELogStore: Log record's backing file ("/Users/pdl/Library/Developer/Xcode/DerivedData/TestOpenCV-boyqihvbbxvpprbeguuarmklthxp/Logs/Build/8E31CC46-E5B7-4EA0-9EC8-F312BBBFC30E.xcactivitylog") is missing. Skipping.
2014-10-28 14:38:22.597 xcodebuild[43259:507] [MT] IDELogStore: Log record's backing file ("/Users/pdl/Library/Developer/Xcode/DerivedData/TestOpenCV-boyqihvbbxvpprbeguuarmklthxp/Logs/Build/E82D620E-F41E-4A80-9583-135041DEF9CC.xcactivitylog") is missing. Skipping.
** BUILD FAILED **


The following build commands failed:
    Ld /Users/pdl/Library/Developer/Xcode/DerivedData/TestOpenCV-boyqihvbbxvpprbeguuarmklthxp/Build/Products/Debug-iphonesimulator/TestOpenCV.framework/TestOpenCV normal i386
(1 failure)

** BUILD FAILED **


The following build commands failed:
    Ld /Users/pdl/Library/Developer/Xcode/DerivedData/TestOpenCV-boyqihvbbxvpprbeguuarmklthxp/Build/Products/Debug-iphoneos/TestOpenCV.framework/TestOpenCV normal armv7
(1 failure)

fatal error: lipo: can't open input file: /Users/pdl/Library/Developer/Xcode/DerivedData/TestOpenCV-boyqihvbbxvpprbeguuarmklthxp/Build/Products/Debug-iphonesimulator/TestOpenCV.framework/TestOpenCV (No such file or directory)
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure

增加:


我还没弄明白如何将opencv包含到我的项目中,lipo无法打开输入文件的原因是因为它在构建期间没有生成。

我在使用Xcode6的构建脚本时遇到了很多问题。仍在试图弄清楚脚本,环境变量,配置等是否存在问题。

如果有人正在阅读本文并且他们知道如何在Xcode6中创建通用框架(胖静态库),请参阅this question

谢谢。

0 个答案:

没有答案