update_plist¶
Update a plist file
This action allows you to modify any
plist
file.
update_plist | |
---|---|
Supported platforms | ios |
Author | @rishabhtayal |
1 Example¶
update_plist( # Advanced processing: find URL scheme for particular key and replace value
plist_path: "path/to/Info.plist",
block: proc do |plist|
urlScheme = plist["CFBundleURLTypes"].find{|scheme| scheme["CFBundleURLName"] == "com.acme.default-url-handler"}
urlScheme[:CFBundleURLSchemes] = ["acme-production"]
end
)
Parameters¶
Key | Description | Default |
---|---|---|
plist_path |
Path to plist file | |
block |
A block to process plist with custom logic |
* = default value is dependent on the user's system
To show the documentation in your terminal, run
fastlane action update_plist