Attempting to generate a project with run scripts, and finding that they aren't ending up in the generated project.
Version: 2.0.0 and 1.11.2
example.yml
name: iOSApp
options:
bundleIdPrefix: ios.app.test.1234512345
targets:
- name: The-App-iOS
type: application
platform: iOS
deploymentTarget: 10.0
preBuildScripts:
- name: ExampleA
script: ls
postCompileScripts:
- name: ExampleB
script: ls
postBuildScripts:
- name: ExampleC
script: ls
- name: ExampleB
path: ls
Running xcodegen --spec example.yml
I've tried many things, such as adding / removing sources / trying a different script. It just doesn't seem to work. Any idea what is going on?
Thanks!
All of those names are only for the master branch, since they haven't been released yet. Use prebuildScripts and postbuildScripts for now (postCompileScripts isn't supported before master).
Ah thanks for the clarification.
But shouldn't prebuildScripts and postbuildScripts work in version 2.0.0 then?
Yes, both the prebuildScripts and preBuildScripts versions should work in master, but only prebuildScripts will work in 2.0.0.
Yeah there was a backwards compatible change in the casing of Build if that wasn鈥檛 clear.
Use lowercase B for 2.0.0
Hehe, this took me way too long to track down today 馃槃
Any ETA on when we can release a 2.1.0 with this feature in it? 鉂わ笍