title: Cocos2D + Box2D: A lot of parse issues when running on device
body: <p>I´m building a game using the Cocos2D framework and the Box2D engine.</p>
  
  <p>When I run the game in my simulator it works just fine. However, when I try to run it on my device, I get around 20 issues, most of them  "parse" issues and "semantic" issues. </p>
  
  <p>This is some of the issues:</p>
  
  <pre><code>ccMacros.h
  (!)Parse Issue
      Unknown type name 'NSUInteger'
  
  
  CFDictionary.h
  (!)Parse Issue
      Expected identifier or '('
  
  (!)Semantic Issue
      Function cannot return function type 'int(const void*)'
  
  (!)Parse Issue
      Unknown type name 'CF_EXPORT'
  </code></pre>
  
  <p>Honestly, I´ve have no idea what´s causing this and Google could not help me either. </p>
  
  <p>For what it´s worth, I´m using cocos2d 2.0 and my device is a iPod Touch 4th generation. </p>
  
  <p>Any advice on how to figure this mess out would be greatly appreciated!</p>
  
  <p>EDIT: By request, some lines that causes issues:</p>
  
  <pre><code>typedef const void *    (*CFDictionaryRetainCallBack)(CFAllocatorRef allocator, const void *value);
  typedef void        (*CFDictionaryReleaseCallBack)(CFAllocatorRef allocator, const void *value);
  typedef CFStringRef (*CFDictionaryCopyDescriptionCallBack)(const void *value);
  typedef Boolean     (*CFDictionaryEqualCallBack)(const void *value1, const void *value2);
  typedef CFHashCode  (*CFDictionaryHashCallBack)(const void *value); 
  </code></pre>