@kemalb wrote:
Hi,
I was using v3.17 but Apple will not allow contains UIWebKit from April, 2020 for new app. So, I want to start new project with new version. I downloaded v4 from website. I created new project.
cocos new Test -l cpp -p com.Kemal.Test
After, I run cmake command according to docs (https://github.com/cocos2d/cocos2d-x/blob/v4/cmake/README.md#generate-macos-project).
I opened xcodeproj in ios-build folder. I fix bundle identifier and certificate for device running. It built. Here, I don’t have any problem.Later, I created new header file and called “Definitions.h”. I include this file to HelloWorldScene.cpp (#include “Definitions.h”). And, ‘Definitions.h’ file not found. I don’t know that how to work cmake system but I added to list for cross-platforms.
list(APPEND GAME_HEADER
Classes/AppDelegate.h
Classes/HelloWorldScene.h
Definitions.h
)In this time, Xcode build always cancelled. Also, I removed “Definitions.h” from list, but I can’t build. I checked signing and this values is removed. I fixed this values but this values is removed when I rebuild project. On the other hand, I’m trying to build for simulator and still cancelled.
How can I add new file to project?
Thanks.
Posts: 2
Participants: 2