Hello! We are updating our game to Unity 5.3, and, unfortunately, some 3rd party libraries don't currently provide bitcode support. As we are using an automated build pipeline, it isn't convenient to manually disable bitcode support through XCode. Is there a supported way to configure the build pipeline to disable this feature?
As I have fixed the same problem right the moment for our project, here's the link: http://forum.unity3d.com/threads/er...-must-rebuild-it-with-bitcode-enabled.356058/
I'll keep that for future reference. I made a dumb post process script for now: Code (CSharp): public static class DisableBitCode { [PostProcessBuild(100)] public static void OnPostProcessBuild( BuildTarget target, string path ) { if ( target == BuildTarget.iOS ) ProcessXCodeProject( path ); } static void ProcessXCodeProject( string filePath ) { if ( !Directory.Exists( filePath ) ) { Debug.LogWarning( "Path does not exists." ); return; } if ( filePath.EndsWith( ".xcodeproj", System.StringComparison.Ordinal ) == false ) { var projects = Directory.GetDirectories( filePath, "*.xcodeproj" ); if ( projects.Length == 0 ) { Debug.LogWarning( "Error: missing xcodeproj file" ); return; } filePath = projects[0]; } var projectFilePath = Path.Combine( filePath, "project.pbxproj" ); var contents = File.ReadAllText( projectFilePath ); contents = Regex.Replace( contents, @"ENABLE_BITCODE\s+=\s+YES;", "ENABLE_BITCODE=NO;" ); File.WriteAllText( projectFilePath, contents ); } }