diff --git a/Code/Framework/AzCore/Platform/iOS/AzCore/Module/DynamicModuleHandle_iOS.cpp b/Code/Framework/AzCore/Platform/iOS/AzCore/Module/DynamicModuleHandle_iOS.cpp index 53514c89e4..a389162ccc 100644 --- a/Code/Framework/AzCore/Platform/iOS/AzCore/Module/DynamicModuleHandle_iOS.cpp +++ b/Code/Framework/AzCore/Platform/iOS/AzCore/Module/DynamicModuleHandle_iOS.cpp @@ -40,7 +40,7 @@ namespace AZ // Afterwards use the AZ::IO::Path Append function append the filename as a child // of the framework directory AZ::IO::FixedMaxPathString fileName{ fullPath.Filename().Native() }; - fullPath.ReplaceFilename(AZ::IO::PathView((fileName + ".framework").c_str())); + fullPath.ReplaceFilename(AZ::IO::PathView(AZStd::string_view(fileName + ".framework"))); fullPath /= fileName; } }