xcodebuild failure clang:error没有这样的文件或目录: [英] xcodebuild failure clang:error no such file or directory:

查看:134
本文介绍了xcodebuild failure clang:error没有这样的文件或目录:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用xcodebuild进行构建时出现问题.我的项目/应用程序使用Xcode-gui可以很好地构建.只是没有找到/构建libcryptopp库,这是构建过程的一部分.

Having a problem when building with xcodebuild. My project/app builds fine with the Xcode - gui. It simply isn't finding/building the libcryptopp library which is part of the build process.

错误是:

clang: error: no such file or directory: '/Users/builder/repo/ioskpay/xcode-cryptopp/cryptopp/build/Release-iphoneos/libcryptopp.a'  

此特定文件应从主应用程序内的另一个项目派生-xcodebuild根本没有正确指向正确的文件夹,该文件夹应为:

This particular file should be derived from another project inside the main app - xcodebuild simply isn't correctly pointing at the right file folder which should be:

~/Library/Developer/Xcode/DerivedData

有什么想法吗?

推荐答案

要解决此问题,请转到项目设置,转到Targets并选择您的主要项目目标.然后转到Build phases.在Target dependencies下添加静态库项目.

To fix this, go to your project settings, go to Targets and select your main project target. Then go to Build phases. Under Target dependencies add the static library project.

这样,当您编译主项目时,静态库子项目将在主项目之前被编译,并且您的静态库将可用.

This way, when you compile the main project, the static library subproject gets compiled before the main project and your static library will be available.

这篇关于xcodebuild failure clang:error没有这样的文件或目录:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆