Open shuax opened 3 months ago
2.9.3
macOS 14.5 (23F79)
我使用了
add_files("src/xxxexport.txt") add_rules("utils.symbols.export_list")
来导出函数,然后就不能生成xcode工程了,具体是cmake就生成失败,错误代码在这里。 https://github.com/xmake-io/xmake/blob/9eb191fc028f32d71de393cd2a46df7fc076bf4b/xmake/plugins/project/cmake/cmakelists.lua#L973
我添加了2行调试。
print("1",flag) flag = _escape_path_in_flag(target, flag) print("2",flag)
打印结果是这样的。
xmake project -k xcode checking for Xcode directory ... /Applications/Xcode.app checking for Codesign Identity of Xcode ... no checking for SDK version of Xcode for macosx (arm64) ... 14.5 checking for Minimal target version of Xcode for macosx (arm64) ... 14.5 1 -target 2 -target 1 arm64-apple-macos14.5 2 arm64-apple-macos14.5 1 -isysroot 2 -isysroot 1 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk 2 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk 1 -lz 2 -lz 1 { "-Wl,-exported_symbols_list", "build/.gens/xxx/macosx/arm64/release/rules/symbols/export_list.exp", __wrap_locked__ = true } 2 { "-Wl,-exported_symbols_list", "build/.gens/xxx/macosx/arm64/release/rules/symbols/export_list.exp", __wrap_locked__ = true } error: bad argument #1 to 'argv' (string expected, got table)
能正常生成cmake
error: bad argument #1 to 'argv' (string expected, got table)
Bot detected the issue body's language is not English, translate it automatically. Title: xmake project -k xcode reports an error after using export_list
Bot detected the issue body's language is not English, translate it automatically.
Title: xmake project -k xcode reports an error after using export_list
Xmake 版本
2.9.3
操作系统版本和架构
macOS 14.5 (23F79)
描述问题
我使用了
来导出函数,然后就不能生成xcode工程了,具体是cmake就生成失败,错误代码在这里。 https://github.com/xmake-io/xmake/blob/9eb191fc028f32d71de393cd2a46df7fc076bf4b/xmake/plugins/project/cmake/cmakelists.lua#L973
我添加了2行调试。
打印结果是这样的。
期待的结果
能正常生成cmake
工程配置
附加信息和错误日志
error: bad argument #1 to 'argv' (string expected, got table)