English 中文(简体)
核心项目1.0 + LLVM CC 4.2 + ARC - 如何?
原标题:CorePlot 1.0 + LLVM GCC 4.2 + ARC - How to?

我尝试在一个小型的个人项目中 CorePlot 绘制一些条形图。 我用 Xcode 4. 3. 3.2 和 ARC 开始这个项目, 认为这样能让我的生活更加轻松... 问题是, 当使用 GCC 4. 2 - 编译者不识别 < code\ autorelease 。 我过去曾使用 :

int retVal = 0;

// @autoreleasepool {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([kerrAppDelegate class]));

[pool drain];
// }

return retVal;

然而,我得到错误的答案, 说无核释放pool没有在ARC中提供...

最佳回答

这真的与核心计划无关。

只有在使用 LLVM 编译器3. 0 或更高时才会支持自动引用计数。 LLVM CC 4. 2 不支持 ARC, 所以您会想要切换您的项目, 以便使用完整的 LLVM 编译器 。

问题回答

暂无回答




相关问题
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 ...

热门标签