Monday, July 4, 2022
HomeGame DevelopmentCode sync bug when constructing ios cc 3.5.1 - Cocos Creator

Code sync bug when constructing ios cc 3.5.1 – Cocos Creator


When i edit file information.plist in xcode. In folder native/engine/ios, file information plist not change. the right way to repair it ?


What do you wish to change within the information.plist file?

I add key and worth like picture

@lirn I wish to ask extra that I wish to add recordsdata Utils.mm and Utils.h, what ought to I do?

@hungpro849 you need to modify native/engine/ios/Data.plist. It is going to take impact.
As supply code are managed by cmake, you need to modify native/engine/ios/CMakeLists so as to add supply codes file, for instance:

listing(APPEND CC_ALL_SOURCES
    ${CMAKE_CURRENT_LIST_DIR}/Utils.mm
    ${CMAKE_CURRENT_LIST_DIR}/Utils.h
)

CMAKE_CURRENT_LIST_DIR means the trail of native/engine/ios. And i believed Utils.mm and Utils.h are in native/engine/ios.

Sorry, we are going to add extra documentation for it in v3.6. It’s in plan.



1 Like


i attempt to edit, and it really works nicely, the URL varieties is CFBundleURLTypes,after set Uncooked keys & values, it is going to seem.

i’ll strive it later. I wish to ask extra that i alway run command arch -x86_64 pod set up in undertaking ios after construct . Tips on how to robotically run above command when i construct ios ? @zhangxm @linrm

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments