#development
1 messages · Page 122 of 1
average iPhone 12 mini
@radiant idol I see what u mean
I have also noticed my phone being a little big more laggyer than normal
can someone assist me in debugging my code
this is all the information I have
there is no other info given to me by appl
Did you get that from the syslog
yes
Arm developer studio is a whopping 5.5GBs. All to create a 100 byte assembly file
with formatting

cg rect oop ?
right, that's about 5gb in and of itself
CGRect* oop = [[CGRect alloc] init];
ret
Please tell me this has a dark mode
I can't find the button, I must be blind by now :/
what editor is it
makes sense
arm development studio. It's pure trash.
I might just set up FVP on my linux
or maybe just a simple gcc macro
in sublime or something
why not use VSC
just a style preference, I like sublime because it's written in C and fast
fair enough
vsc is fast if youre pc is good enough
and if you can spell properly
cough cough
im not the only one who notices i guess kek
"nO mOm im PlaYiNG forTNiTe!1!"
vim
not slow for me 🤷♂️
stop
oh
You've never had your phone glass spontaneously shatter?
how did i go from understanding how to make a patchfinder the other day to not knowing how to make something simple like a UIMenu
google says the Note7 just randomly explodes too. crazy to think about
hey chat, are the vnode offsets for iOS 16 & 15 similar?
I'm looking to use kfun's vnode functions, but while looking for the offsets for my device (iOS 15), I see the same values as what kfun (iOS 16) has
for context: 0x78 is the same value for ubc_info in kfun (iOS 16), the same can be said for other offsets like io_count, use_count, vnode_flag & write count (I've also used the kernelcache on device and the values remained the same)
So just wondering if any of the values have changed at all between versions, thanks (:
Probably not
UIMENUUUUU
alrighty.
I hate that I can read that
thanks for the help @frail cedar (:
Yes.
no. stop.

i cant even begin to explain what it is
or how i made it
or anything actually about it
it just
exists
gameseagull newest hack 
@indigo peak how often do you use GamePigeon/GameSeagull unironically
gamepigeon, idk like a couple times a month
gameseagull, basically never
cheating ruins the fun 😭😭
in fairness UIMenu is such a weird API design
gm
@indigo peak is it meant to have that gap
or is that just a cephei thing
oh yeah thats definitely a cephei thing
happens in the demo and in kiyoharu
Imagine cheating on an iMessage game
correcting the alignment of header cells is so painful. haven't found a solution that works for all devices / display scales
im pretty sure theres a call you can make to get the device width?
not device width, the margin used on the table view sections, and then the extra margin used on the headers
ah i see
it's subtly different on each device class, plus can also be affected by your font size, and I don't want to hardcode anything
fair enough
Basicallg my entire irl friend group has trollstore so we do cup pong eight
And we just keep doing redemption until someone misses lol
@indigo peak do you have an ipa version of GS ?
I don’t know a single person irl who uses TrollStore
fr
because you don’t go outside

Typical
is it worth buying a xr on 16.3 that occasionally just panics out of the blue?
or: is there any tool to diagnose if this is just software or hardware issue? i already have physical access to the device
Friendly fire detected 🤓
Smh
it's most likely a battery issue
could be faulty battery, faulty logic board connection, improper logic board connection
frequently for XR series and those around it people doing repairs may forget the logic board cover and that can make that problem worse
you are rolling the dice on it tho
it coild always be due to water damage as well
could
ugh alright yeah you can hear something loose inside the phone when you shake it lol
lol, have to test if it panics when you dont move it at all
Are you able to see what the panic is?
yeah it is a pretty long panic log but i dont got it rn
just searched a bit and as far as i remember the log looked something like: "panic(cpu 5 caller 0xfffffff019766bfc): "i2c0::_runInterruptMode Timed out waiting for interrupt; last write status 00210118 int shadow 00290100 xfer 00000000 fifo 00000002 for device ad5860" and there already a post on ifixit that basically says that its a taptic engine / dock flex issue. this would also apply to the device i was speaking about because the taptic engine on the xr is pretty broken
lmfao
In all my years of being alive I’ve only seen 2 jailbroken phones that weren’t my own in person
one was my best friend who was also into jailbreaking in the Electra days, and the other was an extended family member
back when the ios version was compatible with both unc0ver and Electra
if i do a uhm
MSHookMessageEx
how do i undo that
like is there a way to unload a hook
just return orig straight away 🧌
horror
i cant find anything on the substrate docs im gonna assume an unhook method doesnt exist
Ugh lucky
I wish I could find someone I know who has TrollStore
Epic reveal
gm
couldnt it always do this?
like i just use the cc button in other apps and it works just fine
least cursed signature
+ (void)loopUIColorWithBlock:(void (^)(unsigned int index, SEL selector, NSString *name, Method method, Class uiColorClass, UIColor *colorInstance, NSString *hexColor))block;
I used to jailbreak people's phones with electra in 7th grade
...they did consent/ask you to do it first right?
yes lol
im just picturing you going around plugging peoples phones into your laptop and jailbreaking them
nawh i wasn't that shameless 😭
would
yeah
I think i jb'd like 8 phones total
did you get bank
Same but it was with a private 0click jailbreak and they didn’t know about it
i wonder if they ever restored rootfs.
nah
LOL
this dude getting pinned more than a hooker in vegas holy hell
Can’t wait for inevitable “[News] Developer Alfie CG admits to deploying spyware on unsuspecting individuals” 
And I bet it’ll be @radiant idol too
Had me for a sec
I plan to develop a 0click jailbreak at some point as a project
But obviously won’t open source
that bluetooth 0 click thing that ian beer demo'd looks rly cool
you just broadcast a jailbreak signal in your home 💀
“Drive past [ADDRESS] today for a free jailbreak!”
portajailbreak
byoj (bring your own jailbreak)
Personally would’ve called it Serotonin
That’s already taken though
💀
actually that sounds cool, maybe i'll try making one for iOS 12
iphone 5s and 6 ig
untethered jailbreak for ios 19.3 developer beta 3 coming soon
someone is gonna search in this channel for "ios 19.3" in a few years and this is gonna appear lmao
Wish I could disclose some of my 0days
👁️boot fr
this feels so extremely inefficient
+ (NSDictionary *)convertToHSVColor:(UIColor *)color {
CGFloat hue, saturation, brightness, alpha;
[color getHue:&hue saturation:&saturation brightness:&brightness alpha:&alpha];
return @{
@"hue": @(hue),
@"saturation": @(saturation),
@"brightness": @(brightness),
@"alpha": @(alpha)
};
}
[Utilities loopUIColorWithBlock:^(unsigned int index, SEL selector, NSString *name, Method method, Class uiColorClass, UIColor *colorInstance, NSString *hexColor) {
__block UIColor *(*originalColorWithCGColor)(id self, SEL _cmd);
MSHookMessageEx(
uiColorClass,
selector,
imp_implementationWithBlock(^(id self, SEL _cmd) {
if ([[preferences objectForKey:@"mode"] isEqualToString:@"Simple"]) {
NSString *key = [NSString stringWithFormat:@"%@Color", index % 2 == 0 ? @"primary" : @"secondary"];
UIColor *colorAtKey = [GcColorPickerUtils colorFromDefaults:BUNDLE_ID withKey:key fallback:hexColor];
NSDictionary *originalColorData = [Utilities convertToHSVColor:colorInstance];
NSDictionary *customColorData = [Utilities convertToHSVColor:colorAtKey];
return [UIColor colorWithHue:[[customColorData objectForKey:@"hue"] doubleValue]
saturation:[[originalColorData objectForKey:@"saturation"] doubleValue]
brightness:[[originalColorData objectForKey:@"brightness"] doubleValue]
alpha:[[originalColorData objectForKey:@"alpha"] doubleValue]];
}
return [GcColorPickerUtils colorFromDefaults:BUNDLE_ID withKey:name fallback:hexColor];
}),
(IMP *)&originalColorWithCGColor
);
}];
how else could i do this lmao
im planning to mess with the saturation and brightness too thats why im returning all of them
instead of just the hue
anyway lets test i guess
this is gonna be interesting
oh it throws me in safe mode lmao
LOL
maybe i should average the sat and bri
that makes more sense actually
fuck maybe i shouldnt average the opacity
you know you don’t HAVE to use every single feature of objc in one code snippet right
kek
the way you write your code, you utilize every single objc feature somehow. Blocks, dictionaries, MS API, objc runtime, etc
lol i guess its necessary idk
you can write simple code, it doesn’t have to be optimized to hell 😭
i literally was thinking it was unoptimized enough that im allocating a dictionary of the hue, sat, bri, and alpha of every single color im hooking
and theres like
100+ iirc
anyway i see what you mean lol
Ofc you’d say this
Optimized by iCraze with some if statement ordering 🔥🔥
🔥
i have to determine what the new color should be at application time otherwise it would overwrite my advanced color keys and i dont want that
i want them to be seperate
lmao
and actually this is exactly why i didnt tint the big toggle
i want to show how it changes depending on the colors you pick
i could reloadSpecifiers whenever a simple color changes
guys my clion trial runs out next week
Has anyone set up an apt repo with download stats before
No clue how to do it without selfhosting
the best i can think of is hosting the files on GitHub releases, but that poses a problem when you use a custom domain
is it a good idea to encode my json into b64 when exporting to users
would it reduce the size of the text significantly enough to warrant it
atria encodes to b64 and im pretty sure it actually makes it longer than shorter
lmao
just compress it
and b64 I think
like lzma or some shit like this
please just make it plaintext json 😭
yea i was going to, im "exploring my options"
Thoughts on this resolution for a 13" MBA
does decompression speed really matter here
youre only gonna be importing colors pretty rarely
im sure the user can wait a second or two
unless you mean > 10 second slow
in which case i agree
I sent this to the complete wrong place my bad
discord compact is crazy
how do you live with that 💀
dont use it then????
fr
huh
@hasty ruin you like SWIFT!

BUDDY YOU'RE DONE
New TrollStore compatibility update incoming 🔜
This is actually true though
So I'm not done
(breaking news: 14.0db1 not supported)
i wonder if pb1 has it 

I WAS GONNA MAKE THAT JOKE

I do not like you Alfie
aw
Even after you gave me the Jade gift code D:
Fine
iCraze is my favourite now
Too late
Okay I'll switch to mobile
Let's settle this in #1189739986707288154 to stop everyone else here witnessing an incredible battle 
@radiant idol becoming mentally unstable live?
I have received multiple threats
Update: I added a random whitename to thread by accident
Common Alfie L
Ss pls
Can't
Still doing damage control from this
me

theoretically, could you accidentally add me to the thread

no, alfie got their rights removed

It’s basically me @radiant idol and @hasty ruin just talking about nothing
And Dhinak occasionally
no leaks
Not in that thread 
It’s not just a non-white name thread though
Yeah but it woukd be an accident
No LEAKS!!
Don't worry I am sealed well

Brainfuck should belong to every programmer's brain because it is so simple, elegant, and great
real
true
c with literally just classes and no virtual or exceptions goes pretty hard (basically iokit )
??
My message got deleted
Hang on
I think this might be @radiant idol 
FRAMING iCraze
HUH
wasnt me
only one way to find out
rune is better than jade

hm
😭
Me wondering why no work when no %orig; 💀
"its literally a vtable" -- guy who literally just passed comp sci 201
fr
i'm gay
gay
i’m in 300 level courses and i don’t think most people know what a vtable is
my program might be a joke

at least i got above a D in discrete tho
skill issue etc
yeah skill issue
mov r8, [rdi]
call [r8 + 0x20]
arch issue
whats a vtable?
a table that stores virtual function pointers for a class
in c++
function pointers to virtual functions
capt not be pedantic challenge
wow
so when am i going to start seeing some REAL functions
so you can lookup functions by name?
ios 18
function real() {
return true;
}```
what language is this
done
[redacted]script
Retirdscript
run this:
int main(void) { unsigned long long a = 0x333a20776f656d; return !printf("%s\n", (const char*)&a); }
scared of real programming languages
c reverse shell be like
meow :3
is this code getting a peice of memory from a specifc adcress and casting it to a string?
oh
a real [redacted] who is not afraid of running code from the internet
someone should code golf ejecting my dvd drive on linux
i think users should decide what kernel runs on their hardware!!
only uses stock ios
honestly i would i just wanna run unsigned or self signed code permanently with whatever entitlements as mobile at the least
i dont relaly need root
Trollstore is pretty good
on my macbook i just leave SIP/SSV/etc on cus i can still load whatever i want
europe moment but true
tbh apple should just integrate trollstore as the eu complicane
@limpid star any particular reason why PACMAN doesn't work? sorry for the ping
real
probably youre using it wrong
^
if i want to I should be able to install some kerneal written by capt that will bootloop
no, they said it literately does not work at all when it comes to bypassing PAC
based
Ive successfully recreated atria makefile
it should be a thing but crapple and no legislation so
you dont own most apple products
the only appel product you can say you own is the mac
I had a tweak I tried to compile and couldn't get it working so I just generated a new makefile and pasted all the code in
oh
yeah idk
i've been making this project for a while now and i don't want it all to go to waste
it is what it is ig
pacman?
procursus already did that
wha
like the arch package manager
the bootstrap?
yes
tbh we should use whatever zefram uses for managing packages from now on
ask @grave sparrow
@grave sparrow what's zefram
Is there a tweak to use ur camera to record a video while like just on the homescreen or on another app
i didnt say it wouldnt work at all, i just said it hasn't been demonstrated to work on any apple os
the people who found it ran their own bare-metal OS
you probably could get it to work on macOS but ios/ipados would be a struggle due to no kext support

who dropped the ellekit files
Oh sorry I did and they fell under my desk and I couldn't find them
Based on what?
hey guys- is there a way to run Clutch on windows?
New use for old Mac other than paler1n 👍
@radiant idol what do i do for this thing? (u added it yesterday)
@interface NSObject (Private)
- (id)safeValueForKey:(NSString *)key;
@end
also add a @ i nfront of "_backgroundView", my bad
wdym
^ this one is the correct one
yea
What 😭 Tweak.xm:833:6: error: use of undeclared identifier 'nowplayingview' [nowplayingview updateLSBGartwork:0]; ^ Tweak.xm:845:21: error: no visible @interface for 'MRUNowPlayingView' declares the selector 'animateArtworkToLarge' [nowPlayingView animateArtworkToLarge]; ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~ Tweak.xm:847:21: error: no visible @interface for 'MRUNowPlayingView' declares the selector 'animateArtworkToLarge' [nowPlayingView animateArtworkToLarge];
@interface MRUNowPlayingView : UIView
@property (strong, nonatomic) MRUNowPlayingControlsView *controlsView;
- (void)animateartworktonormal;
- (void)animateartworktolarge;
- (void)updateLSBGartwork:(int)arg1;
@end```
```objc
MRUNowPlayingView *nowPlayingView = (MRUNowPlayingView *)self.superview.superview.superview;
if(tapgespressed == 0){
[nowPlayingView animateArtworkToLarge];```s
https://www.sparkdev.me/package/com.spark.sneakycam
might not work past ios 14 so
case sensitive
at least for line 833
nah why would u make this 💀
loool
its just doesnt exsist
, oops
bru
thers 2 of these, btw
how did u miss that
and the other actully had it
sparkdev w
w?!
my iphone can be a bodycam and i can still use it /j
yeah i did say case sensitive
lmao
just start using camelcase everywhere
yes u did
it's not a bad habit
except C code
sup
dont use camelCase in C code.
it's objective c 
I don't use naming schemes
ikik

SCREAMING_SNAKE_CASE >>>
question is there a cli syslog tool that works on rootless?
anotine
every makefile ever
theres one package I found but it just segaults
anotine!
that is a gui
;p
oh
for what tho
idevicesyslog no? something like that
something on device
not on device unfortunately
all I know of is antoine
rip
Do I need to learn how the syslog works and write my own?
i mean there's oslog on procursus but i dunno if that works
that segfaults
oh
https://github.com/dlevi309/oslog
well if you want to fork it ig
Looks like it has a pr that just never got implemented https://github.com/ProcursusTeam/Procursus/pull/1406
bru
then this is the most recent fork probably
i could build it
what's the target anyway
I'm building it rn
probably
yeah it has full redistribution rights
what does this mean exactly?, the handelatp method is bad, somthing in the method is bad?
(sry for SS i cant copy paste)
is handleTap a new method
yes
did you add %new above it
yes 
i think having the rest of the log would help but
idk
it just might
ok, but like the entire thing, (sry idk logs and what info is in them)
yes the whole thing
once I have time I'll write the logs section in Tweak-Tutorial
or @cloud yacht COUGH COUGH
lazy
smh
what do you think I'm doing #development message
oh i thought you meant crashlogs not logs
or maybe thats interconnected
you can add < and > around links and it'll get rid of the embeds btw
i cant really copy paste
i was talking to wilson
ye i know. just forgot apple docs has a useless huge embed
@acoustic imp are you sure you dont still call your old "animateartworktolarge" in that method somewhere
no idk how to read crashlogs
all have the upercasess now
I'm not so sure about that one, chief
yeah not the right one
I wish I had the time to rewrite my tweaks from scratch
night i concted my phone to my real mbp and omg layoutsubview on that view i hooked gets called a million time
this is why you don't use layoutsubviews 
i told you
i do get random safemodes
I literally have a whole section in my tweak development tutorial as to why one should not hook layoutSubviews unless absolutely necessary
lol
yea ik, i jus fg, which method it was
y'know, you can get the date and time from the header of the log
that's how these are named
idk how to read it
lol
are you sure
yeah this is the one
@acoustic imp by the way, here is what i would honestly tell ya to do:
You use Dopamine as your primary jailbreak, right? I can see how much you're struggling with your macOS VM. What I would say is that you could sideload XinaA15 2.X on your device and use that jailbroken environment for testing. You could install oldabi-xina there and then develop with WSL on your Windows PC instead.
bruh my ssh isn't working
kex_exchange_identification: read: Connection reset by peer Connection reset by 10.76.217.10 port 22
doesn
t even work over localhost
i don't know how to fix it but your function is defintetely causing issues
VM - Compressor failed a blocking pager_get
cause some lock problem is happening
but its gona be about the same, bc id have to ssh into wsl, the VM is also better bc i can actully look at crashlogs
this is the function in all it ugly glory ```objc
- (void)handleTap:(UITapGestureRecognizer *)gestureRecognizer {
if (gestureRecognizer.state == UIGestureRecognizerStateEnded) {
MRUNowPlayingView *nowPlayingView = (MRUNowPlayingView *)self.superview.superview.superview;
if(nowPlayingView){
if(tapgespressed == 0){
[nowPlayingView animateArtworkToLarge];
tapgespressed =1;
[nowPlayingView animateArtworkToLarge];
[self setsettings];
}else{
[nowPlayingView animateArtworkToNormal];
tapgespressed =0;
[nowPlayingView animateArtworkToNormal];
[self setsettings];
}
}
}
}``` not sure how its doin that
it worked fine yesterday before nightwind was helping me fix stuff
no you dont need to SSH into WSL
and you dont need macOS to look at crrashlogs
then how do i look at CLs ?
you can get oldabi on domaine
ik, but i dont want to
KrashKop
krashkop doesnt always work
it's the same crashlog tho
KrashKop just symbolicates them and makes them look nicer
and so does console
we're talking about non-macOS
It does work 
see
i'm aware
I wish we had Cr4shed
fr
those crashlogs were OP
libmryipc not coming back
it works on rootless now
someone recompiled and got it to work
he's learning debugging!
so true
ok nvm
ok does anyone know why my ssh isn't working??
whats the error
well if you're using keys i'd just
copy keys again
dunno if you disabled password auth tho
go to ur like /home/.ssh/ (like 'remebered' hosts or sm) and delete the like one w the ip ur tryign to ssh
I don't rememebr what I did with this device but password should still be enabled
also, ssh -v should give you some more info
@cloud yacht
verbosity
Nothing useful (at least to me) OpenSSH_9.3p1, OpenSSL 3.1.1 30 May 2023 debug1: Reading configuration data /home/shorty/.ssh/config debug1: Reading configuration data /home/shorty/.ssh/config-custom debug1: Reading configuration data /etc/ssh/ssh_config debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug1: configuration requests final Match pass debug1: re-parsing configuration debug1: Reading configuration data /home/shorty/.ssh/config debug1: Reading configuration data /home/shorty/.ssh/config-custom debug1: Reading configuration data /etc/ssh/ssh_config debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config debug1: Connecting to 10.76.217.10 [10.76.217.10] port 22. debug1: Connection established. debug1: identity file /home/shorty/.ssh/id_rsa type 0 debug1: identity file /home/shorty/.ssh/id_rsa-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_9.3 kex_exchange_identification: read: Connection reset by peer Connection reset by 10.76.217.10 port 22
got here no SM 
Its not known
jus try it
its not in there
ok nvm then
cause its never connected via this ip
what is an "SM"
SafeMode
oh
it's not even needed
ik, but for 'make do'
modern package managers with just do it automatically so
is nice
oh you have it installing over ssh
yes
i mean just add it back if you want
guess it's time to start looking at logs on the device end?
though sshd logging is probably off by default
idr what it is 😭
INSTALL_TARGET_PROCESSES = SpringBoard should do that automatically
Not sure how I would do that, but I did just check and password ssh is on (also I have no authorized keys on the mobile user)
I added that for you
its there
the INSTALL_TARGET_PROCESSES = SpringBoard
im jus blind
thx artfull again after-install:: install.exec "killall SpringBoard"
how cursed is your install that this doesnt work???
this should do it automatically...
idk
you'd have to modify sshd_config in /var/jb/etc i believe and then reload sshd
I'm not on rootless, but yeah I'm in the /etc/ssh/sshd_config file rn
🤞
wtf
safemode 😭
ok switched to root (which did have a password) and used passwd to set it but ssh still doesn't work
it worked fine w that
the atrocities
by default logs should go to /var/log/auth.log and be set to LogLevel INFO
set it to DEBUG1 in the config and then reload the daemon (or reboot userspace if lazy) and check the file after a login attempt
oop_zeFRAME
start commenting stuff there and see what the issue is
il just call it(wit flex) and see if its the problm
whihc i thouht ab doing but i fg
i did chnage stuff in it yesterday maybe i messed sm up
I ❤️ flex
ah well thats why
ye ik
(also that's how crashlogs used to look back when cr4shed was around)
it was so nice
also idk what it means
iv never used cr4shed 😭
basically it's saying that the valueForKey: approach doesnt work there for some reason
file doesn't exist after setting the config option, userspace rebooting cause idk how to use launchctl and then trying to ssh in
ah, probbly the plp fuckery
so I guess use MSHookIvar<...>(..., "_platterView") instead
what is SyslogFacility set to in the config?
also thx
Commented out (AUTH in the comment)
wait are you colorblind
genuinely curious
or do you just like the theme
yea
no what im saying is that for me, those colors are red and green
in your screenshot, they're orange and blue
no theri blue oragne
oh yeah uncomment it
but even if commented that would be the default
always been like that for me
so idk
no im saying that with the default theme, they're red and green
oh ok, ididnt chnage it
here hold on
Yeah I though that was how it worked
¯_(ツ)_/¯
well, the alternative is just manually running sshd
then logs should output to stderr
yeah no file
go to you github settings and change it to this one
gracias
@radiant idol if i had to hook layoutsubview, could i just make a method that like every like 500 times layout... get called update the values instead of doing the math everytime? (dmed context)
hmm that could be an issue ```
/usr/sbin/sshd
/etc/ssh/sshd_config line 13: keyword Port extra arguments at end of line
/etc/ssh/sshd_config: terminating, 1 bad configuration options
yeah but
that doesn't explain why you can't login
if a specified config is invalid it should use default
commenting out that line allows me to ssh
Port 22 44
yeah that's invalid lol
yeah idk what I was doing when I did that
I have usepam uncommented yes so is by default no and it can't login without pam?
and se privilagfe speration uncommented to no
maybe these are smth procusus does and the default doesn't work
it's supposed to be
Port 22
Port 44
for multiple ports
but if you're on a jb with dropbear then i'd exclude 44
i can send the default config, it's part of the tar i think
its working now so tbh I don't really care
but yeah looking at the makefile pam is used
who knows
yeah so if the file is invalid, it defaults to the one with pam off, and then it fails
i got no idea about that
would only resort to logging once again
su still works and I don't use this device that often so I'll be fine
though that's for the ramdisk target
pam dirs are created regardless tho
This article explores how
to write iOS applications with Objective-C without making use of
traditional Storyboards
Thanks
howd u do that do quick
I opened the pins
needs to be a sticker
@torn oriole
plz
I can't sticker

@ aaron
@ carmen
Why is it showing errors?
bc it thinks it C no objc
It is objc
because VSC is dumb and will only accept objc syntax in *.m or *.mm
just tell it its objc
Now what should I do

ignore it!
truly a skill issue

@tough shadow
because Apple is dumb and used the same extension for their non c compliant header files
you can compile c header files with a c++ compiler
💀
LMAO
Where?
bro really edited the message
can you compile c++ headers with a c compiler?
yeah cuz i didn't read his question
no
depends
only if they dont use any c++ specific lang features
if they contain c++-specific features that aren't properly ifdefed, then obviously you will have syntax errors
where do I click?
true
where i circled, botom right
define modern c++
c++20
meh
??? not even c++17
generally you can get by with c++11 or c++14
yeah but that's like using java 8 in 2024
iirc they recently upgraded form 11
not really
there a lot of cool lang features since then
yeah i was being hyperbolic with my analogy
Whats a good example of something to log
ah yes using c++ in a c header file 
this is common
some ide's even default to it for some reason
oh you're right
i always am
hmm ok
cringe
it would fit better with the semi-skeuomorphic design
ik every time i tried any constraints it would crash :/
what crash
try adding a @try {} @catch (NSException *e) {} around your code and logging the e
that should show the error w/ constraints
i use this method for testing constraints
pretty good actually since constraint exceptions are pretty explicit
Error: NSLayoutConstraint for <NSLayoutXAxisAnchor:0x2813e9d00 "UILabel:0x1028ac8e0.centerX">: A constraint cannot be made from <NSLayoutXAxisAnchor:0x2813e9d00 "UILabel:0x1028ac8e0.centerX"> to a constant. Location anchors require being paired.
UILabel *activeLabel = [[UILabel alloc] init];
activeLabel.text = self.aimbotEnabled ? @"Enabled" : @"Disabled";
activeLabel.textAlignment = NSTextAlignmentCenter;
activeLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightBold];
activeLabel.frame = CGRectMake(0, 0, 0, 0);
[activeLabel sizeToFit];
activeLabel.translatesAutoresizingMaskIntoConstraints = NO;
// activeLabel.center = CGPointMake(self.aimbotStatusView.frame.size.width / 2, 15);
[self.aimbotStatusView addSubview:activeLabel];
@try {
[NSLayoutConstraint activateConstraints:@[
[activeLabel.centerXAnchor constraintEqualToAnchor:self.aimbotStatusView.centerXAnchor],
[activeLabel.topAnchor constraintEqualToAnchor:self.aimbotStatusView.topAnchor constant:5]
]];
} @catch (NSException *e) {
NSLog(@"Error: %@", e);
}
interesting
yeah ik
should work, right?
- (void)didMoveToView:(id)arg1 {
%orig;
self.aimbotStatusView = [[UIView alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height, 100, 100)];
[self updateAimbotStatusView];
[self.view addSubview:self.aimbotStatusView];
[self.view bringSubviewToFront:self.aimbotStatusView];
}
and self.aimbotStatusView is not nil right
k good
LOL
that’s right
ok i dont know
i thought it was because i was calling this
before self.aimbotStatusView was added to the main view
maybe add the label in that method but set the constraints in layoutSubviews? That’s what the method is for, so…
Idk just throwing ideas out there
🤔
default 23:28:11.561506-0500 MessagesExtension self.aimbotStatusView = (null)
default 23:28:11.562139-0500 MessagesExtension Error: NSLayoutConstraint for <NSLayoutXAxisAnchor:0x28371ce00 "UILabel:0x1014cf1b0.centerX">: A constraint cannot be made from <NSLayoutXAxisAnchor:0x28371ce00 "UILabel:0x1014cf1b0.centerX"> to a constant. Location anchors require being paired.
default 23:28:11.562278-0500 MessagesExtension self.aimbotStatusView = <UIView: 0x101481300; frame = (0 480; 100 100); layer = <CALayer: 0x2822192a0>>
what?
ill just add a guard clause
yea
constraints have issues when one of the views is null
yep
i just dk why it is null
lmao
@radiant idol you wanna know whats weird
[[self.aimbotStatusView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
didnt throw anything
which is weird
bc if its nil shouldnt subviews also be null
?
or like
subviews not exist?
so confused
multiplierLabel.frame = CGRectMake(5, activeLabel.frame.origin.y + activeLabel.frame.size.height + 5, 0, 0);
manual constraints 💔
stop
sending messages to null is allowed in objc
huh
i.e. you can function call on null
cool
so
didnt know that
UIView *e = nil;
[e addSubview:[UIView new]];
this is allowed
it just wont do anything
yea
somewhat cool to know ig

