diff --git a/packages/flutter_tools/bin/xcode_backend.sh b/packages/flutter_tools/bin/xcode_backend.sh index 12cf8ecefa..c0791adb58 100755 --- a/packages/flutter_tools/bin/xcode_backend.sh +++ b/packages/flutter_tools/bin/xcode_backend.sh @@ -58,7 +58,7 @@ BuildApp() { AssertExists $derived_dir RunCommand rm -f ${derived_dir}/Flutter.framework - RunCommand rm -f ${derived_dir}/app.so + RunCommand rm -f ${derived_dir}/app.dylib RunCommand rm -f ${derived_dir}/app.flx RunCommand cp -r ${framework_path}/Flutter.framework ${derived_dir} RunCommand pushd ${project_path} @@ -89,9 +89,9 @@ BuildApp() { exit -1 fi - RunCommand cp build/aot/app.so ${derived_dir}/app.so + RunCommand cp build/aot/app.dylib ${derived_dir}/app.dylib else - RunCommand eval "$(echo \"static const int Moo = 88;\" | xcrun clang -x c --shared -o ${derived_dir}/app.so -)" + RunCommand eval "$(echo \"static const int Moo = 88;\" | xcrun clang -x c --shared -o ${derived_dir}/app.dylib -)" fi local precompilation_flag="" diff --git a/packages/flutter_tools/lib/src/commands/build_aot.dart b/packages/flutter_tools/lib/src/commands/build_aot.dart index e5707de9b7..279bd27504 100644 --- a/packages/flutter_tools/lib/src/commands/build_aot.dart +++ b/packages/flutter_tools/lib/src/commands/build_aot.dart @@ -271,7 +271,7 @@ Future _buildAotSnapshot( // On iOS, we use Xcode to compile the snapshot into a dynamic library that the // end-developer can link into their app. if (platform == TargetPlatform.ios) { - printStatus('Building app.so...'); + printStatus('Building app.dylib...'); // These names are known to from the engine. const String kDartVmIsolateSnapshotBuffer = 'kDartVmIsolateSnapshotBuffer'; @@ -306,7 +306,7 @@ Future _buildAotSnapshot( ..addAll(commonBuildOptions) ..addAll(['-c', kDartIsolateSnapshotBufferC, '-o', kDartIsolateSnapshotBufferO])); - String appSo = path.join(outputDir.path, 'app.so'); + String appSo = path.join(outputDir.path, 'app.dylib'); List linkCommand = ['xcrun', 'clang'] ..addAll(commonBuildOptions) @@ -314,7 +314,7 @@ Future _buildAotSnapshot( '-dynamiclib', '-Xlinker', '-rpath', '-Xlinker', '@executable_path/Frameworks', '-Xlinker', '-rpath', '-Xlinker', '@loader_path/Frameworks', - '-install_name', '@rpath/app.so', + '-install_name', '@rpath/app.dylib', '-o', appSo, kDartVmIsolateSnapshotBufferO, kDartIsolateSnapshotBufferO,