qnblackcat / uYouPlus

uYou+ is a modified version of uYou (made by @MiRO92) with additional features and mainly made for non jailbroken users!
7.19k stars 8.43k forks source link

Can not build uYouPlus with method 1 #1345

Closed bibabibu369 closed 6 months ago

bibabibu369 commented 6 months ago

Have you read the FAQ?

Is there an existing issue/question for this?

Do you think this is a bug?

❌ No, I don't think this is a bug. I will explain below

My question

How can I fix this error

"iSponsorBlock.xm:19:47: error: member reference base type 'const char[50]' is not a structure or union ==> Compiling iSponsorBlock.xm (arm64)… bundle = [NSBundle bundleWithPath:ROOT_PATH_NS("/Library/Application Support/iSponsorBlock.bundle")]; ^~~~~~~~~~~~~~~~~ /Users/runner/work/uYouPlus/uYouPlus/theos/vendor/include/rootless.h:10:30: note: expanded from macro 'ROOT_PATH_NS'

define ROOT_PATH_NS(nsPath) JBROOT_PATH_NSSTRING(nsPath)

                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

/Users/runner/work/uYouPlus/uYouPlus/theos/vendor/include/libroot/libroot.h:20:36: note: expanded from macro 'JBROOT_PATH_NSSTRING'

define JBROOT_PATH_NSSTRING(path) __CONVERT_PATH_NSSTRING(libroot_dyn_jbrootpath, path)

                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/Users/runner/work/uYouPlus/uYouPlus/theos/vendor/include/libroot/libroot.h:17:47: note: expanded from macro '__CONVERT_PATH_NSSTRING' [NSString stringWithUTF8String:converter(path.fileSystemRepresentation, tmpBuf)]; \


1 error generated.
make[4]: *** [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/instance/rules.mk:390: /Users/runner/work/uYouPlus/uYouPlus/main/.theos/obj/arm64/iSponsorBlock.xm.61968dba.o] Error 1
rm /Users/runner/work/uYouPlus/uYouPlus/main/.theos/obj/arm64/iSponsorBlock.xm.mm
make[3]: *** [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/instance/library.mk:52: /Users/runner/work/uYouPlus/uYouPlus/main/.theos/obj/arm64/iSponsorBlock.dylib] Error 2
make[2]: *** [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2
make[1]: *** [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/master/rules.mk:146: iSponsorBlock.all.tweak.variables] Error 2
make: *** [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/master/aggregate.mk:12: internal-all] Error 2
Error: Process completed with exit code 2."

### Additional context

_No response_
kyutori commented 6 months ago

Me too

hiepvk commented 6 months ago

Have you read the FAQ?

  • [x] Yes, I did read the FAQ

Is there an existing issue/question for this?

  • [x] I have searched the existing issues

Do you think this is a bug?

❌ No, I don't think this is a bug. I will explain below

My question

How can I fix this error

"iSponsorBlock.xm:19:47: error: member reference base type 'const char[50]' is not a structure or union ==> Compiling iSponsorBlock.xm (arm64)… bundle = [NSBundle bundleWithPath:ROOT_PATH_NS("/Library/Application Support/iSponsorBlock.bundle")]; ^~~~~~~~~~~~~~~ /Users/runner/work/uYouPlus/uYouPlus/theos/vendor/include/rootless.h:10:30: note: expanded from macro 'ROOT_PATH_NS' #define ROOT_PATH_NS(nsPath) JBROOT_PATH_NSSTRING(nsPath) ^~~~~~ /Users/runner/work/uYouPlus/uYouPlus/theos/vendor/include/libroot/libroot.h:20:36: note: expanded from macro 'JBROOT_PATH_NSSTRING' #define JBROOT_PATH_NSSTRING(path) CONVERT_PATH_NSSTRING(libroot_dyn_jbrootpath, path) ^~~~~~~~~~~~~ /Users/runner/work/uYouPlus/uYouPlus/theos/vendor/include/libroot/libroot.h:17:47: note: expanded from macro 'CONVERT_PATHNSSTRING' [NSString stringWithUTF8String:converter(path.fileSystemRepresentation, tmpBuf)]; ~~^~~~~~~ 1 error generated. make[4]: [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/instance/rules.mk:390: /Users/runner/work/uYouPlus/uYouPlus/main/.theos/obj/arm64/iSponsorBlock.xm.61968dba.o] Error 1 rm /Users/runner/work/uYouPlus/uYouPlus/main/.theos/obj/arm64/iSponsorBlock.xm.mm make[3]: [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/instance/library.mk:52: /Users/runner/work/uYouPlus/uYouPlus/main/.theos/obj/arm64/iSponsorBlock.dylib] Error 2 make[2]: *** [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/instance/library.mk:37: internal-library-all] Error 2 make[1]: [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/master/rules.mk:146: iSponsorBlock.all.tweak.variables] Error 2 make: [/Users/runner/work/uYouPlus/uYouPlus/theos/makefiles/master/aggregate.mk:12: internal-all] Error 2 Error: Process completed with exit code 2."

Additional context

No response

change build.yml line 68 :

hiepvk commented 6 months ago

Me too

change line 68 build.yml ref: master replace with ref: 4bcc52914e0eeca719288522938185decaa8a1cb

bibabibu369 commented 6 months ago

let me try

kyutori commented 6 months ago

It workes. Thank you!

bibabibu369 commented 6 months ago

OMG, it works for me too. Thanks so much bro, from Vietnam with love <3

hiepvk commented 6 months ago

OMG, it works for me too. Thanks so much bro, from Vietnam with love <3

Biết VN từ đâu cmt tiếng việt cho đỡ mệt :))