arichornlover / uYouEnhanced

uYouEnhanced (by @arichornlover) is an expanded version of uYou+ (made by @qnblackcat) with additional features and mainly made for non jailbroken users!
https://github.com/arichornlover/YouTubeRebornPlus/
2.27k stars 3.36k forks source link

[Bug] Unable to build due to "error: assigning to 'YTIcon' from incompatible type 'int'" #777

Closed MaleNurse closed 2 hours ago

MaleNurse commented 5 hours ago

Is there an existing issue for this?

Have you read the Wiki?

iOS/iPadOS version

iOS 18.1

Device model

iPhone 16 Pro Max

Sideload method

Sideloadly

Tweak version

v19.42.1-3.0.4

Do you use YouTube Premium?

❌ No, I don't use YouTube Premium

Describe the bug

When compiling commit 3557287 using GitHub actions, the following error results:

Sources/uYouPlus.xm:592:26: error: assigning to 'YTIcon' from incompatible type 'int'
==> Compiling Sources/uYouPlus.xm (arm64)…
    iconImage.iconType = 537; 
                         ^~~
Sources/uYouPlus.xm:640:41: error: assigning to 'YTIcon' from incompatible type 'int'
                        icon.iconType = 741; 
                                        ^~~
Sources/uYouPlus.xm:670:118: error: assigning to 'YTIcon' from incompatible type 'int'
            newItemSectionSupportedRenderers.compactListItemRenderer.thumbnail.iconThumbnailRenderer.icon.iconType = 147;
                                                                                                                     ^~~
3 errors generated.
make[3]: *** [/Users/runner/work/uYouEnhanced/uYouEnhanced/theos/makefiles/instance/rules.mk:405: /Users/runner/work/uYouEnhanced/uYouEnhanced/main/.theos/obj/arm64/Sources/uYouPlus.xm.9bc222e7.o] Error 1

Steps to reproduce the issue

  1. Sync my fork
  2. Compile using GitHub action

Crash log (if the app crashes)

No response

Are you using the newest version of uYouEnhanced?

✅ Yes, I'm using the latest version

Does the issue happen with the official YouTube from AppStore?

❌ No, I can't reproduce this issue in the official YouTube from AppStore

Select the configuration used for building or obtaining the uYouEnhanced ipa. (Optional)

buildapp.yml (GitHub Actions — build method as suggested by Wiki - Building)

Additional context

No response

arichornlover commented 2 hours ago

Try building again.

YouTubeHeader had an update which broke uYouEnhanced, but it should be working fine now.

MaleNurse commented 2 hours ago

Working, thank you!