Xcode 15.0 error in native build: No template named unary_function

2
Hello,   after updating to Xcode 15.0, trying to build an .ipa locally, I get an error:   "No template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?"   After applying the suggested fix: 'Replace 'unary_function' with '__unary_function'' I get two other errors:   1. "Undefined symbols:" 2. Linker command failed with exit code 1 (use -v to see invocation)   Does anyone encounter the same problem, and maybe even already found a fix?   Thank you very much!   Gr,   Bart
asked
2 answers
3

I had the same. I changed the podfile to include these again:

 

 

 

    # Workaround to prevent errors about missing unary_function in RCT_Folly

    config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']

 

I reported it to Mendix, not sure whether this will be included in a template fix.

answered
1

I also found a fix for my two remaining errors:

 

 

 

In your 'Linking Settings', at 'Other Linker Flags' add "-ld64"

 

 

 

Sources:

 

https://stackoverflow.com/questions/77139621/xcode-15-undefined-symbols-linker-command-failed-with-exit-code-1-use-v-to-s

 

https://developer.apple.com/forums/thread/731089

 

 

answered