Xcode Cocos2D - warning that all applications should include armv7 architecture

My project started to do something weird. I can build and test OK, but when I archive, I get:

Warning all apps should include an armv7 architecture

In the object build settings, I have Architectures set as $ (ARCHS_STANDARD) and Base SDK as the latest iOS with valid architectures set as arm64 armv7 armv7s

I searched this and found several solutions saying to go to Target> Build Settings> Build Active Architecture Only and set to NO.

By doing this, the project will no longer build, and I get:

CCDirectorIOS.h    Semantic issue   
Redefinition of '__ccContentScaleFactor' with a different type: 
'CGFloat' (aka double) vs 'float'

I have come all the way with this project, and this is the first time I have had this problem. I tried to restore the previous good backup, and I get the same problem, so it was presumably caused by an Xcode update, not my own code.

Any suggestions?

+4
source share
1 answer

The solution is simple, change CGFloat to float

 extern float  __ccContentScaleFactor;

Here is a discussion about Cocos2d 64-bit support

+5
source

Source: https://habr.com/ru/post/1533049/


All Articles