dragon icon indicating copy to clipboard operation
dragon copied to clipboard

Issue with SDK (at least on linux)

Open 0cyn opened this issue 4 years ago • 4 comments

min repro:

git clone https://github.com/kritantadev/statusviz
cd statusviz
dragon c b 

also shows up in dragon test in multiple

is this new?

0cyn avatar Aug 27 '21 09:08 0cyn

Pass on MacOS 10.15.7 https://github.com/DragonBuild/dragon/runs/3441772777?check_suite_focus=true

0cyn avatar Aug 27 '21 09:08 0cyn

If this is referring to "___isOSVersionAtLeast", I can confirm that I also encounter the issue on my Linux system.

L1ghtmann avatar Sep 03 '21 01:09 L1ghtmann

Possible duplicate of #76.

if(@available(iOS 13, *)) causes the following error for both arm64 and arm64e:

Undefined symbols for architecture arm64e:
  "___isOSVersionAtLeast", referenced from:
      __ZL66_logos_method$Widgets_13$WGWidgetHostingViewController$viewDidLoadP29WGWidgetHostingViewControllerP13objc_selector in Tweak.xm.mm.o

Example usage: here

Note: swapping out the contents of iPhoneOS.sdk in ~/.dragon/sdks/ with another patched sdk does not resolve the issue, at least for me.

  • UsrLightmann

0cyn avatar Sep 13 '21 21:09 0cyn

Think this may be an issue larger than Dragon . . . have tried debugging for the past couple hours and can't seem to remedy the error any way other than setting the minimum deployment target to >= the version being checked with @available.

Found an interesting forum post about the issue here. Seems it may be a toolchain issue regarding libclang_rt. Sam (Bingner) also encountered an issue with @available which he described here. I assume he's referring to the same static library mentioned above.

L1ghtmann avatar Sep 26 '21 03:09 L1ghtmann

Going to close this since it spawns from an issue with libclang_rt*.a in the precompiled LLVM/Clang toolchains currently available and not dragon itself.

L1ghtmann avatar Oct 31 '22 01:10 L1ghtmann