I’m working on a project with a fairly complex build process - using a fair number of plugins. As part of the process for iOS we use OnPostprocessBuild to automatically add files and libraries to the XCode project.
As far as I can tell the OnPostprocessBuild code is run by the cloud build (logging comments are in the detailed log) but I’m getting a file missing error in xcode:
ZipArchiveWrapper is a plugin I wrote to use ZipArchive (Google Code Archive - Long-term storage for Google Code Project Hosting.). The files for ZipArchive are copied into the xcode project by OnPostprocessBuild - and from my logging ZipArchive.h does appear to be copied in.
I’ve done a clean checkout of the branch I’m using for Cloud Build locally and it builds with no problems*. Without being able to look at the xcode project file I’m having a hard time debugging this issue (trying to debug through more detailed logging comments when I can only do one build an hour means this is taking some time :b).
Any ideas would be appreciated.
I’m using Unity 4.6 and XCode 6.4 locally (and setup for Unity 4.x Latest and Latest XCode on the cloud build).
- When I say no problem I do have to do a work around - we have different zip libraries for different OS as at the moment we haven’t found a single library that works for all platforms. Unity doesn’t ever run OnPostprocessBuild if it can’t compile in then player when first launched (very annoying) so I have to set it up for OSX when I open unity and then swap to our iOS setup afterwards. However as I’ve seen the OnPostprocessBuild logging called on the Cloud Build I don’t think this extra initial step is required.