How to (almost) create your own iPhone OS framework
2010-04-19 16:13:00 来源:WEB开发网Step 3 (optional): Create references to the resulting .a files in the PseudoFramework project to make it easier to use.
Create a new group in the project, call it Dist. Right-click on it and select "Add existing files...". Add both libPseudoFramework-Debug.a and libPseudoFramework-Release.a files to it. Now, when you need to add the library to another project, you can just drag and drop it from XCode and don't need to open Finder and locate the files every time. Your project window should look something like this:
Step 4 (optional): Build libraries with different versions of the SDK.
If you plan to use same code with different versions of the iPhone SDK, you can build different static libraries, one for each version. To do that, create another set of build targets with a different SDK version in the 'Base SDK' field. You will want the names of your lib files to be different in order to avoid files being overwritten. I'd suggest appending 20 or 21 to file names to indicate that something was build for iPhone OS versions 2.0 and 2.1 respectively. Don't forget to modify the shell script to account for different file names. It should now look roughly like this:
# remove existing product lib files, just in caserm -rf build/${BUILD_STYLE}-iphoneos/libPseudoFramework20-${BUILD_STYLE}.arm -rf build/${BUILD_STYLE}-iphoneos/libPseudoFramework21-${BUILD_STYLE}.a# combine lib files for various platforms into onelipo -create "build/${BUILD_STYLE}-iphoneos/libPseudoFramework20 dev.a" "build/${BUILD_STYLE}-iphonesimulator/libPseudoFramework20 sim.a" -output build/${BUILD_STYLE}-iphoneos/libPseudoFramework20-${BUILD_STYLE}.alipo -create "build/${BUILD_STYLE}-iphoneos/libPseudoFramework21 dev.a" "build/${BUILD_STYLE}-iphonesimulator/libPseudoFramework21 sim.a" -output build/${BUILD_STYLE}-iphoneos/libPseudoFramework21-${BUILD_STYLE}.a
Another screenshot of the project window:
- ››TOscilloscope 仿Windows任务管理器CPU使用记录组...
- ››How to Make a Dark, Post-Apocalyptic City Illu...
- ››tomcat不支持TCP/IP6协议
- ››tomcat 下的 url 大小写问题
- ››tomcat6.0.28 内存溢出PermGen Space
- ››Tomcat 系统架构与设计模式,第 2 部分: 设计模式...
- ››Tomcat 系统架构与设计模式,第 1 部分: 工作原理...
- ››How to (almost) create your own iPhone OS fram...
- ››TOMCAT和IIS整合
- ››Tomcat性能调优方案
- ››Tomcat6 下 MySQL 5.1 数据源配制
- ››Tomcat启动分析server.xml
更多精彩
赞助商链接