Hi, i am having problems with unity cloud build for iOS
2019.1.14f1
xcode version 10.2 (had default, no help)
compression LZ4 HC (had default no help)
And i am getting this error
“ld: could not reparse object file in bitcode bundle: ‘Invalid bitcode version (Producer: ‘1100.0.33.8.0_0’ Reader: ‘1001.0.46.3_0’)’, using libLTO version ‘LLVM version 10.0.1, (clang-1001.0.46.3)’ for architecture arm64”
Do you have any thoughts what i can do to fix that? Thanks
Hello, i have the exact same problem, it match with the add of Facebook SDK, but i can’t find any workaround. Did you fixed it ?
Disable your bitcode in your Post Processor in your UCB build. The error is likely due to an XCode mismatch.
public static void DisableBitcode(string projPath)
{
string projectPath = PBXProject.GetPBXProjectPath(projPath);
PBXProject pbxProject = new PBXProject();
pbxProject.ReadFromFile(projectPath);
#if UNITY_2019_3_OR_NEWER
var targetGuid = pbxProject.GetUnityMainTargetGuid();
#else
var targetName = PBXProject.GetUnityTargetName();
var targetGuid = pbxProject.TargetGuidByName(targetName);
#endif
pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
pbxProject.WriteToFile(projectPath);
var projectInString = File.ReadAllText(projectPath);
Debug.Log("BuildPostProcessor -- projectInString: " + projectInString);
projectInString = projectInString.Replace("ENABLE_BITCODE = YES;", $"ENABLE_BITCODE = NO;");
File.WriteAllText(projectPath, projectInString);
}