Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The -target argument represents as arch argument on iPhone simulator #11971

Closed
Gargony opened this issue Feb 15, 2024 · 1 comment
Closed

The -target argument represents as arch argument on iPhone simulator #11971

Gargony opened this issue Feb 15, 2024 · 1 comment
Assignees
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Milestone

Comments

@Gargony
Copy link

Gargony commented Feb 15, 2024

Type: Bug

Take a look to "-target x86_64-apple-ios12.2-simulator" argument in compile_commands.json fragment

compile_commands.json fragment
{
  "directory": "/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64",
  "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DAPPLE -DBOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR -DBOOST_FILESYSTEM_DEPRECATED -DBOOST_NO_CXX11_SCOPED_ENUMS -DBOOST_NO_CXX98_RANDOM_SHUFFLE -DBOOST_THREAD_PROVIDES_NESTED_LOCKS -DBOOST_THREAD_USES_DATETIME -DBOOST_THREAD_VERSION=5 -DBUILDING_COMMON_LIB -DBUILDING_SBIS_MOBILE_COMMON -DCURRENT_MODULE_NAME=sbis-mobile-common -DIOS -DIOS_SIMULATOR -DNDEBUG -DSBIS_APPLE_CLANG -DSBIS_DEBUG -DSBIS_RELEASE -DSBIS_STATIC_BUILD -DSBIS_UNIX -DSBIS_USE_NEW_CONAN -DSBIS_USE_WIDE_STRINGS -DSBIS_X86_64 -DUNICODE -DUNIX -DWIN32_LEAN_AND_MEAN -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR=1 -D_UNICODE -I/Users/mv.kapitonov/Documents/w/controller/mobileworkspace_controller-common/sbis-mobile-common -I/Users/mv.kapitonov/Documents/w/controller/mobileworkspace_controller-common/sbis-mobile-common/resources -I/Users/mv.kapitonov/Documents/w/controller/mobileworkspace_controller-common/sbis-mobile-common/implementation -I/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64/impexp -I/Users/mv.kapitonov/SBISPlatformSDK/SBISPlatformSDK_241200/include -I/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64/sdk/djinni/cpp -I/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64/sdk/djinni/objc -I/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64/sdk/djinni/objcpp -I/Users/mv.kapitonov/Documents/w/controller/mobileworkspace_controller-common/sbis-mobile-common/data_entities -I/Users/mv.kapitonov/Documents/w/controller/mobileworkspace_controller-common/sbis-mobile-common/sbis-mobile-common -I/Users/mv.kapitonov/Documents/w/controller/mobileworkspace_controller-common/sbis-mobile-common/sbis-mobile-common/tests -I/Users/mv.kapitonov/Documents/w/controller/mobileworkspace_controller-common/sbis-mobile-common/sbis-mobile-common/synchronizer -I/Users/mv.kapitonov/Documents/w/controller/sbis_offline/src/sbis-service-info-provider -I/Users/mv.kapitonov/Documents/w/controller/sbis_offline/src/sbis-service-info-provider/resources -I/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64/subprojects/controller/mobileworkspace_controller-common/sbis-mobile-common/djinni -I/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64/subprojects/controller/mobileworkspace_controller-common/sbis-mobile-common/djinni/cpp -I/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64/subprojects/controller/mobileworkspace_controller-common/sbis-mobile-common/djinni/objc -I/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64/subprojects/controller/mobileworkspace_controller-common/sbis-mobile-common/djinni/objcpp -I/Users/mv.kapitonov/Documents/w/controller/DEP_PROJECT_BUILD_DIR-NOTFOUND/djinni/objc -F/Users/mv.kapitonov/.conan_data/boost/rc-24.1200-14/sbis/stable/package/e852ec59bcb4bf5167f1c58c9e96f581e61b3721/lib -F/Users/mv.kapitonov/SBISPlatformSDK/SBISPlatformSDK_241200/bin/ios/x86_64/apple-clang/release/static -F/Users/mv.kapitonov/Documents/w/controller/waiter/bn/Debug/cmake/ios-x86_64/bin -isystem /Users/mv.kapitonov/.conan_data/boost/rc-24.1200-14/sbis/stable/package/e852ec59bcb4bf5167f1c58c9e96f581e61b3721/include -O2 -g -DNDEBUG -std=gnu++20 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -fvisibility-inlines-hidden -fPIC -fapplication-extension -Wall -Wextra -Wno-unknown-pragmas -Wno-switch -Wno-missing-field-initializers -Wno-missing-braces -Wconversion -Werror=format-security -Werror=return-type -fvisibility=hidden -g -O0 -arch x86_64 -miphoneos-version-min=12.2 -target x86_64-apple-ios12.2-simulator -fobjc-arc -Werror -Wno-error=deprecated -Wglobal-constructors -o subprojects/controller/mobileworkspace_controller-common/sbis-mobile-common/CMakeFiles/sbis-mobile-common.dir/implementation/async/co_promise_base.cpp.o -c /Users/mv.kapitonov/Documents/w/controller/mobileworkspace_controller-common/sbis-mobile-common/implementation/async/co_promise_base.cpp",
  "file": "/Users/mv.kapitonov/Documents/w/controller/mobileworkspace_controller-common/sbis-mobile-common/implementation/async/co_promise_base.cpp",
  "output": "subprojects/controller/mobileworkspace_controller-common/sbis-mobile-common/CMakeFiles/sbis-mobile-common.dir/implementation/async/co_promise_base.cpp.o"
},

In c++ log we see that this argument used as "-arch", which leads to an error.

Командная строка запроса компилятора: /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/c++ -O2 -g -std=gnu++20 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -fvisibility-inlines-hidden -fPIC -fapplication-extension -fvisibility=hidden -g -O0 -miphoneos-version-min=12.2 -target x86_64-apple-ios12.2-simulator -fobjc-arc -arch x86_64-apple-ios12.2-simulator -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
clang: error: invalid arch name '-arch x86_64-apple-ios12.2-simulator'

Extension version: 1.19.3
VS Code version: Code 1.86.1 (Universal) (31c37ee8f63491495ac49e43b8544550fbae4533, 2024-02-07T09:09:01.236Z)
OS version: Darwin x64 22.6.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (4 x 3400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 10, 8, 10
Memory (System) 16.00GB (1.25GB free)
Process Argv --crash-reporter-id f2eee538-8129-4cf6-aac2-620decbd951f
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:30962249
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
edj9j583:30958191
a89i1917:30961429
3ef8e399:30964150
e3gdj431:30958358

@sean-mcmanus sean-mcmanus self-assigned this Feb 15, 2024
@sean-mcmanus sean-mcmanus added bug Language Service Feature: Configuration An issue related to configuring the extension or IntelliSense labels Feb 15, 2024
@sean-mcmanus sean-mcmanus added this to the 1.19 milestone Feb 16, 2024
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Feb 23, 2024
@sean-mcmanus
Copy link
Collaborator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Projects
None yet
Development

No branches or pull requests

2 participants