You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling this function [NSString stringWithString:@"x"]; from a .m file the build suceeds.
It fails however when calling the same function from the .mm file with the following error:
error: no known class method for selector 'stringWithString:'
15 | [NSString stringWithString:@"x"];
cosmin42
changed the title
macOS llvm toolchain No known class method for selector 'stringWithFormat:'
macOS llvm xcode toolchain No known class method for selector 'stringWithFormat:'
Jun 16, 2024
llvm 18.1.7
macOS Sonoma 14.5
The cmake command that I used to build the toolchain:
When calling this function
[NSString stringWithString:@"x"];
from a .m file the build suceeds.It fails however when calling the same function from the .mm file with the following error:
This is the whole command:
This is a minimum project that reproduces the problem https://github.com/cosmin42/BridgingSample
Note the same call below that fails in the second file.
https://github.com/cosmin42/BridgingSample/blob/53fd305511b2e3baf8d8a2b0ea32aa02a25fcf7b/Test.m#L15
https://github.com/cosmin42/BridgingSample/blob/53fd305511b2e3baf8d8a2b0ea32aa02a25fcf7b/Test2.mm#L15
Any idea of a workaround?
The text was updated successfully, but these errors were encountered: