#development
1 messages · Page 182 of 1
15.8.2
I was just guessing because that’s usually the issue
can i even get an iOS 15 sdk anymore? lol
i'm not a huge xcode guy
but lemme install that sdk
if i can get all this shit working and my end goal works ima buy a handful of iPhone 7's for a cluster
I love when removing and readding a console log fixes a problem
sure does sound like a problem that's going to appear again
i think im getting a lil closer
cat@archimedes tbdump % xcrun tapi stubify -o APFS.tbd /tmp/APFS
error: cannot read file '/private/tmp/APFS': truncated or malformed object (load command 2 fileoff field plus filesize field in LC_SEGMENT_64 extends past the end of the file)
cat@archimedes tbdump %
ok i got my .tbd 😄
https://github.com/arandomdev/DyldExtractor was the useful tool at the end
i’ve never been this annoyed at zed in my life
it themes the selected line color with transparency only sometimes
other times it’s solid and it really annoys me
even though i provide a transparency in the hex color
it does whatever the heck it wants anyway
ok cool sweet i got it 😄
hey guys how do phones detect 3d depth, would it be possible to inject a video and the phone thinks its a live camera and can detect the depth or is that not possible from a tech perspective?
kinda like Face ID but I dont wanna bypass Face ID lol
turn off passcode?
By sending hundreds of laser rays onto your skin and determing the distance
Are you german perhaps?
I know a good video about that
if you’re referring to tinder i doubt they use true depth
so it's more likely just an avanced video analysis to determine if it's a face etc => meaning higher chances of making a video inject possible and bypassing it, correct?
I sent a FR
Apple don't let you access to the truedepth camera

yea
but that wasn't the point
i assumed this but didn’t know for sure
Yeah obv they don't
i'm dumb
it's apple bro
they let you use the back one tho don’t they?
they do
Ky
just saying it's not some trick like samsung's moon zoom
yea
They do?
I thought it wasn’t possible mb
i dont get it
whats with it
oh
i see i think
destiny L
hey guys is this nice
no cos it’s not neovim
theres vim motions
vscode literally kills my ram
🤢
using zed has been a blessing for performance
Not an ide
Text editor ?
editor is the term i use
Its more than that if you ask me
Wrong
i’ve used vscode for years and it was fine at best
at worst it took several seconds to switch to a different place in a 200 line file
like, i click, and several seconds later, the cursor FINALLY is placed there
Is the difference just integrated compiler and debugger ? Because you can configure that with extensions
never had that issue
No offence but you need a new pc 😂
i have a 16gb ram m1 mac
if i need a newER pc to run vscode wtf is wrong with vscode
i’m running a text editor not a triple a game
i was literally about to say the exact same thing
Nah i see
idk, you still need to configure all of that
good, use your own config and workflow, not someone else’s
I was just saying that's what makes it an editor, not an ide
my same neovim config can be used on a high end pc, a shitty laptop, raspberry pi, random vps whatever. And will still run at extremely fast performance while being able to do anything an ide can do but efficiently and in a way which suits how i like to work
real
RAAAAGH NEKO ATSUME
🐈
I LOVE NEKO ATSUNE !!!!
No that’s nebula
com.icraze.nexus_1.2_iphoneos-arm.deb.flac on soulseek
mods ban
You should actually turn it into flac audio and it’s just a data stream of the deb 
Get this:
Check Soulseek.
It wasn’t working for me when I last tried it
how do you use soulseek woe
Great
you can just search icraze
just search icraze
but it doesnt work for me either anymore
Supporting british slander
Yes 👍
@kind herald i think you need to fix your ports fr
it isnt searching 
woeis
am i even soulseeking correctly
yes
Ok try again
❌
do i actually need to set this up or something
Possibly
awww
memememememe
burger queen
SA-CURRITY? WE GOT A COMPLICATED ORDER
Vim
How did you do all this
Oh wait it's just another ide
I thought that was vim
Although nexus doesn’t cause bootloops it does cause random resprings i guse
false it could be CoreGraphics
can y'all pardon my dumbassery here
what is the whole deal with entitlements? if i clang compile a simple .c file doing some very privileged things
is there a possibility I need to deal with these entitlements?
Highly depends on those aforementioned “very privileged things”
APFS.framework
Hm
tbf it does look like a TUI
Not too sure of the realm of apfs entitlements
That's what I was thinking at first
i can make a call to APFSContainerGetBootDevice and get disk0s1 back properly
APFSContainerGetMinimalSize, APFSContainerResize are failing and i'm starting to suspect entitlements
is there another existing tool out there already i can use to shrink a container?
Disk utility, I think?
my google fu shown nothing in that regard tho
iOS
Oh
😛
Well that’s slightly more convoluted
[sudo] password for mobile:
Boot Container: disk0s1
Error: Failed to get minimal size for disk0s1 -536870174
whatever the F error -536870174 is
living off the land on an iDevice sucks and i'm hesitant to even call it *nix
Not permitted
that sounds like entitlements
(i was about ready to port this code to macos to get strerror access
what is the quickest way to get entitlements bypassed/this compiled with entitlements?
(i assume i need to go hunt down some com.apple.private..... value which i can do myself but entitlements are weird to me coming from linux/bsd/solaris/hp-ux/aix/etc)
(maybe com.apple.private.security.disk-device-access ?)
i think i did it successfully wtih ldid
what
then who mf
how can I make the app closed when cmd+q pressed on objective-c app?
it has a blurred background so you can see my wallpaper
then the colors took a bit of tweaking lol
isn't that normal
It didn’t close when I hold the keys
did you hold it or press it
Pressed
hey fellas, its Otz here, how can I bypass vcam detection?
how can i compile my tweak from my macbook and add it to my iphone
death.
make clean package?
gmake >>>
is their any tutorial / guide i can follow?
you probably mean rootless?
just compile with make clean package THEOS_PACKAGE_SCHEME=rootless
so i think my weekend goal is to get the linux-apple patches isolated from their git and grafted onto linux 6.9
i'm pretty sure it needs some modifications but they may just be kind of minor from what I understand about apple silicon - but there is a new PowerVR rogue driver that might be useful for A10's GPU
ohhh tysm, i installed the .deb with filza, how do i uninstall the .deb i installed?
can you help me with a code thing rq?
i have code but idk if it works
i want it to be after i type "/shrug" it says "shruuug"
yes btw this is my friends code
im just making it because i have the jailbroken phone
it looks so chatgpt generated
real
It shoud just be orig%(@"shruggg");
why is nothing coloured in the second screenshot
I think
Something must be wrong there
idk i just installed VS Code
i tested the tweak on my phone but it didnt work
after i type "/shrug" i want it to put the work shrug after it on anything im typing on
Why not use text replacement ?
- (void)insertText:(NSString *)text {
if ([text isEqualToString:@"/shrug"]) {
%orig(text);
NSRange range = NSMakeRange(self.text.length - [text length], [text length]);
self.text = [self.text stringByReplacingCharactersInRange:range withString:@"¯\\_(ツ)_/¯"];
} else {
%orig(text);
}
}
%end
will that work?
I'd use text replacement
but if you really want to use that
hook -(void)setText:(NSString*)text;
ok thanks
thats it?
%hook -(void)setText:(NSString*)text;
No 
%hook UITextField
-(void)setText:(NSString*)text {
if ([text containsString:@"/shrug"]) text = [text stringByReplacingOccurrencesOfString:@"/shrug" withString:@"¯\\_(ツ)_/¯"];
%orig(text);
}
%end```
it was a joke lol
smh

why would you want to do self.text = ...
just run %orig(text) with your modified string?
%hook UITextField
-(void)setText:(NSString*)text {
if ([text isEqualToString:@"/shrug"]) {
text = @"¯\\_(ツ)_/¯";
}
%orig(text);
}
%end```
isnt that what op wanted?
ye
still erroring
@young valve
Updated it
What's the error 
if ([text containsString:@"/shrug"]) text = [text stringByReplacingOccurrencesOfString:@"/shrug" withString:@"¯\\_(ツ)_/¯"];
^~~~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/objc/NSObject.h:13:8: note: forward declaration of class here
@class NSString, NSMethodSignature, NSInvocation;
^
Tweak.x:3:50: error: receiver type 'NSString' for instance message is a forward declaration
if ([text containsString:@"/shrug"]) text = [text stringByReplacingOccurrencesOfString:@"/shrug" withString:@"¯\\_(ツ)_/¯"];
^~~~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/objc/NSObject.h:13:8: note: forward declaration of class here
@class NSString, NSMethodSignature, NSInvocation;
^
3 errors generated.
make[3]: *** [/Users/noah/Documents/tweaks/discordcommands/discordcommands/.theos/obj/debug/arm64/Tweak.x.416566bd.o] Error 1
rm /Users/noah/Documents/tweaks/discordcommands/discordcommands/.theos/obj/debug/arm64/Tweak.x.m
make[2]: *** [/Users/noah/Documents/tweaks/discordcommands/discordcommands/.theos/obj/debug/arm64/discordcommands.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [discordcommands.all.tweak.variables] Error 2```
Odd
what the error about?
#import <Foundation/Foundation.h> at the top
I forgot the most basic stuff 😭
what do i put there?
What nightwind said
so #import <UIKit/UIKit.h>?
It says foundation bro
No replace UIKit with Foundation 😭
Foundation is the name
ohhhhh
#import <discordcommands/discordcommands.h>```
It says the error
i dont think im understanding you, by foundation do u mean the name of my project?
No there is a framework called "Foundation". This is irrevelant from the error. It can't find the file discordcommands.h
finally got it
thanks bro 👍
ok so for text replacement would it look like this, and how can i make this work?
@interface UITextField (Private)
- (id)delegate;
@end
%hook UITextField
- (BOOL)delegate:(id)delegate shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
NSString *currentText = self.text ? self.text : @"";
NSString *newText = [currentText stringByReplacingCharactersInRange:range withString:string];
if ([newText containsString:@"/shrug"]) {
newText = [newText stringByReplacingOccurrencesOfString:@"/shrug" withString:@"¯\\_(ツ)_/¯"];
self.text = newText;
UITextPosition *endPosition = [self endOfDocument];
self.selectedTextRange = [self textRangeFromPosition:endPosition toPosition:endPosition];
return NO;
}
return %orig(delegate, range, string);
}
%end
^
^
bro aint making a tweak any time soon 🙏 😭
fr 😭😭😭
but can u help me lol
idk i just steal icrazes code
where is that?

@interface UITextField (Private)
- (id)delegate;
@end
%hook UITextField
- (BOOL)delegate:(id)delegate shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
NSString *currentText = self.text ? self.text : @"";
NSString *newText = [currentText stringByReplacingCharactersInRange:range withString:string];
if ([newText containsString:@"/shrug"]) {
newText = [newText stringByReplacingOccurrencesOfString:@"/shrug" withString:@"¯\\_(ツ)_/¯"];
self.text = newText;
UITextPosition *endPosition = [self endOfDocument];
self.selectedTextRange = [self textRangeFromPosition:endPosition toPosition:endPosition];
return NO;
}
return %orig(delegate, range, string);
}
%end```
😭😭😭
you... do realize that posting the same code over and over won't really be an incentive for them to help, right?
gn tho
im going to sleep again
Average white name
Me personally
seems Ive removed Application Scene before, Im using storyboard, I copied it from new template but it doesnt work correctly(most options are disabled)
how can I make it back?
Not sure where to put it but i feel like this'll help a ton with preserving apps using apple's OnDemandResources system
if you boot the application running an app using it (you can confirm this if the app has an OnDemandResources.plist file), then you can find a list of urls to all the assetpacks in /var/containers/Data/System/something.appstored/Documents/Persistence
you'll find a sqlite database called storeSystem.db (or odr.db on older ios versions)
to help people find this in the future imma just list some keywords
odr.itunes.g.aaplimg.com
OnDemandResources
ODR
NSBundleResourceRequest
app thinning
AssetPackManifest.plist
OnDemandResources.plist
.assetpack
wtf
there was one earlier about picking an animal that may lay eggs at some point in their life
and it had a bunch of elephants and armadillos
Pretty sure its the bag
image recognition happened
FUN FACT THESE URLS EXPIRE IN LESS THAN 7 HOURS
SOMEONE DUMPED THEIR DB 7 HOURS AGO FOR ME AND I TRIED DOWNLOADING THE FILES AND IT DIDN'T WORK
UGH I HATE APPLE SO MUCH
In this code when i type /shrug it doesnt replace it with "¯_(ツ)_/¯" whats wrong with the code it looks fine?
%hook UITextField
-(void)setText:(NSString*)text {
if ([text containsString:@"/shrug"]) text = [text stringByReplacingOccurrencesOfString:@"/shrug" withString:@"¯\_(ツ)_/¯"];
%orig(text);
}
%end
Is that method being called
you guys know this thing right
do you know if theres a way to remap the multi touch that you get when holding opt
so like this is the full app width
and i wanna remap it so that the far edge of the trackpad reaches the far edge of this
obviously im assuming theres no "intended" way to do this
but im wondering more if theres like something you can inject or some workaround to mess with the bounds that apple detects the app in or something idk
No
how does that differ to the app's Assets.car file? might be misunderstanding
yeah i know
its amazing
you can even force it to always be on with sticky keys
think of it like a graphics tablet
but instead of a stylus you use your fingers
as in you eventually just learn where things are on the screen proportional to your trackpad
yeah
i wanna make the bounds smaller because im not used to it lol
that was the whole point of the thing i said earlier
for the record it only works on ios-compatibility apps
there’s some method in snapchat that has like 350
I forget what’s the asm calling convention for that
well the method exists 
@grave sparrow what function even requires 32 arguments
👍
why can't you just make it take one big argument
tf u passing with 32 args
racial slurs
based
Assets.car appears to be a file for things that come with an app, OnDemandResources is a content deployment system apple made
apps can use this to download files at runtime, resulting in smaller file sizes
a game i'm reverse engineering uses this system to download files as they're needed cos otherwise it'll be 9GB lol
Ahh I see, thanks for sharing
i hope it'll help people
i spent dozens of hours reverse engineering ios stuff to figure it out 😭
it was worth it though
At least it wasn’t some obvious path lol
if anyone was wondering what all that APFS shrinkage was for...

"setup assistant' will reduce your APFS to bare minimum and create an ext4 partition on your nvme, then either extract alpine or debootstrap debian
iOS seems to have a fucked up GPT w/ protected MBR - the GPT is fucked up compared to mac or PC - and i have to use a patched gptfdisk to do the modifications
you managed to get booting off the nvme in the device working?
last time i used linux-apple i had to use my pc as the storage
i got it working with sandcastle's kernel
i haven't gotten it far enough in linux-apple yet but if sandcastle can i don't see why this can't
What about something like arch arm
can't see why not tbh isin't alarm a tarball too?
also prolly fairly easy to bootstrap from pacman
No, you have to buy it again for the new device
it is a tarball
what font did you use in detail
ez-pz
That’s whatever the system font is
With some slight customisation
it looks way too rounded to me
can i have the font file 😋
if it’s custom
thats one of the system fonts lmao
its sf pro rounded i think?
if i were to guess semibold
so sf pro rounded semibold
i believe i exploded it with this
so
a lot 
oh idk then
scrollEdgeAppearance.largeTitleTextAttributes = [.font : UIFont(descriptor: largeTitleDescriptor, size: 0), .foregroundColor : gradientColor]
}```
clues
yeah .rounded
mix of bold and rounded it seems
UIFont.systemFont withDesign(rounded)
with bold
sooooo that means
sf pro rounded bold
@proud geyser question answered
It's the perfect time to say
true
DETAIL
thanks mate
sadly i just killed detail
(its becoming a settings menu item)
It’s so joever
Did you use multiple hashtags
no
bitches and how’s
It’s fucking tiny now
🤨
Discord you fucks
Huh?
Idk I saw some logging
meow meow meow meow meow meow meow meow meow meow meow meow meow
wasn't me
ok its only small on mobile
it was me sorry
DETAIL
you have to capitalize it
EXACTLY
DETAIL
this is messing with my head
Only for detail
dental
DETAIL
(Detail)
I love how the navigationtitle appears
its like shouting at you lmfao
DETAIL
𝓓𝓮𝓽𝓪𝓲𝓵
I love how the cells don’t get highlighted when you click them

Probably my terrible ui setup breaking it
(UIKit wouldn’t have this issue)
🗣️🔥
SwiftUI try not to have decent ui’s be generated behind foreach’s
Kicked from ONO for using swiftui
:/
is a prime contributor to peardb
shhh
what happened to cxdxn1
zefram mentioned
Would it be possible to make a tweak that just installs a .mobileconfig?
or webclip?
just... host a website with the file and go to the file
install it via settings
true
i fw that damn
thanks
I love that icon
https://cdn.discordapp.com/emojis/1216803437162004561.webp?size=48
<33
it didn't wink
🥲
but looks good
it would be hard to see that anyways
actually i think it’s pretty visible
noo why does it reset back 
(yes i do know that discord has to loop the gif)
Pro tip: Don’t alias the command alias to a command that opens VSCode (which invokes your zshrc on startup) in your zshrc.
💖 1.42K 🔁 81
wake up babe tihmware upstream merged into fr fr
doesn’t have to
you can have it play only once
I meant a wink
does discord actually respect that
why am i getting seputil not found when i've literately added libexec to PATH.
this happened before since i added the actual executable seputil to PATH (which is wrong) but this time i've just added libexec and this is happening
i've restarted newterm and i've rejailbroken with checkra1n - no luck
nvm its working now
weirdly everytime i restart Newterm i have to run source ./zshrc for it to work again though

who is bertrand serlet
some french guy that works at apple?
wow
Have you actually bootstrapped
if he has a terminal, yes
what is your shell
is it actually zsh
Plot twist, it's bash
plot twist x2, it's dash
fish
fire
someone did this for you? I want it as well
oh no, nother dopa skid https://x.com/YcS_dev/status/1796732876949737846/photo/1
People gotta let rootful die
“SaiGonAPT” we all know that shit is just rootful procursus
procursus lol
last 3 commits were in like, in april jan and december
so it finally died huh
btw wtf happened to cameron
bro is gone
ig still barely active on the proc mastodon
but
cameron is a real enmity enthusiast now
if you mean cameren then yea
different dude
arent we all
nah just capt
oh ok
Active development is being one on a PR
If you use the testing component, theres a shitton of updates
Nick Chan is in charge
oh fr
happy to see it's still alive after like 4 years now
And i use the masto every day 😛
I designed it to never be reliant on one person
Always able to handoff to trusted individuals
yes i am
Let's create the wildest home screen effects that iOS has ever seen!
Demo Project: https://github.com/bryce-co/AnimatedAppIcons
Text post for this video: https://bryce.co/animated-app-icons/
That’s actually cool
lmao yeah
you should watch this guy's other videos
his reverse engineering content is amazing
he showcases it so cleanly
Cattok is my favourite
yeah
I thought this was gonna be some boring shortcut bs at first but no
same
saw this the other day
I have the demo installed on my phone
insert wwdc "the same api's that we use".png
Saw that today
The thumbnail
haven't watched it yet
Watch it
It’s amazing
All his content, actually
Same
icraze spotted in the wild
icraze spotted in the wild
iCraze YT leak
icraze spotted in the wild
where is this
icraze 0day
icraze -1day
icraze -4day
icraze -8day
icraze -16day
icraze -32day
icraze -64day
icraze -128day
icraze -256day
He's using Swift
Yeah but it’s not SwiftUI it barely gets a pass
Let's gooooooo
Oh also private api’s are based so
fair
SwiftUI is the actual issue tbh
Swift is fine as long as your code is good
SwiftUI :/
I have four different extensions simply to get a gradient in this text
And only one of them is related to Text 
Guess which one is the simplest one
Extensions are Color, Image, Text and UINavigationController
wouldn't you just mask the text?
or you could just use .foregroundStyle (iOS 15+)
Here’s the kicker
This doesn’t work for navigation title text
Except for four different and convoluted extensions 
All this for my list cells to not highlight when selected
yeah and doing a lot of things in swiftui involves modifying the underlying UIKit, at which point like what's even the point of SwiftUI
Precisely
icraze_unsigned_int
iOS 18
trolley
Apple moment
anyone by their mac? need a quick thing
me
send output of otool -l on and extracted iPhone X kernel
if you have none just get 16.7.8
On an extracted?
yes
I gotchu
Yes
90% chance ^
not really
does that suffice
yes now open it in a hex editor go to offset 9945088 what do you see
the kernelcache i assume, and not the file i just sent you
yes
a lot of linkedits?
that and then some
ok so I'm not crazy
highlighted byte is your offset if you were curious
nvm i fucked it up because hex fiend moment
wym
point stands
coming from someone with zero experience in this sector
i would think the code would start where its not completely blank
ok I figured it out
when did you extract the kernel
approximately ten minutes ago
had an extracted ipsw lying around
just hit the img4tool -e -o
check it out, theirs this random extra header
so its a 16.7.8 specific weirdness?
or
so two different people have the same bug on a different computer, at the same time(related to bvx2 extract)
or
apple force pushed the ipsw
the macho file offsets are wrong
which raised a red flag
there being a random header thats exactly that size off?
the code I was using yesterday parsed it fine
hm
what the fuck
????

so does this mean apple updated the ipsw after it went live???
cause thats a slight difference 
0x1C 28 byte different
ok
its the ipsw thing has huge implications
luckily its not that
so whar tf is it then
somehow the bvx2 lib has a bug
I just extracted on my phone which uses an older procursus ipsw bin

ok ok ok
got it
img4tool and ipsw img4 extract and pyimg4 extract for bvx2 is now all broken
but... ipsw has a different extractor for bvx2... that one works.... wtf
@faint timber theres something wrong with the 10,3 kcache
img4tool is having none of it
10,6 is fine
oh my dumbass script extracted it and didnt rename it properly 
the money shot
what about img4lib
the one siguza claims is the most correct
the issue is with bvx2
pretty sure img4lib also deals with bvx2?
we know its because the fileoff from the segment 64 is exactly 28 bytes off and that so happens to be that cafebabe 28 bytes
and yah feedfacf is also a header
ah wait
I didn't think about FAT
huh, cafebabe is actually normal magic for a Mach-O FAT binaries
and that header has number of arches as 1
so the problem is apple is dumb why the hell did they ship a fat single arch
@faint timber the only reason ipsw "works" is because it handles the FAT already
lol
but look
so why does otool not tell me its fat @wooden yarrow
nope
anyways
false alarm
the only issue here is consistency with ipsw code
I told blacktop about it
wasn't apple this time luckily
I just patched tihmware to support fat patching gg
I'd say xpf if you are going best of all worlds
about to install this amazing jailbreak on my dual screen machine
@frail cedar @wooden yarrow @grim sparrow
Despicable
it works too it's so funny
Yeah
so real
i've been having this same thought since like 4th grade but Pi is such a magical number it's crazy that it even exists
who knew circles could apply to so many things
i forgot the mathematician @placid kraken
true...
I'm considering making a video like this but for another API
would be interesting to see
Would be mostly why / how to use rather than full on going out and bout on IDA so i've hesitated for now
About which topic ?
It’s a private CALayer API
hm what can you do with it
blocks out the view from appearing in screenshots & screen recordings, but still appears on the user's screen @wooden yarrow
oo
wait that's like the secure no screenshot thing
that like whatsapp uses
cool
wait @slender glade does that mean whatsapp is using priv api
💀
wtf
I think stability
but this api is really one that needs to be public
for one it doesn't really have any negative consquences
and it has a lot of positive ones
stability
used by the biggest apps
💀
if it wasnt stable rn i think those apps would die
oh those crash regularly
awesome vid
@wooden yarrow I'm hesistating even harder rn cause
his video is like super high quality explanations and stuff
and mine is gonna look like a fork with nutella on it
do you always need to try and beat everything that's good
this is like why i scrap 3/4 of my projects 😭
😭
also what if it looks like a copy and shit
but like a made in china level copy
if you're not trying to intentionally make it bad
it's going to be fine
lol
you need to start somewhere with anything anyways
make the vid🙏🙏
real
i'd also be interested in watching your video
+1
🥹 🫡
wait actually from now on what if you simply didn't scrap projects you don't think are good enough
i would love to see more shit
frfr
note taken
if i compile a .deb with make clean package THEOS_PACKAGE_SCHEME=rootless and send it to my phone and use sileo to install it, will that work?
it should
ok thanks
do uk how to code bc my code isnt working
you can send it here along with the error you get
ok
%hook UITextField
-(void)setText:(NSString*)text {
if ([text containsString:@"/shrug"]) text = [text stringByReplacingOccurrencesOfString:@"/shrug" withString:@"¯\_(ツ)_/¯"];
%orig(text);
}
%end
im not getting an error but when i install the .deb and goto imessage and type /shrug it doesnt replace it
chances are that function isn't being called with /shrug as an argument
ohh
you should add an NSLog before the if statement to see what's being passed to it
im new to this so could you explain a little more what an NSLog is
You might think of it as a print statement
oh
Except functionally not the same
#import <Foundation/Foundation.h>
%hook UITextField
-(void)setText:(NSString*)text {
NSLog(@"[MyTweak] Called -[UITextField setText:%@]", text);
if ([text containsString:@"/shrug"])
text = [text stringByReplacingOccurrencesOfString:@"/shrug" withString:@"¯\_(ツ)_/¯"];
%orig(text);
}
%end
Try that
ok thanks :)
but yeah nslog is basically a print statement, you'll need to use console app to view them from your device (idk what the windows equivalent would be)
i have newterm3
oh ok
this wont fix it its just gonna make it print the error right?
I don't think you can mutate the arg like that
maybe u can but
Check your bundle filter btw
yeah it should help you figure out why it's not working
just got an error
oh ok
Make sure you’re not injecting into like springboard accidentally
Since that’s the default
what's the error
I was thinking that but now I’m just curious what it’ll do
no idea tbh
com.apple.springboard
better to just make a new string and call orig with it
Yeah that will do it
so i should delete that?
ok
make[3]: *** [/Users/noahlefebvre/Documents/tweaks/discordcommands/discordcommands/.theos/obj/debug/arm64/Tweak.x.416566bd.o] Error 1
rm /Users/noahlefebvre/Documents/tweaks/discordcommands/discordcommands/.theos/obj/debug/arm64/Tweak.x.m
make[2]: *** [/Users/noahlefebvre/Documents/tweaks/discordcommands/discordcommands/.theos/obj/debug/arm64/discordcommands.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [discordcommands.all.tweak.variables] Error 2```
confused lol
Rambling to myself
ok lol
what about that error
is that the full error? it doesn't say much
thats everything
if ([text containsString:@"/shrug"]) text = [text stringByReplacingOccurrencesOfString:@"/shrug" withString:@"¯\_(ツ)_/¯"];
^~
1 error generated.
make[3]: *** [/Users/noahlefebvre/Documents/tweaks/discordcommands/discordcommands/.theos/obj/debug/arm64/Tweak.x.416566bd.o] Error 1
rm /Users/noahlefebvre/Documents/tweaks/discordcommands/discordcommands/.theos/obj/debug/arm64/Tweak.x.m
make[2]: *** [/Users/noahlefebvre/Documents/tweaks/discordcommands/discordcommands/.theos/obj/debug/arm64/discordcommands.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [discordcommands.all.tweak.variables] Error 2```
lol didnt realize that
replace ¯\_(ツ)_/¯ with ¯\\_(ツ)_/¯
why lol
idk why it'd give that error tho
An escape sequence is a combination of characters in a string, typically starting with a backslash ("\"). It represents a special character or command that may not be directly printable. Common examples include \n for a newline, \t for a tab, and " to represent a double quote within a string.
Cause it thinks your string is trying to be an escape sequence
see here, when i edit my text i had to do 2 to tell discord i just want a backslash
it worked lol
cool
are you developing just on your phone?
btw, the only change i made was add a print statement
im on my macbook
open the console app and plug your phone in
why?
Swore I smelled iPhone development disease from the lack of scrolling up in the terminal 
lol
So we can see if the tweak is working
^
lol
which console app did u recommend?
apple stealing our ideas again
iOS taking mad L’s when Apple can no longer steal tweak ideas
what is
Text replacement
ok i got console appened lol
find your phone in the left column and start logging, then in the search bar enter [MyTweak] and hit enter, then try test your tweak again
Just make a tweak that adds shit to the text replacement db 
ok
fr lol
ok
its showing alot of random stuff lol
when you type do logs appear related to what you typed?
ye
do they help show why your tweak isn't working?
no
send a screenshot of the logs
np
bye
thanks for all the help
np, feel free to ping when you're back
@worn thunder when you get a chance hit me up in dms i have a few questions about locsim
where's isOdd
!isEven
return !isEven(number: number)
}```
what language is this
looks like swift
func isEven(_ number: Int) {
return !isOdd(number)
}
#define isEven(x) !isOdd(x)
bool isOdd(int number) {
return sin(number * M_PI) > 0;
}
tr
func isOdd(_ number: Int) -> Bool {
return !isEven(number)
}
func isEven(_ number: Int) -> Bool {
return !isOdd(number)
}
Recursion
and this is how you achieve perfection
#define perfection “stack overflow”
#define achieve "cause"
erm actually the compiler can think infinite recursion is UB and thus remove it entirely 🤓
@timid furnace do you know where is the ping / the commands to fix app not installing ?
Cc @empty violet
should be in jailbreak pins
I’ll check
i am almost done doing the copy-pasta of palera1n into my project 😮
i'm pretty much back in linux land now back to my comfort zone i'm only using libusb for pongo fuck iokit
then i gotta deal with libssh joy
i mean, iokit is documented
yeah but i'm lazy
and like, technically you can still use libusb on macOS
exactly why i'm going that route 😄
what are you even doing
linux booter / setup assistant
for ios?
for iPhones yeah
cool
i also wanna get the linux-apple patches isolated and grafted onto 6.9
because i want to start fucking with that new PowerVR driver
according to asahi lina the asahi gpu driver is useless for A10 because of substantial arch differences which makes it sound like the A10 GPU is still very heavy rooted in PowerVR and I think mostly the differences are a loss in floating point precision
and if that's the only real substantial change apple made then, adopting the new PVR rogue driver should be faiiirly easy enough?
if that's the case I could probably get a GPU backed postmarketOS on my NVME and "functional"
so ngl
i wanna start an editor war with kim jong cracks in the about box



