I'm trying out AppCode and CLion for developing an C++ app on macOS. CLion seems to work well, but it's not obvious how to build a Cocoa/AppKit app, or an iOS app. I downloaded a trial of AppCode, thinking it would have the same C++ engine, but it chokes on a lot of code.
A couple examples:
- It thinks there is no conversion from
char *
tostd::string
. - It can't see the overloads in the popular fmt library.
CLion parses this stuff. Maybe I should work on getting that to build a macOS app. Is there a way to get AppCode to parse this properly and not incorrectly report errors with red underlines and popups? It compiles and runs fine. It's the editor having problems and showing "errors" in the code.
#include <string>
#include "fmt/format.h"
int main(int argc, const char * argv[]) {
int x = 10;
int y = 25;
std::string name = "Godzilla";
fmt::print("x + y = {}, name = {}", x+y, name);
return 0;
}
Screenshot from AppCode.

The errors reported incorrectly by the editor are:
- Types 'std::string' and 'const char[9]' are not compatible.
- Parameter type mismatch: Incompatible pointer types 'FILE *' and 'const char[22]'