#development
1 messages · Page 478 of 1
why wouldnt it
well it should
i think cloudflare can handle it
well it's both cloudflare and apple
it enters through apple and exits through cloudflare
it’s apple proxied by flare
apple finally decided to adopt good technology
@lime pivot their entrance nodes are on k8s
some apple woman came to kubeconf 2021 to talk about it
also I love how nobody can figure out where the server really is
ah okay
half the geoip services say it's in Dallas (wrong), half say Melbourne (correct)
well
one says Dallas the other says Chicago
i seriously can’t believe apple adopted kubernetes and cloudflare tho
it’s so un apple like
of course the geoip API Chariz uses is the one that's actually correct 
it’s also proxied
dicsord
lmao sure
private relay just broke again lol
I had it enabled system-wide cause honestly it's surprisingly fast
definitely a worthwhile service to invest in / use?
well I just toggled it and it fixed itself, gave me a new IP
scratch that, still broken, lmao
somehow only Google API and Discord are broken, other sites seem fine
Google API I noticed only cause I was testing a login thing on Chariz on my local machine and it kept timing out trying to do the auth stuff with Google
yet, somehow googleapis.com connects totally fine in Safari
google is mad they can’t get your info 
lmao
https://developer.apple.com/documentation/uikit/uiview?language=objc
have the developer docs always had a dark mode or did they just change that
Pretty sure it always did
new
it's a lot easier to read now
What about maxmind
no idea why that site doesn't include maxmind any more
nope, it's new
oh
well, it's smart enough to know that it's specifically Cloudflare Warp
I just realized I use dark reader
I hate these geoip services so much
I need to shut up
half the time only one or two of them is actually accurate
like how it can't decide whether I'm in Dallas, Chicago, or Melbourne
now I'm in Sydney because the IP changed, surprisingly all of them have it right
maxmind has always been accurate for me
-*+96-8
how do i choose whether a tweak resprings from cydia or not
not using theos
@ me with your response
It checks if your .plist filters for Springboard/UIKit
In other news
CAGradientLayer, CAAnimation and UIButton on watchOS
dont think so, installing animatefix on my 3gs just says return to cydia
What are you making?
This was purely just a proof of concept to get UIKit in watchOS
Oh I see
From looking through stuff, it looks like all of UIKit can be used if you sort out your headers
Definitely not. It checks if you depend on mobilesubstrate
Has that always been a thing?
Some of my tweaks don’t and still prompt for a respring

you don't, it just knows it has to based on depending on mobilesubstrate
I wish there were a way to avoid that without removing the substrate dep, I don't recommend doing that
we should make a new standard that everyone should adopt
- every dev in this server

Some genius tweak devs make it not depend on substrate

So all new jailbreakers who happen to only install that tweak get confused why its not working!!
And send me twitter messages 😄
Tired: pushing endlessly for lazy people to change bad standards
Wired: reimplement literally everything

Inspired: Not jailbreaking at all
Now thats inspiring
Fired: You from your job
i hope so

making 8.25 as a custodian at a school
sucks balls but we got interview tomorrow for something else
Ah u poisoned my lunch with shit water
we do a little trolling
Ok, so what makes a tweak want to reboot the device?
finish:reboot
out of curiosity where does someone enable that
shell
Ok so google is not giving me the result I’m looking for lol may have to wait til I get back to a computer
aight
Found it
I literally searched for that on the wiki and found nothing for extrainst, google got it eventually when I fixed keywords
thanks
maintaining an apt repo is so hard lmao
i mean hard to set up but easier when it's fully setup
I don't see any need to use extrainst_ any more
i just got my brothers old iphone xs which i thought was a iphone x and got excited so i could replace my iphone 7 as my test device 
"gah damn it! it's a better device than I wanted :("
I bet you could find somebody to trade it for an X lol
i bet i could. i have a iphone x with a unusable screen so i might just replace that with a cheap one
if the screens were interchangable i would’ve replaced it and threw the xs in a box somewhere
nfr
just ordered a screen for it
now i have a iphone 7 (14.6) iphone 11(14.3) iphone xs(14.6) and iphone x(14.6)
I want a seven on 10 3:
i have no clue wtf to do with the xs. guess i will just wait and save blobs for it
Well you send it to me of course /s
i might try out ios 15 on it
good idea

i just want to replace the iphone 7 as my test device
its a good phone but the battery is pretty old and weared down and it gets slow. might as well just revamp my old X
plus the digitizer still works and i can use quicktime to see the other half of the screen until the new screen arrives
hand sanitizer
i just ate pizza true
if the price is right. but the phone is not carrier unlocked and plus i am pretty sure the emei is blocked since my brother never paid off the phone completely or violated the contract im not sure
might wait for pwn my for xs 
I was joking 
PwnMy will be Pog if it ever comes to fruition
Anyone in here that owns ANC headphones (that aren't from Apple), such as Bose or Sennheiser or Skullcandy or Sony
and would like to test & log things for me so I can add support for them in Sonyfy (might be a new tweak though not sure yet)
need testing for WH-1000XM3?
when you finish the tweak, we'd love to release it on Chariz, by the way 🙂
I got an WH-1000XM3 myself, but you can test the currently working features. I will create a github action for creating the deb file, so you can download it from there if you want, I shall DM you when it's done
okay will consider it, I'm currently hosting my other tweak on Packix, but wouldn't mind switching if Chariz has any advantages for me :)
I own Bose QC35II, although I'm not jailbroken but idk if I need to be jailbroken for what you need
yeah I would need a jailbroken device, so i can see the logs
if you decide to do so, please let me know :)
sure thing, I'll see if I can downgrade when I get home
👍
How do I fix this error: range-based for loop is a C++11 extension [-Werror,-Wc++11-extensions]? Is there a flag in theos I need to change?
no, it's a compiler error meaning the code you wrote is wrong
for (struct animalStruct animal : animals) {
[animalArray addObject:animal.name];
}```

Objective-C
I'm using Objective C++
so it's for-in, literally
what's the file ending
NSMutableArray isn't compatible with C++ loops, so you need to use an Objective-C loop
.mm
The animals array is std::vector<animals>
oh lol
wtf
Yes, I didn't know how to do that with theos and that's why I came here (apparently didn't know how to describe my issue either)
ur not being trolled by an admin
i see
why do i not see
fobjc
@prisma grove it's not relevant to your problem, but by the looks of your code you're doing fairly unsafe ObjC++
because it should not be possible to add animal.name to an NSMutableArray because if it's coming from a struct then it shouldn't really be an ObjC object
for memory management reasons
error: invalid argument '-std=c++11' not allowed with 'Objective-C'?
https://github.com/squ1dd13/Circuliser/blob/790f9ee9cc1debe6e5498560f0e646656ba416a3/Makefile#L15
here's an objective-c++ makefile from one of my tweaks
i did things in a strange order but the relevant CFLAGS were -fobjc-arc -std=c++17 -stdlib=libc++
Oh, so I can't have other just plain Objective-C files in the tweak?
if it sees .xm or .mm then it knows to treat it as objective-c++, but for .x or .m it goes with plain objc (and it also sees Logos if you have the 'x')
you can mix them but make sure you have the right extensions on the right files
This is my makefile tweakname_FILES = AnimalManager.m Tweak.xm AnimalTweak.xm Animals.mm (file where the for loop was) tweakname_FILES_CFLAGS = -fobjc-arc -std=c++17 -stdlib=libc++ tweakname_FILES_LIBRARIES = c++
Thanks what I'm actually doing is [animalArrary addObject:[UIColor colorWithRed:maximum.red green:maximum.green blue:maximum.blue alpha:1.0]]; I just made an example earlier and I don't think that has a memory leak putting it into NSMutableArray
Whatever one Xcode 12 provides
I just get ==> Compiling AnimalManager.m (arm64)… error: invalid argument '-std=c++17' not allowed with 'Objective-C'
oh you may not be able to mix them then
try removing that flag and see what happens
oh wait
then do we get back to where you started
Yes we do
try making all the .m files .mm and fix any issues with them if needed
may be worth making a copy of the dir so you can experiment
I tried that, unfortunately, CFDictionaryRef and CFStringRef, which I use, doesn't seem to be compatible with Objective C++
you probably need to change the casts
CoreFoundation bridges with objc/objc++ perfectly bro
r: cannot initialize a variable of type 'CFDictionaryRef' (aka 'const __CFDictionary *') with an rvalue of type 'const void *'?
Ah
you can also just use straight C casts but that's discouraged
this is why we hate C++
it's a joke
std::vectors that hold an array of non-malloced structs don't need to be freed, right?
turns out I can't send you a dm 😐
just make sure you have a destructor defined if you need to free any fields or anything
My fields are just ints and doubles
yeah it's fine then
I've tried doing this through shortcuts for 3 days, but nothing works right, so ill try again here.
Im hoping someone can take a tweak request on free time when there is really no other tweaks to dev, but me and another shortcut user were trying to create a way to add an entire artist/artists discography and songs they appeared in to a playlist. For the most part it was best achieved through making a list of artist page id's, seperating it, and then reaching through apple's API and searching for each and pulling the album/track ID's through a lookup search and then repeatedly adding each track to the list. It worked well, and got me basic results, until i went in the next morning (it took a day to run) and found it missed many songs, most of which the artists were featured in. I have literally no coding experience and i couldnt develop anything to save my life. Im a broke highschooler, and i am looking for someone to help me and a select bunch of redditors get a tweak to allow users to go into the artist menu simularly to that of a song or album or playlist and add to a playlist. Enjoy my little mockup. I dont need this to be asap, since like i said im broke as a bitch, until my debit card comes in a month im screwed for payments. i would put it in r/tweakbounty if i had it. yeah, i sent this here already but after trying trial and error with shortcuts with broken results it just doesnt work as well as intended.
TLDR, need a thingy like apple's native "add to a playlist" for artists, that takes every album, song, and appearances in other songs and albums they made and adds them to a playlist, skipping the duplicates. Im broke as a bitch so unless i get my debit card in a month i dont have much to pay with.
Even shorter tldr, shortcuts fucking suck
I've tried doing this through shortcuts for 3 days, but nothing works right, so ill try again here.
Im hoping someone can take a tweak request on free time when there is really no other tweaks to dev, but me and another shortcut user were trying to create a way to add an entire artist/artists discography and songs they appeared in to a playlist. For the most part it was best achieved through making a list of artist page id's, seperating it, and then reaching through apple's API and searching for each and pulling the album/track ID's through a lookup search and then repeatedly adding each track to the list. It worked well, and got me basic results, until i went in the next morning (it took a day to run) and found it missed many songs, most of which the artists were featured in. I have literally no coding experience and i couldnt develop anything to save my life. Im a broke highschooler, and i am looking for someone to help me and a select bunch of redditors get a tweak to allow users to go into the artist menu simularly to that of a song or album or playlist and add to a playlist. Enjoy my little mockup. I dont need this to be asap, since like i said im broke as a bitch, until my debit card comes in a month im screwed for payments. i would put it in r/tweakbounty if i had it. yeah, i sent this here already but after trying trial and error with shortcuts with broken results it just doesnt work as well as intended.
TLDR, need a thingy like apple's native "add to a playlist" for artists, that takes every album, song, and appearances in other songs and albums they made and adds them to a playlist, skipping the duplicates. Im broke as a bitch so unless i get my debit card in a month i dont have much to pay with.
good copy
true
I'm sorry copying books is considered Piracy
lol
at least they added a TL;DR
i did
they did
we did
who did
us fdid
have you tried posting a [Request] on the sub
i did, before i made an attempt with a shortcut. no dice, one joke response and one person saying they needed it too
oof
yep
yeah sorry about that, just need to send a friend request
it's so I don't get noobs DMing me
ah alright
Something with viewbuilder, anyone know how to fix?
scrambling my head abt it
idk what's wrong
try embedding it inside a VStack or a HStack
?
it worked before in my other projs
put the Button() inside a HStack
i'm quite new so pardon me if i get anything wrong
oh
this one?
it's View, not view
I was able to mix Objective-C and Objective C++ properly with Xcode building the library, no casting or anything else required. Can't seem to do it with theos though
@lime pivot would you have any idea about this?
could it be an SDK issue?
It doesn't seem like it
i don't use theos anymore due to repeated annoyances like this along with it being difficult to integrate with IDEs/editors
:newterm:

It changes every respring
I wanna kill myself
I select top and it’s changes to everything besides top
development
Unfortunately
meth
Hey guys, I need someone on iOS 14.0 or newer and jailbroken to help me creating a patched YouTube IPA for iOS 15 that enables the native PiP support
(already got the code, just someone to extract the IPA for me since I don't have a jailbroken device nearby)
Native PiP
just like in the TV app for example
you’re asking the wrong place dog
Why is that lol
How can I extract an IPA from my device without it being jailbroken?
Any idea if it will create an IPA that supports all archs or just the one installed on my device?
I don't want to distribute one, but I do intend to create some DIY guide for creating such IPA
I assume that's still encrypted?
Pretty sure it is, checking right now
I don't have a Mac 
does it look plausable on a budget?
@unkempt seal you can use ipatool to get the ipa
idk, there are probably people who would do it without expecting to get paid
but you have to find one of those people
beware i think you need a paid dev account to sign youtube
i remember experimenting with theos jailed n youtube n that was a issue i came across
didnt try that at the time so this must be the best solution. its because of the capabilities that need to enabled on xcode and they require a dev account when you are using theos jailed
thank you!
read the whole thing
Mfw I discover a bug: 😶
move C++ flags to CPPFLAGS
It apparently was CCFLAGS that needed to be set, not CXXFLAGS, which I was trying earlier, and I just tried CPPFLAGS as you suggested, and that didn't work either
Your comment here: https://github.com/theos/theos/issues/315#issuecomment-383360945 was how I found out
oops hah
@lime pivot Would you recommend using gnu++17 or c++17 for my tweak?
they’re basically the same, c* follows the standard while gnu* has a few extensions to it
hi, does anyone know how to get ktrace events from the iphone? Instruments.app is doing it somehow from my mac, but i'm not sure how. and there doesn't appear to be a ktrace executable on the iphone itself. there's a ktrace argument, --remote=..., but i'm not sure what value i would give that
Gnu invented “ill just make my own standard”
gnu invented turbo virgins
Do we need a shorter tldr? Got it!
music need all
artist yes
music other artists with artist, yes
feature like apple
yes
all song get?
yes

@grave sparrow wym?
lol
its just a rust dissassembler
it only identifies the instructions rn
yep, just need a feature for add to artist, that adds every song by/including an artist. Problem with shortcuts is that it skips over songs by other artists with (feat. artist)
And it’s slow and screws up half the time
And doesn’t check the playlist for duplicates
Gotcha
so like, you have the option to add an artist to a playlist, and upon adding said artist, it puts all of their songs into said playlist
and if the song already exists, just dont add it
i know you said you werent gonna do it, but thats what they wanted
fr
¯_(ツ)_/¯
i guess as a way to have like
example
every eminem song with every tupac song
instead of shuffling either one or the other
NSPlaylist *playlist = self.playlist;
playlist.add(song);
magic

ignore the several syntax errors youd get
just realized playlist.add(song); just wouldnt work
great temp var names
is the ios15 beta profile not working by chance? I install it and it gets an error fetching update info, but if I remove it I see updates fine
needs to have set prefix on the method name for that to work
or @property with explicit setter right?
foo.bar == [foo bar] and foo.bar = @"foo" == [foo setBar:@"foo"]
it does work
reboot
that might help
@tepid olive did that a number of times lol... it's strange
you see it showing up now?
I can't get it to restore either I think it must want a newer osx to do the restore?
W
heh true
it's probably just your otas being broken from jailbreaks i'd guess
no, it works fine when I remove the profile
tries to do 14.6 then
yeah but I need to get a copy running to work on checkra1n lol and it's being stupid
if I can't get that going I'll either have to set up a whole new VM or get libimobiledevice updated argh (I'm assuming it can't do it yet, maybe I should check that - nikias is fast sometimes lol)
you shouldn't do it that way tho you should use proper naming and do foo.bar = @"bar" and NSLog(@"%@", foo.bar)
idevicerestore doesn't work at all?
huh
you definitely should try, not sure how it could break
they changed a bunch of strange things on ios15
huh idevicerestore may actually be working 😐
@tepid olive learn rust
idevicerestore > finder
@upbeat wyvern it does work lol
i use finder out of habit but i'm tryna ditch it
@tepid olive write code to fetch the latest apt from an apt repo for a package 😛
eh I didn't try doing it on macos
you could just use canister api
lol
I ran it from linux lol
Amm i in trouble guys
looks up canister api
no idea what that is google gives me nothing
wtf no
- Why are you wasting people's time lol
- ?????
Im actually serious
@proud geyser that's fake right? somebody working for apple said that?
Yea literally broo
lol you can probably sue them
@tepid olive userland is for loosers you need to low level dev
maybe contact EFF with that and see if they want to do something
Look this is the chat after that
tro
this sounds like satire
it's where your mother belongs
what about triland
Sounds like you were used and thrown by her
Idkk seems like he messing around or im in serious trouble
you can't be in trouble
because it's legal


Actually?

Wait what actually happened in iOS 4 beta incident?

😂 imagine
Was iPhones even a thing back then
Pretty sure we just had ipods
Damn seems too OP they should nerf that
Wait so they guy in apple support was actually messing with me or is it really illegal
I promise I will personally report you to the police if I hear of you doing that.
I really was wondering
Plus you make tweaks for jailbreak 😂😂😭
Where can I read about it in more depth?
They were messing around pretty sure
Lemme go downgrade real quick
what iOS 4 incedent
Idk they were saying something happened to a user who used ios 4 beta
Sum death row or shi

Yea some dude got the death penalty for pirating on iOS
Is that true story ?
100% true
Where can i read more about it@
Everything said in this channel are facts that can be found on wikipedia
You can hear about it on Saunders tech
Link ?
Yeah I can’t find anything
Or idevicecentral
Google just returns iOS 14 stuff
Apple covered it up
can the pink names stop saying the most stupid shit ever
You have to use tor browser to search the deep webs
Bruh yall are bsing

Send a ss through tor then


Imma downgrade just incase ✌🏼
There’s no way Apple could cover up something that big and knock everywhere out I call BS
lmao
Actually dont even wanna downgrade anymore


I think most people with at least one brain cell hate this turn of events too
i wish it was fully open source so i could continue dev on it
Same
True the perfect excuse to not develop
(I have zero knowledge of tweak development but so what)
f
what
who was calling it a virus
did they mean Batchomatic?
No

sadly.

https://twitter.com/diatrus/status/1402816515334942720?s=21
explanation of it
(1/?) On a slightly related note, @SarahH12099 and her partner on YouTube Reborn have recently been bullied for baseless allegations about bloat and it being a “virus” because it had to install multiple extremely small library dependencies. Let me explain why it did that.
everyone who couldnt handle a couple small dependency installs has obviously never used anything except windows update before ig
yea i already know why it installed because they are ffmpeg python depends
thats crazy people are dumb asf

not that hard to make a downloading alternative
could be paired up with other youtube tweaks
would it be possible to develop a tweak thatll steal crypto wallet keys from metamask or trust wallet

are programs normally able to elevate their permissions like that?
but doesn't setting that bit require a user with the uid 0?
huh, it seems like an incredibly insecure thing to have on one's device then
basically a way for any tweak to gain root
what is it needed for anyway?
Its needed for natural selection
does the package manager have these perms?
I fail to see how that would be set any other way?
Yes
https://thenextweb.com/news/jailbreak-attack-reportedly-stole-more-than-225000-apple-logins from 2015 but valid
@grave sparrow 🙂
@grave sparrow the first 40 instructions are all correctly matched
@grave sparrow I will upload my code fully commented soon
my disassembler uses hashmaps, what do you use
mine is just all in main rn
cba
its good code tho
I basically have the same thing as u
just using hashmaps
So my intel MacBook is useless now 
sure, it's possible to do anything
well, accessing keychain data usually requires authentication with passcode/biometrics
You can dump it really easily from a tweak
how do you dump it without authentication unless you're reading the app's memory or something
keychaindumper usually requires me to enter my passcode or authenticate with Face ID
Can anyone provide me the equivalent of “HelloWorld” as an open source tweak? I’ve REed all the private API shit I need to hook into. But I need to know the syntax that “tweaks” require to translate my pseudo-code into tweak code. Any suggestions?
Same here. But keychain dumper misses out on a lot of keychain data for me anyway, at least on iOS 14.1 (A14).
well, on 13.5 and above you have to resign it with certain entitlements that can be generated by a script they provide in the repo because the old wildcard ones no longer work
Ohhhh, let me try that. Thanks for the tip Nyu!
well IIRC without that it didn't dump anything at all for me but
And package managers just don’t notify the user when a certain package demands increased perms??
Does it dump safari passwords for you, app psswords, and WiFi Passwords. I only get WiFi passwords and a couple system passwords that make no sense to me. (Every entry is labeled with a non-sensical UUID).
idk, I use Bitwarden
They’re good opcodes Bront
you’re literally giving packages full permission at the moment you install them
they can install files in sensitive places and run scripts during install
packages are installed as root
it's not hard to bundle malware in a postinst that deletes everything and obfuscate tf out of it
I feel like package managers and the community really understate the risks of what a package can do 😬
bricking your phone is the least of your worries
even as mobile, if unsandboxed, you can access contacts, phone recents, text messages, literally any data stored in any app even if stored with SEP encryption, passwords/tokens in keychain
This is what annoys me when people beg you to change your root password but don't even mention mobile's password
put tweaks in separate sandbox 🙏
fr
sorry forgot to un@
lyricify malware
stop exposing me
_ _
_ _
just RE and add them back to x86 macs

Interesting plans of Apple tho
We just will make exclusive feature to m1
I'm thinking about selling it and buying a m1(x), but don't know if I can sell mine for the same price as a m1
3d globe is too hard
we need arm for it

but I would have to buy a room heater if I did that
Wtf that’s you lmfao
yes LOL
I’ve been kiet
do more then
But generally on Debian based systems dpkg asks for sudo?
Right?
Do package managers just have sudo perms on iOS
package managers run dpkg/apt as root, execute the package's postinst scripts as root and can then install packages' contents to root-owned directories


why do we bother compiling and packaging tweaks when we could get postinst to install all the necessary tools and then compile and install the tweak on the device
you could even escape the source code and resources and put it all in the postinst
package managers just need to gain the ability to read maint scripts and obfuscation of them should be heavily discouraged, maybe even bully people who do that
lmao
me neither
olde
What
ye olde
??
what were you actually going to say
anyone who obfuscates a script should be bullied into leaving
Who did that
who knows, they probably left
Fr
i don't think it's them
Oh
i'm not sure tho
:)
@tepid olive i don't think we're gonna get any sense out of him
yeah
no it wasn’t youtube reborn (they’re super cool people i love them)
If you use shc for production stuff you’re a virgin
Oh ok
what's shc
a shell script obfuscation fool
oh
oh
for some reason
Why would you want to do this
bad things
if you make a jailbreak 
and you wanna be bullied
that’s the way to do it
Imagine messaging apple
al porn
yeah true
didn’t realize the man starred in those
when tf they gonna call me
ok
never
nooo
when you aren’t locked in the shed
also just keep in mind that restricting features is stupid
always give the option to override security measures
just let people view maint scripts
what if they are compiled
i personally use a postinst.c
at least to the repo
.
you’re bad then
richard stallman is in shambles
yes
man cam u might be right
one of my biological parents need to take me here not my step mom
dental office
yea
meth house, dentist what’s the difference
dentists consume methamphetamines with you anyways
close enough
so true
man
Simple but there’s a better way to do it I will be switching to
Masking isn’t the way to go tbh
the worst part of rust


Who* came up with these emoji designs bruh


it's not a js minifier
esbuild is ridiculously gamechanging
and it does on the fly typescript
swc and esbuild are great
swc isn't as matured
wish i could've used swc for chariz
but nope need to use esbuild
good morning @everyone
gm
c++ is amazing honestly


Obviously its useless after its crashed because that memory is gone
lol
I figured out it’s when I get the object thingy sharedinstance
Other than that idk what’s going on
It’s something obvious I already know
@twilit jungle happen to know any servers for development help
This one
Basically you are getting a crash because CCUIOverlayTransitionState doesn't have a class method named sharedInstance
find a class that has a CCUIOverlayTransitionState as a property
or hook init
don't hook init
I only did that once when something had absolutely no references in the headers
Then you didn't search hard enough
If something isn't being referenced then it wouldn't exist in memory
I found it but it’s an ivar
Also I’m already in a hook
Everything can be accessed via existing instances, worst case would be chain of calls from shared instance but should never hook init (to create your own shared instance). You are fking up the objects lifecycle by doing that, specially an object/class that wasn't meant to be used that way.
Ok
I’ll find what class it was if ShellFish cooperates
mf
What terminal is this
can’t you use MSHookIvar?
it’s Secure ShellFish
Ya true
ah, this was it
the only other way I found to hook this is within a class itself and set a variable that says “we already hooked this” so it doesn’t go into an infinite loop
Ok so my situation is that the thing I want is CCUIOverlayTransitionState’s presentationProgress, and CCUIOverlayTransitionState is stored as an ivar inside CCUIModularControlCenterOverlayViewController
Sou wouldn’t I have to use two ivars?
Ugh I’m so dumb
same
bruh temporaryBlockStatusChanged sounds like a notification handler... you should be able to post a notification.
If its not then you can still get the instance through other existing objects. Open an instance of SBFDeviceLockOutController (or the instance you want reference to) in FLEX and then look at Object Graph (See Objects with References to This Object), keep repeating till you reach an object that is either shared instance or reach an instance that you can access via your hook (or where ever that code is).
^ 2nd part also applies to you @tepid olive
gh0st so smart fr
@shut stag when r u gonna pay dgh0st and others for the amount of help they have provided here and gave birth to a new gen of developers
🤨
jew putting all da money in his pocket


Ok
Os I’m confused a bit
Despite mshookivar, it’s not actually a hook you run code in, right
Doesn’t it just give the value
Right, its bit misleading but its the same as valueForKey:. Which I'd recommend over using MSHookIvar as it has better error handling capability and worst case it'll have more readable crash reason.
valueforkey? you mean i can turn this
XXX *_sendButton = MSHookIvar<XXX*>((id)self, "_sendButton");
to this
XXX* _sendButton = [(id)self valueForKey:@"_sendButton"];
Yeah if the class is KVC compliant
i have no idea what that means
KVC = Key Value Coding
how can i make sure?
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/KeyValueCoding/index.html
Conceptual information about how to access a Cocoa object's values using keys.
nice didnt know that
Oh ok
curious why youd need to cast self though

I usually dont need this but on some situations it would throw me an error

i probably needs to pay attention on why and when
probably when you hook a class then have no interface
but id isnt necessary here
easiest fix is to define it and subclass it from NSObject
i go overboard on casting but even that is a little much for me kek
@twilit jungle knows
runtime error > compilation error


:fr:
:fr:
nfr > frcoal

ARC go brrr
wait i actually have a question
with ARC
everything that exists is referenced by something else that exists

so where does the chain end
at shared instance

or if you just wrote shit code then when you finally use the exit syscall
and the OS cleans it up
exit(69);



colon 🇫 🇷 colon
My favorite solution
Memory management is for virgins
unironically for global resources its not a bad idea

macOS 12's Maps app disables the new Globe view and 3D city maps on Intel Macs.
However, if you turn on a debug flag, they work just fine.
https://t.co/RuLW1UqzDy
321

we need arm for a 3d sphere !!
wtf how do people discover these
someone probably thought "why the fuck would we need arm to render a sphere" and theyre right
then searched to enable it
but thats a debug flag
reverse engineering the new binaries then probably
pretty cool but yeah what a bruh moment
the AI stuff makes some sense because theres dedicated hardware but this aint it
live text also works
these are both M1 only on Intel
dick move apple
live text + 3d maps
probably some more booleans and configs
and maps is like 10 fps
nah, ML engine does help it
i prefer slow than nothing
i bet they didnt even try to optimize this
if maps is like 10 fps then its gotta be on a shit gpu
literally intel hd 4000 can render a sphere bro

maps 3d is pretty high res
@primal perch i'm running this on a shit gpu too
I do love M1 exclusive features
@lime pivot have you considered using GroupActivities for NewTerm? 
How bout you work on gettin one of those 3d spheres near the top of your arm
Some biceps might help u get some bitches
Yeah i could tell. Didnt come out smooth
Not my best work

Ill go back to the lab
yea go cook some more meth

Please stop posting a gif of me.
I know I like cocaine
But no point in trying making it a issue
CCUIOverlayTransitionState *tss = MSHookIvar<CCUIOverlayTransitionState *>(CCUIModularControlCenterOverlayViewController, CCUIOverlayTransitionState).clampedPresentationProgress;
Just errors
@twilit jungle
Anything I’m doing wrong?
What types does MSHookIvar take vs what types are you providing?
CCUIOverlayTransitionState *tss = MSHookIvar<CCUIOverlayTransitionState *>(CCUIModularControlCenterOverlayViewController, CCUIOverlayTransitionState).clampedPresentationProgress;

anyone know how to use zkswizzle
if it’s what i think it is sileo uses it, so that might help you
MSHookIvar<type>(object, ivar_name);
ZKSwizzle is... basically Logos without the preprocessor
it's a must for macOS introspection
Also it’s talking about an unexpected interface name but the name it’s the name of the ivar
aaaaaand i'm completely failing at it
@tepid olive can you not use it as a property?
Nope
Now it’s giving a different error when I remove them
The interfaces
==> Compiling Tweak.xm (arm64e)…
Tweak.xm:41:3: error: unknown type name 'CCUIOverlayTransitionState'
CCUIOverlayTransitionState *tss = MSHookIvar<CCUIOverlayTransitionState *>(CCUIModularControlCenterOverlayViewController, CCUIOverlayTransitionState).clampedPresentationProgress;
^
Tweak.xm:41:48: error: use of undeclared identifier 'CCUIOverlayTransitionState'
CCUIOverlayTransitionState *tss = MSHookIvar<CCUIOverlayTransitionState *>(CCUIModularControlCenterOverlayViewController, CCUIOverlayTransitionState).clampedPresentationProgress;
^
Tweak.xm:41:76: error: expected expression
CCUIOverlayTransitionState *tss = MSHookIvar<CCUIOverlayTransitionState *>(CCUIModularControlCenterOverlayViewController, CCUIOverlayTransitionState).clampedPresentationProgress;
^
3 errors generated.```
Sorry if it’s big
That’s when I removed the interface names
hahah, you know I actually had this idea yesterday
Where did you get this info?
iPhone dev wiki
Read the whole page then
note: i'm completely guessing here
you could, maybe, create a category for your class, create a property for your ivar, and then synthesize the ivar in the implementation and set the property to that ivar
i might be horribly wrong
and/or mshookivar might make more sense
tl;dr don't listen to me
the 2nd parameter is a string of the ivar name








is that why scoop is always with him








