When I try to compare my changes to the git repository using Code Review, Xcode says "Unable to load revisions". For the same file if I check history in either Source Control navigator or other git tools including the command line one, there is history and branches and all. Needless to say it worked perfectly before. Also for few files from the same project and repository there is an option to select previous commits to compare with.
I did my Google research with not much of a luck. Some solutions offer some voodoo over running external git tools to commit and hope for the best to magically solve problems. Non of them worked for me.
I am sure there is a proper explanation for that and perhaps a fix. Maybe git indices went south? Any ideas?
I am using this version of Xcode on Catalina:
Version 12.4 (12D4e)
Post
Replies
Boosts
Views
Activity
I have a C module with a unicode string like this:
wchar_t * helloWorld = L"Hello World";
I have all the bridging header and all, Swift sees the C variable, no problem with that part. However, how do I get this converted to a String in Swift? I was trying to do something like this:
let hw = String(cString: helloWorld, encoding: .unicode)
Swift came back with an ugly error:
Cannot convert value of type 'UnsafeMutablePointer<wchar_t>?' (aka 'Optional<UnsafeMutablePointer<Int32>>') to expected argument type 'UnsafePointer<CChar>' (aka 'UnsafePointer<Int8>')
Any idea how it is done? I could not find anything useful on Google. Thanks.