Post

Replies

Boosts

Views

Activity

Reply to C++ include path completion for header using .hpp as a suffix
Sadly autocompletion for headers in C++ is completely broken in Xcode. If you search the web you'll find complaints back from Xcode 9 or 10 and Apple does not seem to care at all. As a workaround you could go to File > Project Settings and switch the Build System to Legacy and then back again. This should at least give you autocompletion for .h files. I was even able to get autocomplete for iostream once for a short fraction of a second. But I didn't get it to work with .hpp files, although this is is Xcode's standard.
Feb ’22
Reply to Xcode chooses dynamic library to link although static version was explicitly specified
In case someone else has the problem: a temporary manual workaround for this is to move the static binary (e.g.libfmt.a) to a subdirectory, maybe static/ and use this as the library search path. This can of course lead to problems if you installed the library with a package manager like brew and want to update. I hope this can help someone until Apple fixes this.
Jan ’22
Reply to How to export an app bundle from an archive with multiple binaries?
Hi Quinn, thanks for your response. I was finally able to get it to work from the command line. At first I've built an app bundle target and the helper binary target (which would be compiled and then copied into the app bundle) and both targets had the exact same bundle identifier (because they'd be both deployed in the same bundle eventually). That seemed to be what was causing the problem on the command line, because the export options plist would assign both the helper binary as well as the main app bundle binary the same provisioning profile. Now I've changed the bundle identifier for the helper binary target to something unique and used the same export options plist, which only lists the bundle identifier and the corresponding provisioning profile for the main binary and everything works as expected. (The helper binary does not need a provisioning profile and is a single binary). In the Xcode GUI I'm able to select the provisioning profile for each target manually, that's probably why it wasn't an issue there.
Dec ’21