When update to xcode 5.1, an error occur '__curl_rule_01__' declared as an array with a negative size


#1

In file included from /Volumes/macdata/Develop/Tools/cocos2d/cocos2d-x-2.2.2/extensions/network/HttpClient.cpp:35:
In file included from /Volumes/macdata/Develop/Tools/cocos2d/cocos2d-x-2.2.2/projects/MyGame/proj.ios/…/…/…/cocos2dx/platform/third_party/ios/curl/curl.h:35:
/Volumes/macdata/Develop/Tools/cocos2d/cocos2d-x-2.2.2/projects/MyGame/proj.ios/…/…/…/cocos2dx/platform/third_party/ios/curl/curlrules.h:143:6: error: ‘curl_rule_01’ declared as an array with a negative size
[CurlchkszEQ(long, CURL_SIZEOF_LONG)];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/macdata/Develop/Tools/cocos2d/cocos2d-x-2.2.2/projects/MyGame/proj.ios/…/…/…/cocos2dx/platform/third_party/ios/curl/curlrules.h:132:27: note: expanded from macro ‘CurlchkszEQ’
#define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
^~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.


#2

i finally fix this by removing arm64 at Valid Architectures


#3

i got same error in xcode5.1.
thanks man.


#4

thanks man…


#5

Apple enforces arm64 to be included after February 2015.
Do not remove arm64 architecture, instead please support it.

Related posts:
http://cocos2d-x.org/news/383

http://discuss.cocos2d-x.org/t/64-bit-and-ios-8-requirements-for-new-apps/17797?source_topic_id=11953