[英]Trying to create a static framework library and getting lipo error (can't open input file)?
Trying to build my SDK framework via terminal and I am getting the following error. 尝试通过终端构建我的SDK框架,但出现以下错误。
lipo: for current configuration (Release) creating output file: build/dist/libMySDK.a
find: build/Release-iphoneos/include: No such file or directory
I am thinking this has to do with where my DerivedData file is? 我想这与我的DerivedData文件在哪里有关?
This is the line its barfing on 这是它的行话
#copy headers
find build/${cfg}-iphoneos/include -name '*.h' -exec cp {} build/dist/Headers \;
I do not know what this error means, but when i build a static library i find the .a more problematic then .framework. 我不知道这个错误是什么意思,但是当我建立一个静态库时,我发现.a问题比.framework问题多。
And i use this short tutorial: 我用这个简短的教程:
http://www.infragistics.com/community/blogs/stevez/archive/2013/02/04/create-your-own-ios-framework.aspx http://www.infragistics.com/community/blogs/stevez/archive/2013/02/04/create-your-own-ios-framework.aspx
It worked great, no errors, maybe it will help you with this essue 效果很好,没有错误,也许它将对您有所帮助
Found the issue. 找到了问题。 I needed to go through xCode and set it to export the header files (ie .h files) that I wanted users of the SDK to see.
我需要检查xCode并将其设置为导出我希望SDK用户看到的头文件(即.h文件)。
Settings > Build Phases > Copy Files (i.e. not 'Copy Bundle Resources' as that is for a non-SDK project)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.