Hi, we're having problems building a titanium application via the iPhone command-line builder on our build server. The build is run via a makefile which executes the following command: >~/Library/Application\ Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py run /Users/user/Library/Application Support/TeamCity/buildAgent/work/6f48afd2f0e751a4/App 4.3 appId appName ipad
which fails with the following error:
>IOError: [Errno 2] No such file or directory: u'/Users/user/Library/Application Support/TeamCity/buildAgent/work/6f48afd2f0e751a4/App/build/iphone/tiapp.xml'
It appears to be looking in the iPhone folder for tiapp.xml but I've no idea why its doing this! Has anyone encountered this issue before?
Thanks in advance,
Try removing the build directory all together before running your command line build. Also, make sure that the space in 'Application Support' is escaped in both file paths.
Thanks for those suggestions Anthony.
It turns out that if the build/iphone folder is not present then the build fails. As the TeamCity build agent checks out the source on every build, I have had to add a build step before running the command line builder which creates the build/iphone folder. This seems to fix the issue and the build succeeds.
Think you can help? Login to answer this question!