C++ Copy Dart SDK (${FLUTTER_DIR}/bin/cache/dart-sdk/include) to your project, e.g. ios/Classes/ Add your own code like the following fragment #include "dart_api_dl.h" // Receives NativePort ID from Flutter code static Dart_Port_DL dart_port = 0;