axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
922 stars 205 forks source link

iOS-Xcode: the Info.plist, added capabilities and scripts are deleted #1792

Closed asnagni closed 7 months ago

asnagni commented 7 months ago

We just migrated our 2 projects from Cocos2d-x 3.17.2 to Axmol and wanted to say that this team did a great job, thank you very much 👍. After completing our migration, we noticed little issues that can become big issues if we don't address them quickly. We noticed that unlike with cocos2d-x, when we configure our info.plist, and add some capabilities to the apps (in the signing & capabilities tab), or add a script in the Build phases tab, they will disappear if for any reason you modify the CMAKe.list file.

Would you know how to prevent that to happen either by putting these values in the CMAKe.list file or prevent CMAKe to delete them. That will save us lot of time.

This issue will happen only if the CMAke file is modify or if you clear the build folder. This was not happening with cocos2d-x. Thank you in advance to anyone that could help on this issue.

Thank you, Stay safe

  1. Add some info in your info.plist or capability in signing & capabilities tab
  2. Modify your project CMAKe file and build or do a clear build folder an build
  3. Check you info.plist file
halx99 commented 7 months ago

you should add any props of info.plist by cmakelist via set_xcode_property

asnagni commented 7 months ago

Hi, Thank you for your reply, I do appreciate. We are not by any stretch CMAKE experts, would you have any example by any chance or do you have examples in any of the cpp Tests folder?

Thank you, Stay safe

On Apr 5, 2024, at 11:01 PM, Deal @.***> wrote:

you should add any info.plist by cmakelist via set_xcode_property

— Reply to this email directly, view it on GitHub https://github.com/axmolengine/axmol/issues/1792#issuecomment-2040910102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI54DTEYD5YHWWXCO7KIXXLY35QQHAVCNFSM6AAAAABF2BQBCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQHEYTAMJQGI. You are receiving this because you authored the thread.

halx99 commented 7 months ago

This maybe helpful: https://github.com/ChilliHugger/The-Lords-Of-Midnight/blob/AXMOL-port-3/main/midnight/CMakeLists.txt#L331C5-L331C23

asnagni commented 7 months ago

Thank you I do appreciate.

Stay safe

On Apr 6, 2024, at 6:53 AM, Deal @.***> wrote:

This maybe helpful: https://github.com/ChilliHugger/The-Lords-Of-Midnight/blob/AXMOL-port-3/main/midnight/CMakeLists.txt#L331C5-L331C23

— Reply to this email directly, view it on GitHub https://github.com/axmolengine/axmol/issues/1792#issuecomment-2041047101, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI54DTCTW6YVPKDZTSV2D73Y37HY5AVCNFSM6AAAAABF2BQBCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGA2DOMJQGE. You are receiving this because you authored the thread.