English 中文(简体)
页: 1 图书馆/框架,如何将特定类别排除在建筑产品之外?
原标题:iOS Library/Framework, how to exclude specific classes from the build product?

我试图建造一个SOS图书馆/框架,为了简便起见,我们可以说,这种图书馆/框架将某些类别的<代码>A暴露于使用该图书馆的项目。 现在的问题是,<代码>A的类别取决于类别<代码>B,这并不意味着在图书馆的建筑产出中暴露(或甚至列为文号)。 造成问题的原因是,还有另一个有<代码>C的图书馆,该图书馆还可能依赖等级<代码>。 B。

发生的情况是,如果我试图将两个图书馆都列入一个项目,联系人则抱怨有多个类别定义<代码>。 B。

解决这一问题的最佳途径是什么? 在建造两个图书馆(或至少两个图书馆之一)时,能否建立<条码>B的链接,如果是,如何联系?

或者应当将<条码>B选入自己的图书馆/框架中,对两个图书馆进行了修改,以提及,而不必列入<条码>。 B 作为源文档?

最佳回答

我认为,最好的办法是在你的项目中使多个<>目标>。 这样做的最容易的方法是,在XCode左边的档案清单中点击你的项目档案,在中枢的“GTARETS”下点击,并选定Duplicate。 然后,你可以把A和C列入一个目标,B和C列入另一个目标。 你们可以分别汇编这些档案,基本上像有两个项目,但共享共同档案。 这是否像你想要的一样?

http://www.ohchr.org。 第二,它同它一样。 如果你把另一个项目汇编成图书馆,然后将另一个项目与它联系起来,那么你的问题是正确的?

It doesn t seem like there is a way to have weakly linked objects inside of a compiled library. You will probably be better off splitting them into separate libraries (which is sort of what happened in the scenario described at the bottom of this page)

问题回答

暂无回答




相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签