YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

[iOS] Support more injection hooks to Podfile #2712

Open caroparo opened 9 months ago

caroparo commented 9 months ago

Is your feature request related to a problem?

Much like the Android-gradle-groovy counterpart, CocoaPods and Podfile allow developers to hook custom Ruby scripts to the building process to automate various tasks, e.g., setting iOS targets, or uploading dSYM files for FirebaseCrashlytics. However, GM-generated Podfile for iOS does not provide injection hooks as GM-Android-gradle files do. It makes maintaining extensions across multiple projects a pain.

Describe the solution you'd like

I'd like to see not only Pod dependencies, but more hooks in the Podfile, or allow developers to provide custom injectable Podfile templates if possible.

At least there should be something like a ${YYiOSPodfileEnd} at the end of the Podfile, so hooks to post_install, post_integrate blocks can be injected.

Describe alternatives you've considered

No response

Additional context

Podfile syntax: https://guides.cocoapods.org/syntax/podfile.html

caroparo commented 9 months ago

Duplicate of #4124 Alternatively, please bring back the editable Podfile under options/ios/ for better flexibility.