Xcode 6 中的 Shell 脚本调用错误 [英] Shell Script Invocation Error in Xcode 6

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

问题描述

我曾经使用 iOS-Universal-Framework 编译通用静态库,在我将 Xcdoe 升级到 6 之前一直运行良好.

I used to compile universal static library with iOS-Universal-Framework, and works fine until I upgrade Xcdoe to 6.

我收到以下错误

** BUILD SUCCEEDED **

创建通用静态库/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static/Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphoneos/xxx.framework/xxx/Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/xxx.framework/xxx -o/Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/产品/调试-iphoneos/xxx.framework/xxx.temp错误:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool:无法打开文件:/Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/xxx.framework/xxx (没有那个文件或目录)

Create universal static library /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static /Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphoneos/xxx.framework/xxx /Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/xxx.framework/xxx -o /Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphoneos/xxx.framework/xxx.temp error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool: can't open file: /Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/xxx.framework/xxx (No such file or directory)

如果我使用 Xcode 5 来完成这项工作,那就没问题了.

If i use Xcode 5 to do the job, it will be fine.

此外,我选择Device作为我的编译目标,但为什么libtool会尝试打开iphonesimulator文件夹下的文件?

Beside, I selected Device as my compile target, but why the libtool tries to open a file under iphonesimulator folder?

推荐答案

这意味着您的任何构建文件夹中都没有头文件.可能是因为你还没有配置你的库项目来导出任何头文件.

That means there are no header files in any of your build folders. It may be because you haven't configured your library project to export any header files.

转到您的项目目标 >> 构建阶段 >> + 符号 >> 添加新的构建阶段

Go to your Project Target >> Build Phases >> + sign >> Add a new build phase

您需要添加一个复制文件阶段,将您想要的标题复制到包含文件夹.

You need to add a Copy files Phase that copies the headers you want to the include folder.

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

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