使用XCode4创建Cocoa Touch静态库 [英] Creating Cocoa Touch Static Library with XCode4
问题描述
使用XCode4创建Cocoa Touch静态库时,产品组中的.a文件显示为红色,构建不能解决此问题。然后,当将该项目添加到同一工作空间中具有构建阶段/链接二进制与库的另一个项目时,构建将在链接时失败。
任何指针?
When creating a Cocoa Touch Static Library with XCode4, the .a file in the Products groups appear red and building doesnt fix this. Then, when adding this project to another project in the same workspace with Build Phases/Link Binary With Libraries, the build fails at linking. Any pointers?
编辑:
使用XCode4构建的任何东西都是一个问题,因为无论我创建什么项目,的产品显示为红色。
It looks like a problem with anything I build with XCode4, because no matter what project I build, the content of Products appears in red.
推荐答案
XCODE 4.x
以下是相应目录中的文件
- 下面是针对模拟器和iphone的发行版本的描述
XCODE 4.x
builds .a files in respective directory
- below is description of release build for simulator and iphone
在输出期间没有修改项目设置
There was no modification to project settings during the output
/Users/userName/Library/Developer/Xcode/DerivedData/projectName-uniqueIdentifier/Build/Products/Release-iphoneos
/Users/userName/Library/Developer/Xcode/DerivedData/projectName-uniqueIdentifier/Build/Products/Release-iphonesimulator
$ b b
替换以下值 -
replace below values -
userName = change userName to current user
projectName-uinqueIdentifier = project name followed by unique identifier
这篇关于使用XCode4创建Cocoa Touch静态库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!