1
私はガイドhttp://www.tinytimgames.com/2011/07/22/cocos2d-and-arc/次XcodeでのApple LLVM 3.0でcocos2d-2.0-βのコンパイルに失敗しましたが、それはコンパイル渡すことはできません、エラーがccCArray.hである:はARC対応プロジェクトとcocos2dを含めるようにしようとする4.2
/** Sends to each object in arr the message identified by given selector. */
static inline void ccArrayMakeObjectsPerformSelector(ccArray *arr, SEL sel)
{
for(NSUInteger i = 0; i < arr->num; i++)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[arr->arr[i] performSelector:sel];
#pragma clang diagnostic pop
}
static inline void ccArrayMakeObjectsPerformSelectorWithObject(ccArray *arr, SEL sel, id object)
{
for(NSUInteger i = 0; i < arr->num; i++)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[arr->arr[i] performSelector:sel withObject:object];
#pragma clang diagnostic pop
}
エラー "不明な警告グループ-Warc-performSelector-leaks"、私は固定された方法を知らない。
私はこの問題について多くの人を見ましたが、エラーが発生している間に警告を受けているので、無視することはできません。
ご協力いただきありがとうございます。ありがとう!