Xcode 5中的Shell脚本调用错误 [英] Shell Script invocation error in xcode 5

查看:138
本文介绍了Xcode 5中的Shell脚本调用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用openssl和sqlcipher.我必须从Xcode 4.6升级到Xcode 5,但是我在Xcode 5中编译项目,这会给我错误cp:libCrypto.a没有这样的文件或目录,Cp:libssl.a没有这样的文件或目录

I am using openssl and sqlcipher in my project. I have to upgrade from Xcode 4.6 to Xcode 5, but I compile project in Xcode 5 it gives me error cp: libCrypto.a No such file or directory, Cp:libssl.a No such file or directory

Shell脚本调用错误

Shell Script invocation error

当我检查"openssl-1.0.0e"文件夹时,当我在Xcode 5中进行清理或构建时,文件将被删除,在Xcode 4.6中不会发生,并且无法正常工作.

When I checked 'openssl-1.0.0e' folder the files get deleted when I clean or build in Xcode 5, it doesn't happen in Xcode 4.6 and work successfully.

我还尝试了升级到版本'openssl-1.0.1f'和更新的sqlcipher函数,但是错误仍然存​​在

I also tried by upgrading to version 'openssl-1.0.1f' and the updated sqlcipher function, but the error still remains

我的项目架构为$(ARCHS_STANDARD_32_BIT)

My projects architecture is $(ARCHS_STANDARD_32_BIT)

如果您需要更多信息,请告诉我. 请帮忙.

Let me know if you need some more info. Please help.

推荐答案

我所做的首先是对项目的贬低 https://github.com/x2on/OpenSSL-for-iPhone

What I did was first downloded the project https://github.com/x2on/OpenSSL-for-iPhone

这些项目不是在Xcode 5与默认位置位于不同位置时构建的,因此要构建这些项目,其Xcode 5必须位于默认位置.然后,我在终端中运行了build-libssl.sh文件.仅当xcode 5在默认位置时,它才能成功运行.脚本成功运行后,将创建libssl.a和libcrypto.a文件.我直接将它们包含在项目的框架部分中.我删除了较旧的sqlcipher和openssl项目,仅将文件包含在下载项目的"include"目录中,并包含在sqlcipher sqlite3.c,sqlite3.h和sqlite3ext.h文件中.现在不需要这两个项目,它可以在xcode 5项目中成功构建.

These project was not built when Xcode 5 was in different location from default location, so for these project to build it has xcode 5 has to be in default location. Then I ran the file build-libssl.sh in terminal. It runs successfully only when xcode 5 is in default location. When the script runs successfully then libssl.a and libcrypto.a files are made. I directly included them in frameworks section of project. I removed the older sqlcipher and openssl projects and only included the files in 'include' directory of downloaded project and in sqlcipher sqlite3.c,sqlite3.h, and sqlite3ext.h files. Now there was no need of that two projects, and it built successfully in xcode 5 project.

这篇关于Xcode 5中的Shell脚本调用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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