{"id":21997714,"url":"https://github.com/osfunapps/os_ios_app_automation","last_synced_at":"2025-09-16T16:08:26.883Z","repository":{"id":98763025,"uuid":"332775424","full_name":"osfunapps/os_ios_app_automation","owner":"osfunapps","description":" Will prepare an iOS app by properties defined by a xml file ","archived":false,"fork":false,"pushed_at":"2021-12-23T09:01:02.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-28T15:41:11.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osfunapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-25T14:34:02.000Z","updated_at":"2021-12-23T09:01:05.000Z","dependencies_parsed_at":"2023-05-25T05:15:41.238Z","dependency_job_id":null,"html_url":"https://github.com/osfunapps/os_ios_app_automation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osfunapps/os_ios_app_automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_ios_app_automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_ios_app_automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_ios_app_automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_ios_app_automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osfunapps","download_url":"https://codeload.github.com/osfunapps/os_ios_app_automation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_ios_app_automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275447219,"owners_count":25466563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T22:17:46.172Z","updated_at":"2025-09-16T16:08:26.845Z","avatar_url":"https://github.com/osfunapps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n------------\n\nThis module aim to assist with an iOS/OSX app buildup.\n\nTo use, create an XML file with your app properties and run.\n\n## Installation\nInstall via pip:\n\n    pip install os-ios-app-automation\n\n## Usage:\n\nWill build an XCode project by a predefined xml file.\n\n- [xml example 1](/examples/example_1.xml):\n```xml\n\u003cxcode_props\u003e\n\n    \u003c!-- will hold all of the project properties --\u003e\n    \u003cproject_properties\u003e\n        \u003cproject_root\u003e/path/to/xcode/project\u003c/project_root\u003e\n        \u003croot_dir_name\u003emy_root_dir_name\u003c/root_dir_name\u003e\n        \u003cxcodeproj_file_name\u003emy_root_dir_name.xcodeproj\u003c/xcodeproj_file_name\u003e\n        \u003cbundle_identifier\u003ecom.mybundleid\u003c/bundle_identifier\u003e\n        \u003cproduct_name\u003eapp name\u003c/product_name\u003e\n\n        \u003c!-- toggle to call pod install --\u003e\n        \u003cinstall_pods\u003etrue\u003c/install_pods\u003e\n\n        \u003c!-- NOTICE: you will need to create a copy of the .plist file you want to use and set the path here. It will be copied to your project on startup --\u003e\n        \u003cplist_path\u003e$app_path/files/res/Info.plist\u003c/plist_path\u003e\n\n        \u003c!-- the path to the AppIcon.appiconset directory, contains all of the logo files --\u003e\n        \u003capp_icon.appiconset\u003e$app_path/files/res/AppIcon.appiconset\u003c/app_icon.appiconset\u003e\n    \u003c/project_properties\u003e\n\n    \u003c!-- the extensions of the added files (you don't need to add .plist or .swift)--\u003e\n    \u003cadded_files_extensions\u003e\n        \u003cextension\u003e.zip\u003c/extension\u003e\n        \u003cextension\u003e.xml\u003c/extension\u003e\n    \u003c/added_files_extensions\u003e\n\n    \u003c!-- the next segment will divide the actions to steps --\u003e\n\n    \u003c!-- first, in step one, we will unlink all of the previously used resources --\u003e\n    \u003cstep_1\u003e\n\n        \u003c!-- remove a linked directory which was previously added--\u003e\n        \u003cunlink type=\"dir\" delete=\"false\"\u003emy_root_dir_name/rel/path/to/dir\u003c/unlink\u003e\n\n        \u003c!-- remove a linked file which was previously added--\u003e\n        \u003cunlink type=\"file\" delete=\"false\"\u003emy_root_dir_name/GoogleService-Info.plist\u003c/unlink\u003e\n    \u003c/step_1\u003e\n\n\n    \u003c!-- in step two, we will link all of the resources and files we want in the project--\u003e\n    \u003cstep_2\u003e\n\n        \u003c!-- copy google services --\u003e\n        \u003clink\u003e\n            \u003cfile_src path_type=\"search\"\u003e\n\n                \u003csearch_path\u003epath/in/computer/to/look/for\u003c/search_path\u003e\n                \u003cfull_name\u003eGoogleService-Info.plist\u003c/full_name\u003e\n            \u003c/file_src\u003e\n\n            \u003cfile_dst\u003e\n                \u003cpath\u003emy_root_dir_name/GoogleService-Info.plist\u003c/path\u003e\n            \u003c/file_dst\u003e\n        \u003c/link\u003e\n\n         \u003c!-- look for a directory in the computer and add it --\u003e\n        \u003clink\u003e\n            \u003cdir_src path_type=\"search\"\u003e\n                \u003csearch_path\u003epath/in/computer/search\u003c/search_path\u003e\n                \u003cfull_name\u003edir_to_search\u003c/full_name\u003e\n            \u003c/dir_src\u003e\n\n            \u003cdir_dst\u003e\n                \u003cpath\u003emy_root_dir_name/Dynamic Resources/Main\u003c/path\u003e\n            \u003c/dir_dst\u003e\n        \u003c/link\u003e\n\n        \u003c!-- copy a file --\u003e\n        \u003clink\u003e\n            \u003cdir_src\u003e\n                \u003cpath\u003epath/to/text/file.txt\u003c/path\u003e\n            \u003c/dir_src\u003e\n\n            \u003cdir_dst\u003e\n                \u003cpath\u003emy_root_dir_name/Dynamic Resources/Main/copied_text_file.txt\u003c/path\u003e\n            \u003c/dir_dst\u003e\n        \u003c/link\u003e\n\n\n    \u003c/step_2\u003e\n\n\n    \u003c!-- in step 3, we will add the pods and the frameworks --\u003e\n    \u003cstep_3\u003e\n\n        \u003c!-- pods add --\u003e\n        \u003cpods action=\"append\"\u003e  \u003c!-- set to 'clear_and_append' if you want to remove the old pods --\u003e\n            \u003cpod_line\u003euse_frameworks!\u003c/pod_line\u003e\n            \u003cpod_line\u003eplatform :ios, '10.0'\u003c/pod_line\u003e\n            \u003cpod_line\u003esource 'https://github.com/CocoaPods/Specs.git'\u003c/pod_line\u003e\n            \u003cpod_line\u003epod 'Zip', '~\u003e 1.1'\u003c/pod_line\u003e\n            \u003cpod_line\u003epod 'SWXMLHash', '~\u003e 5.0.0'\u003c/pod_line\u003e\n        \u003c/pods\u003e\n\n        \u003c!-- frameworks add --\u003e\n        \u003cframeworks\u003e\n\n            \u003c!-- custom framework--\u003e\n            \u003camazon_fling_framework\u003e\n                \u003cpath\u003epath/to/amazon/fling.framework\u003c/path\u003e\n                \u003ctype\u003ecustom\u003c/type\u003e\n            \u003c/amazon_fling_framework\u003e\n\n\n            \u003c!-- generic system frameworks--\u003e\n            \u003cexternal_accesory\u003e\n                \u003cpath\u003eExternalAccessory.framework\u003c/path\u003e\n                \u003ctype\u003esystem\u003c/type\u003e\n            \u003c/external_accesory\u003e\n\n            \u003caudio_toolbox\u003e\n                \u003cpath\u003eAudioToolbox.framework\u003c/path\u003e\n                \u003ctype\u003esystem\u003c/type\u003e\n            \u003c/audio_toolbox\u003e\n\n            \u003cstore_kit\u003e\n                \u003cpath\u003eStoreKit.framework\u003c/path\u003e\n                \u003ctype\u003esystem\u003c/type\u003e\n            \u003c/store_kit\u003e\n\n\n        \u003c/frameworks\u003e\n\n    \u003c/step_3\u003e\n\n    \u003c!-- add more steps here... --\u003e\n\n\u003c/xcode_props\u003e\n```\n\nAfter your created the xml file, call it from code, to build your XCode project.\n```python\nfrom os_ios_app_automation import app_automation as xm\n \nxm.set_xcode_project_by_xml('/path/to/your/xml_file.xml',\n                                place_holder_map = {'$app_path': '/path/to/a/dynamic/directory'})\n```\n\n## Advanced usage\n\nYou can also extend an XML file to another one. \n\nInheritance in this sense can help you if you're interested in sharing a behaviour between a bunch of XML files.  \n\n- [child xml](/examples/example_2.xml):\n```xml\n\u003c!-- this example shows how to extend an xcode_props file from another xcode_props file --\u003e\n\u003cxcode_props extension_mapper_path=\"./shared_mapper.xml\"\u003e\n\n    \u003c!-- will hold all of the project properties --\u003e\n    \u003cproject_properties\u003e\n        \u003cbundle_identifier\u003ecom.my_identifier\u003c/bundle_identifier\u003e\n        \u003cproduct_name\u003eMy cool app\u003c/product_name\u003e\n    \u003c/project_properties\u003e\n\n    \u003cstep_4\u003e\n        \u003cpods action=\"append\"\u003e\u003c!-- we will set this \u003cpods\u003e to 'append' cause we want to add the pods to the pods we set initially, in the extension mapper file --\u003e\n            \u003cpod_line\u003epod 'AnotherPod'\u003c/pod_line\u003e\n            \u003cpod_line\u003epod 'AndAnotherPod'\u003c/pod_line\u003e\n        \u003c/pods\u003e\n    \u003c/step_4\u003e\n\n\n    \u003c!-- the extended code will be implemented here during runtime --\u003e\n\u003c/xcode_props\u003e\n```\n\n\n- [parent xml](/examples/shared_mapper.xml):\n\n```xml\n \u003c!-- this is just an extension mapper to the example_2.xml file --\u003e\n\u003cxcode_extension_props\u003e\n\n    \u003cproject_properties\u003e\n        \u003cproject_root\u003epath/to/project/root\u003c/project_root\u003e\n        \u003croot_dir_name\u003eprojects_root_dir_name\u003c/root_dir_name\u003e\n        \u003cxcodeproj_file_name\u003eprojects_root_dir_name.xcodeproj\u003c/xcodeproj_file_name\u003e\n        \u003cplist_path\u003e$app_path/files/res/Info.plist\u003c/plist_path\u003e\n        \u003capp_icon.appiconset\u003e$app_path/files/res/AppIcon.appiconset\u003c/app_icon.appiconset\u003e\n    \u003c/project_properties\u003e\n\n    \u003c!-- the extensions of the added files (you don't need to add .plist or .swift--\u003e\n    \u003cadded_files_extensions\u003e\n        \u003cextension\u003e.zip\u003c/extension\u003e\n        \u003cextension\u003e.xml\u003c/extension\u003e\n    \u003c/added_files_extensions\u003e\n\n\n\n    \u003c!-- in step one, we will unlink all of the previously used resources --\u003e\n    \u003cstep_1\u003e\n        \u003cunlink type=\"dir\" delete=\"false\"\u003eprojects_root_dir_name/Dynamic Resources\u003c/unlink\u003e\n        \u003cunlink type=\"file\" delete=\"false\"\u003eprojects_root_dir_name/GoogleService-Info.plist\u003c/unlink\u003e\n    \u003c/step_1\u003e\n\n    \u003c!-- in step 2, add pods and frameworks --\u003e\n    \u003cstep_2\u003e\n        \u003cpods action=\"clear_and_append\"\u003e\n            \u003cpod_line\u003e# reachability, to get wifi events\u003c/pod_line\u003e\n            \u003cpod_line\u003euse_frameworks!\u003c/pod_line\u003e\n            \u003cpod_line\u003e# os libraries\u003c/pod_line\u003e\n            \u003cpod_line\u003epod 'OsUIViews'\u003c/pod_line\u003e\n            \u003cpod_line\u003epod 'OsTools'\u003c/pod_line\u003e\n        \u003c/pods\u003e\n\n        \u003cframeworks\u003e\n\n            \u003c!-- add some system frameworks (no need to add Pods_ framework here) --\u003e\n            \u003cframework\u003e\n                \u003cpath\u003eaudiotoolbox.framework\u003c/path\u003e\n                \u003ctype\u003esystem\u003c/type\u003e\n            \u003c/framework\u003e\n\n            \u003cframework\u003e\n                \u003cpath\u003eexternalaccessory.framework\u003c/path\u003e\n                \u003ctype\u003esystem\u003c/type\u003e\n            \u003c/framework\u003e\n            \u003cframework\u003e\n                \u003cpath\u003estorekit.framework\u003c/path\u003e\n                \u003ctype\u003esystem\u003c/type\u003e\n            \u003c/framework\u003e\n        \u003c/frameworks\u003e\n\n    \u003c/step_2\u003e\n\n    \u003c!-- step 3 is an example of running an external text mapper to do additional changes. read about the text mappers to study more! --\u003e\n    \u003c!-- in step 3 we will run the text mapper to do any changes in the project files (in this example, substitute texts) after we will set the project --\u003e\n    \u003cstep_3\u003e\n        \u003crun_text_mapper\u003e\n            \u003cfile_src\u003e\n                \u003cpath\u003e./path/to/text/mapper.xml\u003c/path\u003e\n            \u003c/file_src\u003e\n\n            \u003c!-- if the text mapper file requires place holders, they will be set using the \u003carg\u003e tags --\u003e\n            \u003c!-- NOTICE: we can also pass place holder values, like so:\n            \u003carg\u003e\n                    \u003ckey\u003e$project_path\u003c/key\u003e\n                    \u003cvalue\u003e$project_path\u003c/value\u003e - the $project_path value will be passed\n            \u003c/arg\u003e\n            --\u003e\n            \u003cplace_holder_map\u003e\n                \u003carg\u003e\n                    \u003ckey\u003e$project_path\u003c/key\u003e\n                    \u003cvalue\u003epath/to/project/root\u003c/value\u003e\n                \u003c/arg\u003e\n            \u003c/place_holder_map\u003e\n        \u003c/run_text_mapper\u003e\n    \u003c/step_3\u003e\n\n\n\u003c/xcode_extension_props\u003e\n```\n\nThat's it. \n\n\n\n\n## Links\n[GitHub - osapps](https://github.com/osfunapps)\n\n[GitHub - os-android-app-automation](https://github.com/osfunapps/os-android-app-automation-py)\n\n## Licence\nISC","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos_ios_app_automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosfunapps%2Fos_ios_app_automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos_ios_app_automation/lists"}