I reported the problem at bugreport.apple.com and got a positive reply from Apple engineer:It looks like you have encountered a known rare issue when creating your project. You can repair it by opening “swiftsandbox.xcodeproj/project.xcworkspace/contents.xcworkspacedata” in a text editor and replacing "self:/Data/Build/Xcode/sandbox/swiftsandbox.xcodeproj" with "self:swiftsandbox.xcodeproj”, that should resolve your issue.But the bug is still active in the latest version 10.1. Hope this information can also help others who have the same problem.
Post not yet marked as solved
Yes, renaming the method is an easy way. The reason why I asked this question is that I want to know if objc has something similar with Swift #available language construct. This way I will expand my knowlege a little bit.
Post not yet marked as solved
Thanks for you replies, but unfortunately, I did not understand your solution.
Post not yet marked as solved
Maybe I did not state my problem clear enough. The three NSTableViews shared exactly one same menu. In the event handler for one menuitem, I do not know which table view to act upon. BTW, I did set different tag values for each menuitem before I asked this question.Any more ideas?
Thanks for your reply. I found out the reason myself. It seems I misundertood how self.presentAsSheet works:if url.startAccessingSecurityScopedResource() {
self.presentAsSheet(translationVC)
url.stopAccessingSecurityScopedResource()
}I thought url.stopAccessingSecurityScopedResource() would only get executed after the sheet is closed. Now I moved the code into the presented VC's completion handler (custom implementation):translationVC.completionHandler = {(error) in
OperationQueue.main.addOperation {
url.stopAccessingSecurityScopedResource()
self.translationTable.reloadData()
}
}
The proejct is stored in /Data/Build/SOME_GIT_PROVIDER.COM/Xcode/PROJ. I did move the project recently after a fresh new install of macOS. /Data is a mount point to a disk partition.I have the latest 9.3 (which was just installed yesterday), installed in /Applications (no exception).BTW, I just found 2 other projects that have the same problem; but other projects are good. The projects all reside in the same top directory.
Post not yet marked as solved
No, AFAIK @responsefile is supported by ar - I tried this in several Linux variants (Fedora/CentOS).EDIT: I suddenly realized that it may be the fact that ar on macOS has some quirks with this @responsefile thing. Apple may have removed this feature. Can anyone test this simple command and see if it works?The reason I asked this question is that one of CodeLite project (static library) stopped working. The failed part is this ar @file thing. I guess ar @file feature was removed during last Xcode update (maybe 9.2).
Ah, that's not necessarily a bug. But it's should be a useful feature. But I think the devs won't listen to me because I have submitted many bugs, only a few of them are accepted.
Ah, I found out why. It seems I have to save Main.Storyboard first. I thought it should export the current state no matter if the storyboard is saved.
Thanks for your detailed reply. I never knew I could do this using a commandline tool like ibtool. I use IDE to regenerate and replace existing strings files (and do revert using svn which is quite complex and tedious).I am planning to build an app to automate all these tedious work.