The release of Defold 1.4.4 (currently in beta) will include support for CocoaPods dependencies for iOS and macOS builds. CocoaPods will simplify extension development for iOS and macOS by leveraging the CocoaPods system for dependency management. This means that extension developers no longer have to manually add libraries, headers, frameworks and so on to any extensions.
What you do instead is to create a Podfile
in your-extension/manifests/[ios|osx]
where you specify your dependencies using the CocoaPods Podfile syntax. Example from extension-firebase:
pod 'FirebaseCore', '8.13.0'
pod 'FirebaseInstallations', '8.13.0'
When the extension is built this Podfile and the Podfiles from other extensions, will be merged into a single main Podfile which CocoaPods will resolve and use when building. We will migrate all of our extensions to use CocoaPods now during the beta and we encourage everyone to test.
Remember that you need to use the Defold 1.4.4 beta of the editor or bob.jar while testing and you need to set your build server url to https://build-stage.defold.com.
The list below will be updated with the status for each extension plus a temporary dependency URL you can use while testing during the 1.4.4 beta.
MIGRATED EXTENSIONS
- Firebase - https://github.com/defold/extension-firebase/archive/refs/heads/dev-podfile.zip
- Firebase Analytics - https://github.com/defold/extension-firebase-analytics/archive/refs/heads/dev-podfile.zip
- AdMob - https://github.com/defold/extension-admob/archive/refs/heads/dev-cocoapods.zip
- Firebase Remote Config - https://github.com/defold/extension-firebase-remoteconfig/archive/refs/heads/dev-podfile.zip
IN PROGRESS