#development

1 messages · Page 579 of 1

primal perch
#

penis

indigo peak
#

i honestly wouldnt be surprised

primal perch
#

scoopenis47&{}

indigo peak
#

ive been scammed

#

quick is 4:20

#

theres no more of a holy time than 4:20 than to share the password

primal perch
inner maple
#

How to attach a debugger?

#

To Xcode

#

Cuz like debugger unable to attach

restive ether
#

lol

inner maple
#

Well like my program wont run and it says that with, program ended with exit code -1, while it should just say “hello world” 😅

glacial matrix
#

put a breakpoint at the start of the program?

inner maple
glacial matrix
#

try xcode's "Analyze" command thingy

inner maple
#

What should I be seeing lol

glacial matrix
#

xcode should tell you if you have errors about your code

#

if it's crashing, you should be able to find crashlogs to see why it does, or use Console.app to see the process' syslog

inner maple
glacial matrix
#

check syslog and crashlogs

inner maple
#

this is just what iam trying to run

glacial matrix
#

breakpoint on L14 would be enough

inner maple
#

nope

#

yeah iam dutch LOL

#

yeah also have xcode 10.1

glacial matrix
inner maple
#

gone

torn oriole
#

Someone boutta make a hackintosh with a 2010 iMac serialtroll

primal perch
#

put some ram and an ssd in that bro

#

life changing

glacial matrix
#

this 2016 macbook runs high sierra, come at me

lime pivot
#

not the applecare of my 2010 imac 😧

restive ether
main apex
restive ether
#

yeah

ocean raptor
#

MEMO_PREFIX=/opt MEMO_SUB_PREFIX=/local make

#

MEMO_PREFIX is for like /opt/procursus or /private/preboot/procursus, MEMO_SUB_PREFIX is for /usr, MEMO_ALT_PREFIX is for /usr/local

#

it will work for almost everything

#

if it's on the mac repo it will work

#

because rootless still uses /usr

#

yes

#

basically take the normal path

#

then add /private/preboot/procursus to the front

#

if you are trying to do rootless stuff just MEMO_TARGET=iphoneos-arm64-rootless make

#

iphoneos-arm64-rootless will have differences from iphoneos-arm64

#

You'll also need this patch

diff --git a/makefiles/libiosexec.mk b/makefiles/libiosexec.mk
index 19f76726..cdb5b778 100644
--- a/makefiles/libiosexec.mk
+++ b/makefiles/libiosexec.mk
@@ -5,13 +5,13 @@ endif
 ifeq (,$(findstring darwin,$(MEMO_TARGET)))
 
 STRAPPROJECTS      += libiosexec
-LIBIOSEXEC_VERSION := 1.2-alpha1
+LIBIOSEXEC_COMMIT  := 04540ffb02cc25706f71ada20dc1cf60f6975d78
 LIBIOSEXEC_SOVER   := 1
-DEB_LIBIOSEXEC_V   ?= 1.0.20~$(LIBIOSEXEC_VERSION)
+DEB_LIBIOSEXEC_V   ?= 1.0.20~git20220121.$(shell echo $(LIBIOSEXEC_COMMIT) | cut -c -f-7)
 
 libiosexec-setup: setup
-    $(call GITHUB_ARCHIVE,ProcursusTeam,libiosexec,$(LIBIOSEXEC_VERSION),$(LIBIOSEXEC_VERSION))
-    $(call EXTRACT_TAR,libiosexec-$(LIBIOSEXEC_VERSION).tar.gz,libiosexec-$(LIBIOSEXEC_VERSION),libiosexec)
+    $(call GITHUB_ARCHIVE,ProcursusTeam,libiosexec,$(LIBIOSEXEC_COMMIT),$(LIBIOSEXEC_COMMIT))
+    $(call EXTRACT_TAR,libiosexec-$(LIBIOSEXEC_COMMIT).tar.gz,libiosexec-$(LIBIOSEXEC_COMMIT),libiosexec)
 
 ifneq ($(wildcard $(BUILD_WORK)/libiosexec/.build_complete),)
 libiosexec:
#

yes, but it won't work

#

wdym?

#

./build_tools/compile.sh pkgname

#

That will build for arm64 and amd64 macOS, and iOS 12-14

#

Depends on the package

#

multiple debs depending on if it's debianized

#

MEMO_TARGET=iphoneos-arm64 make base?

#

That'll have a /etc/passwd and /etc/group in it if under a different prefix, FYI

#

arm64

#

We never build or test for arm64e

#

I am going to tell you now

#

DO NOT BUILD EVERYTHING

#

it will fail

#

and some packages take ages

#

like llvm

#

Take a look at make help

restive ether
#

when the brew fucks with path

hardy glen
#

I still use brew

#

Might switch to pro on my hack

restive ether
#

it’s far from production ready

#

sadly the package volume isn’t the same size as brew but that mostly comes down to community support so w/e

ocean raptor
#

wdym?

restive ether
#
curl -LO https://cameronkatri.com/zstd
Intel: curl -L https://apt.procurs.us/bootstrap_darwin-amd64.tar.zst -o bootstrap.tar.zst
M1: curl -LO https://cdn.discordapp.com/attachments/763074782220517467/819588605999317022/bootstrap.tar.zst
chmod +x zstd
./zstd -d bootstrap.tar.zst
sudo tar -xpkf bootstrap.tar -C /
printf 'export PATH="/opt/procursus/bin:/opt/procursus/sbin:/opt/procursus/games:$PATH"\nexport CPATH="$CPATH:/opt/procursus/include"\nexport LIBRARY_PATH="$LIBRARY_PATH:/opt/procursus/lib"\n' | sudo tee -a /etc/zprofile /etc/profile
export PATH="/opt/procursus/bin:/opt/procursus/sbin:/opt/procursus/games:$PATH"
export CPATH="$CPATH:/opt/procursus/include"
export LIBRARY_PATH="$LIBRARY_PATH:/opt/procursus/lib"
sudo apt update
sudo apt full-upgrade
ocean raptor
restive ether
#

fuck offf

tepid olive
#

stfu

eternal crater
#

Cmon capt

tepid olive
#

dumbass

restive ether
#

@ocean raptor should probably update those straps they’re pretty old now

faint lionBOT
#

who tf

tepid olive
#

YES

restive ether
#

oh i forgot

#

you’re on cam-cation

ocean raptor
#

?

subtle grail
#

camcation

restive ether
#

yeah cam’s vacation from darwin related projects

subtle grail
#

oh true

#

i have been on suncation for the past 2 months 😎

restive ether
#

wtf sunchip

ocean raptor
#

Cause I was the one doing everything

subtle grail
#

ive commited like 10 times this year

restive ether
#

man.

ocean raptor
#

netctl monitor literally just prints that it doesn't exist

subtle grail
#

im gonna get around to it

#

one day

#

ive been really busy with a lot of other stuff rn

#

but

ocean raptor
#

np

subtle grail
#

eventually

restive ether
#

busy at mar-la-go

subtle grail
#

too busy shmoozing with trump

#

mb

restive ether
#

got the secret docs doe!!

subtle grail
#

‼️

ocean raptor
#

apt-file search iproxy

#

sudo apt install apt-file

#

I don't know what package

#

so I'm telling you how to find out

ocean raptor
#

cam-cation trol

pearl sail
#

???

#

Probably Cameron fucking a commit up trol

#

but honestly that make no sense since I was able to make a rootless strap yesterday

ocean raptor
#

neofetch is probably broken 🤷‍♂️

pearl sail
#

yeah it seems related to neofetch

ocean raptor
#

@grave sparrow

diff --git a/makefiles/neofetch.mk b/makefiles/neofetch.mk
index 9b474643..5dbb3496 100644
--- a/makefiles/neofetch.mk
+++ b/makefiles/neofetch.mk
@@ -4,7 +4,8 @@ endif
 
 SUBPROJECTS      += neofetch
 NEOFETCH_COMMIT  := 611117f4af527de3b81bc92c74ae976e130d39e6
-NEOFETCH_VERSION := 7.1.0+20210611.$(shell echo $(NEOFETCH_COMMIT) | cut -c -7) #TODO: Switch back to releases once a new version releases
+NEOFETCH_VERSION := 7.1.0+20210611.$(shell echo $(NEOFETCH_COMMIT) | cut -c -7)
+# TODO: Switch back to releases once a new version releases
 DEB_NEOFETCH_V   ?= $(NEOFETCH_VERSION)
 
 neofetch-setup: setup
pearl sail
primal perch
#

true

pearl sail
#

If you want I just PR'd a patch for neofetch that adds new idevices and also parses macbooks so it can better recognize them

humble citrus
#

I just set up BeEF, who should I "prank" (I hate that term). Legally btw

#

(On a vm)

weary heath
#

(Gone wrong) (gone sexual)

primal perch
#

cum

grim sparrow
#

Ty

primal perch
#

unfunny

grim sparrow
#

My age isn’t redacted unlike yours

#

It’s 17

primal perch
restive ether
#

L

primal perch
#

being 17 rip

grim sparrow
#

lol

restive ether
#

dont care

tepid olive
#

happy birthday @grim sparrow

grim sparrow
#

Ty

pearl sail
#

@grim sparrow Happy Birthday

grim sparrow
#

Ty

primal perch
#

@grim sparrow Happy Birthday

grim sparrow
#

Ty

primal perch
tepid olive
#

we should just rename this channel to #development-and-birthday-wishes

wispy delta
#

Are there any opensource package managers?

primal perch
#

zebra

#

sileo

ocean raptor
#

Cydia

#

Saily

#

APT

#

pacman

#

rpm

#

brew

restive ether
#

aptitude

wispy delta
#

where can i find the source code for cydia for example

#

nvm i found sileo i can look at it

restive ether
#

cydia's is pretty bad, not even worth reading

pearl sail
#

Literal Spaghetti code and unreadable poorly formatted code

ocean raptor
tepid olive
#

dark mode

restive ether
#

new ios sdk things

restive ether
restive ether
#

not that it matters cydia might be the least posix thing ever made

#

why does cydia need coreaudio entitlements

glacial matrix
#

So you can listen to your 🔥 mixtapes

ocean raptor
restive ether
#

don’t care + ratio

ocean raptor
restive ether
#

hard

ocean raptor
#
  • ldid cringe
#
  • aptitude better
restive ether
ocean raptor
primal perch
#

as a "do not do this"

ocean raptor
#

😭

primal perch
#

nah its not his fault, it was just made before the conception of a linker

ocean raptor
#

-lapt-pkg? what's that?

tepid olive
#

libapt-pkg I guess

primal perch
#

libcum

twilit jungle
#

Its subtracting pkg from negative lapt

ocean raptor
tepid olive
#

oh fr

#

btw looks like Cydia did not actually hardcode an sbreload binary, it just copied the implementation

ocean raptor
#

cydia literally builds apt instead of using the system one 😭

#

lol

#

true

grim sparrow
vivid dew
#

back in the day you were only allowed to link system libraries

indigo peak
#

@primal perch day 4 of asking for birdpoop 7z woeis

ocean raptor
vivid dew
#

saurik was just thinking ahead in case cydia made it to the app store troll

ocean raptor
#

🙏

#

you know, tbh I'm surprised apple hasn't made dyld only load libraries from dsc and app bundles

#

seems like a great way to kill jailbreaking

restive ether
#

soon

restive ether
#

why are you president taft

lime pivot
restive ether
#

i guess that makes sense, considering part of it is just a web app

lime pivot
#

since it's not like UIWebView is broken in app store apps due to specific entitlements Safari has

untold river
#

pro tip

#

just update

restive ether
lime pivot
prisma grove
#

At this point I'm surprised he even used Objective-C at all and didn't just make it a C++ project with objc_allocateClassPair, class_createInstance, class_addMethod, and class_addProperty with objc_msgSend being called each time it was needed

#

It's the first result if you google the filename and it was too much effort to find a better one

#

So much less code needed if NSStringFromSelector was just used. I'm not exactly sure why it wasn't

#

I did check that one before I typed it and it has been a standard function since 2001 with Mac OS X 10.0

#

Is there any function on Apple docs that says Availability macOS 9.0+ or something that old

#

None of core foundation is sadly

restive ether
#

cydo is so cursed

prisma grove
#

Even kernel is 10.0 plus

restive ether
#

i hate the way it looks

prisma grove
#

so upsetting i need backwards compatibility can't just drop support for all the users of my programs there

restive ether
#

i have no idea why he packaged du into cydia instead of just setting it up as a depend in tele

#

that didn’t make much sense to me

prisma grove
restive ether
#

cam changed it

#

pretty sure that’s how cydia was getting the disk usage

hardy glen
#

anyone know why lldb would freeze up after connecting to debugserver. Waiting for debugger instructions for process 0. and lldb is frozen until the process is stopped then i get a signal SIGSTOP

#

Da fuq

#

Tried on both mac and linux

#

Same results

#

Everything breaks once u actually need to use it uhh

vivid dew
#

real af

restive ether
#

bozo

faint timber
#

@grave sparrow did you try a different springboard maybe the dump is corrupt and not ida?

plain python
#

@prisma grove @grave sparrow electra's version of cydia is really close to how saurik last shipped it anyways

#

since for electra I did not recompile cydia

#

I binary patched it

restive ether
#

remove platformized code cam go ahead

faint timber
#

@grave sparrow there is a bypass anyway tho lol

#

read the method more

#

theres other if statements that can skip the check look into those

primal perch
restive ether
faint timber
#

@grave sparrow that would be called a vulnerability

#

look at the pathways

plain python
#

probably, but it won't work very well

glacial matrix
#

That’s the thing: he wouldn’t. He’d have vim and some markets to collapse/expand sections

hardy glen
#

Idk about vim but neovim has collapsing/expanding built in

#

Folding

glacial matrix
hardy glen
#

Nano fr

ashen birch
lime pivot
#

gm

#

we did totally redo the repo.chariz.com backend, didn't put those icon redirects in place because it's honestly been so long since those were even in use

#

like 1.5 years ago now

#

I could though

ashen birch
#

i think it's just the old URL format for packages that haven't been updated since then maybe?

lime pivot
#

yep exactly

tepid olive
#

0x4beeaa7d
0x18f9ec25
0x7f63c74a

#

I was just memeing

twilit jungle
faint lionBOT
#
libswift (stable)

Swift runtime for iOS

Author

Kabir Oberai

Version

5.0

Price

Free

Repo
Bundle ID

org.swift.libswift

primal perch
ocean raptor
#

@untold river no

#

Concurrency is backported to iOS 13

untold river
#

so

#

eh it's a draft anyway

#

i'll fix the deps tomorrow

ocean raptor
#

Xcode 13.2

#

Ah

restive ether
#

it did delete it

#

yes

ocean raptor
#

||spoiler||

restive ether
#

oh

#

wild

#

joe

grim sparrow
#

trollin

hardy glen
#

Just woke up to a sileo update, its about to be a good day

restive ether
#

the one amy has been holding out on for like three months troll

ocean raptor
#

Who ghost pinged

restive ether
#

my favorite crash was the latin one

grim sparrow
#

the fix was also kinda dumb too

ocean raptor
#

Someone write a tweak to do Tapbacks from the notification

#

@indigo peak ^

indigo peak
#

?

#

Tapbacks?

high citrus
ocean raptor
high citrus
#

I would do it if I used imessage, but since everybody I know uses whatsapp, signal or discord it wouldn't make sense

primal perch
#

notificationView.tapbacksEnabled = YES

pearl sail
#

charge .99 for it

ocean raptor
pearl sail
#

QUICK

ocean raptor
primal perch
#

no

pearl sail
#

Cam really thought

primal perch
pearl sail
primal perch
#

<@&558709886397972481>

ocean raptor
#

Bro

#

I owe a $1 fine to the library

pearl sail
#

L

ocean raptor
#

They didn't send me a text that it was due

pearl sail
#

@ocean raptor Get around it by reporting the book you forgot to return as satanic and they will remove it from the library. Then complain that you shouldn't owe $1 for a satanic book

ocean raptor
#

Yes, dune is very satanic

pearl sail
#

Oh they will def ban dune

#

just say it include evolution

#

some conservative will get worked up on it

ocean raptor
#

I'm never gonna finish reading it KEKW
I've only read like 3 chapters

pearl sail
#

I don't even know why you picked it up. The whole series is long as fuck

#

Though it is amazing that someone thought of this back when ever the book got published

ocean raptor
pearl sail
ocean raptor
#

One time I had to read an article written by RMS for school

pearl sail
#

That sounds cringe

#

why would you need to analyze an article from him anyways

indigo peak
#

@ocean raptor like on that?

pearl sail
#

Yes

indigo peak
#

or on the preview when you 3D Touch it

ocean raptor
indigo peak
#

or on that

ocean raptor
#

I can't 3D Touch on Xr, so there

indigo peak
ocean raptor
indigo peak
#

Does that menu not exist in certain phones?

ocean raptor
primal perch
#

gm

pearl sail
#

gn

restive ether
#

why can’t apple fix quick reply it’s so fucking broken

primal perch
restive ether
#

good point

#

trillion dollar company btw

primal perch
#

3T

#

i’m glad they invested in memoji when there’s this shit

restive ether
#

yeah i’ve seen so many use cases for memoji besides some random dude’s twitter pfp

primal perch
#

see y’all on android in 2 years

#

depending on the market

#

i just don’t want a fuckin 6.5” in my pocket

#

ipad mini hours

weary heath
primal perch
native dune
gentle grove
#

why fr

restive ether
#

it’s tested

primal perch
#

these nuts are tested in your mom

primal perch
#

flexall 2 by @twilit jungle is launching tomorrow

vivid dew
#

@twilit jungle congrats

hardy glen
#

Omg can’t wait

hasty ruin
#

When is flexnothing coming out

hardy glen
#

Idk but flexextend is out and its purpose is to extend capabilities of flex. Press any button in the flexextend menu and its a guaranteed safe mode

primal perch
#

better be 0 rgb

hardy glen
#

Bet, i’ll send it over and you can write the jailbreak func. In swift or objc?

#

Okay

#

Yessir

#

Yea i won’t use it

#

Same

hardy glen
#

ill try dawg

vivid dew
#

why is it a struct

#

why aren't you just passing the progress as an argument to the function

hardy glen
#

@grave sparrow This is what ur getting lmfao

#

actually i'll add labels to the switches

primal perch
hardy glen
#

i did what the instructions said lmao

#

2 switches, black background big blue round button that says launch and a spinner shit

primal perch
ocean raptor
#

Why is this emoji 🎉 called tada androidskull I never remember the name

untold river
#

i always do :party_popper: then suffer later

gentle grove
#

do you have dimensia

hardy glen
hardy glen
gentle grove
#

typo

hardy glen
# hardy glen

@grave sparrow shit looks like its about to inject a deadly virus lmao

ocean raptor
#

Wait

#

Zefram jailbreak??

hardy glen
#

i guess so

ocean raptor
#

I thought zefram was a hooking library for macOS

hardy glen
#

i am just making a basic ass ui which he can edit later on

hardy glen
ocean raptor
#

Go ahead, add a button to select a custom bootstrap tarball

hardy glen
#

lmaoo, i am just adding all the UI shits and setting constraints so its easy for him to edit shit

ocean raptor
#

I've said it before and I'll say it again, all jailbreaks should provide an option to not bootstrap and just provide a binpack

hardy glen
#

like the font/title i just chose random ones. he can edit those and the zefram title will likely be replaced by a image

#

facts

ocean raptor
hardy glen
#

i also thought zefram was strictly for macos. Idk where capt is rn probably taking a nap

lime pivot
hardy glen
#

Thank you 🙏

ocean raptor
hardy glen
#

Bet i will do that, i am about to hop on cod

quaint wagon
#

@hardy glen So is there a application that has drop to build. So like I can learn that way?

ocean raptor
#

What's a .zeframpkg?

ocean raptor
#

So it's just a tarball with a custom name

hardy glen
quaint wagon
#

Like you drop say 'form" and it adds it to the screen but you can click on "edit" and it'lll open as code

hardy glen
#

Thats called a storyboard

#

I don’t use that

#

You can when starting out

quaint wagon
#

Yes but is there a application?

#

like that

hardy glen
#

@quaint wagon go to that link and learn

#

Learn swift for app dev, its not that hard.

#

Especially with hackingwithswift, you’ll cover basic fundamentals

#

He wants to learn app dev. Swift is the best choice especially because of the vast learning resources out there. Its pretty easy

quaint wagon
#

oh @hardy glen i had to remove xcode from my macbook pro because my m1 was running at 95degress C and i didnt have it open on anything.. so idk what was going on there

hardy glen
#

I have a m1 air and it barely gets hot

quaint wagon
#

yeah thats why i specified m1 because its usually not reasonable for it ever get that hot

hardy glen
#

I even have xcode running from external ssd lmao

hardy glen
#

Yea only the app though

#

Yea also the simulator shit

quaint wagon
#

i mean this is what it is without xcode installed.. Yeah everything is up to date so idk

restive ether
#

apple is dumb for having xcode setup the way it is

hardy glen
#

I think i can also symlink those but i didn’t

restive ether
#

so unneeded

quaint wagon
#

26.4c

hardy glen
quaint wagon
#

@grave sparrow

#

?

#

thats what im saying

#

...

#

i dont understand it

#

yes the back bottom was hot

#

the whole

#

thing

#

keyboard and all

#

203 degrees F

#

Enough to cook some eggs lmao

#

no 203 f

#

thats why i had to remove xcode

#

...

#

i was scared tbh

#

that my computer was going to catch on fire

#

dont have the money lol

#

got child support

hardy glen
#

Lmaooo bro was on boiling temp

quaint wagon
#

I swear

#

50$

#

is a pack of diapers for me

hardy glen
#

Nah bro ur computer should not be here rn

#

Lmao

quaint wagon
#

dead ass

hardy glen
quaint wagon
#

it shouldnt

hardy glen
#

Idk if this guy is trolling

#

Lmao

quaint wagon
#

wym>

hardy glen
#

I am talking about a pack of diapers

hardy glen
#

Boiling water is 212 F

quaint wagon
#

its actually more

hardy glen
#

It is

#

Even less

#

The normal boiling point is 99.97 °C (211.9 °F)

quaint wagon
#

google says 212

#

so ima go with that

#

lol

hardy glen
#

Yea dawg idk how ur m1 was at boiling temp

#

With a fan

#

Get it checked out

quaint wagon
#

Actually that fan sucks on the m1

#

the

hardy glen
#

The only time i was like okay this is getting hot when i played minecraft with native java on fancy graphics and like 16 chunk render distance

quaint wagon
#

@hardy glen you got mac fan control?

#

if so turn the fan all the way up... the fan sucks

#

it wont feel hardly no air coming out

#

lmao this dude 15 smg

#

smh

hardy glen
#

Lmao

#

Yea but its tough for m1 air no fan less room to breathe plus we using the graphics too

hardy glen
#

I got m1 air

#

There are no fans

quaint wagon
#

i got m1 pro...

hardy glen
#

Very nice

#

I don’t have a fan control

quaint wagon
#

yep got it when i got my taxes last year for 1300

hardy glen
#

Nice

quaint wagon
#

prob finna get the new 16 model... when i get my taxes here soon

grim sparrow
#

Some don’t

#

Which is why in sustained loads they throttle

indigo peak
#

@primal perch day 5

#

🥺

snow python
restive ether
#

the LTT solution

snow python
#

^

primal perch
#

would i do it, no

#

but it’s cheap and easy to reverse

#

if you really need some extra juice it’s aight

snow python
#

Yah, I haven't had any throttling issues on my mac yet, perhaps in a few years

hardy glen
#

Wen llvm 13 procursus @ocean raptor

#

I tried the procursus utils script on arch but idk if it worked correctly. Tried to make bash and got: install triehash. Stop

untold river
#

it's only in the AUR afaik

hardy glen
#

Ik

#

Aur is down

#

F

#

Im just installing ubuntu 18.04 on vm

untold river
#

L

#

cloud-innit

hardy glen
#

I using the server iso since i don’t want a DE

#

I just wanna update debugserver pepehands

warm cipher
#

Ayo why safari have problems with svg?

#

And how to fix bc I fucking don't wanna keep using png

ocean raptor
# hardy glen Wen llvm 13 procursus <@!897323786691563521>

It's WIP, you can build llvm 12 (the llvm version used by swift 5.5) from the ck/llvm branch, but it's a little bit broken. I'm waiting on a patch from Hayden before I merge it, but he's busy with life, so it will be a bit. You can probably remove sdkroot.patch and it will work fine as long as you set -isysroot manually

ocean raptor
snow python
#

Wen llvm 13

grim sparrow
#

ngl Discord are not the people I would take advice from on api latency and reliability

tepid olive
#

wow a whole 33 milliseconds

#

very impressive

grim sparrow
#

copilot no

warm cipher
#

*can barely notice

indigo peak
hasty ruin
#

Tbf 33ms is a good saving if you need to respond to as many requests as discord

harsh needle
torpid beacon
#

Where should I start for learning tweak development?

tepid olive
torpid beacon
#

Thanks. Do you know if it’s possible to get the cache of unread notifs?

glacial matrix
#

should be

torpid beacon
torpid beacon
#

thanks!

hasty ruin
misty cradle
#

LMAOOO

torpid beacon
#

Yeah sorta fell for that one

misty cradle
#

It’s the correct one

#

Just stop

torpid beacon
#

True

restive ether
#

frcoal tweak development guide

step 1: ask dgh0st everything

#

step 2: send ghostfr whenever possible

misty cradle
#

fr

restive ether
misty cradle
#

actual picture of Slim Shady

restive ether
#

hello

torpid beacon
restive ether
#

wtf why are you doing my mom

#

is it because i did your mom

hasty ruin
torpid beacon
#

👌 thanks man

hasty ruin
#

np

stark tide
#
@import Foundation;
@import UIKit;

%hook SpringBoard

-(void)applicationDidFinishLaunching:(id)app {

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hi!"
                                              message:@"Test."
                                              delegate:self
                                              cancelButtonTitle:@"Ok"
                                              otherButtonTitles:nil];
    [alert show];

}

%end```
restive ether
#

same

stark tide
#

Can someone explain what's wrong with this code, would be greatful

glacial matrix
#

you're passing self as an argument to an already deprecated API

restive ether
#

yourself

glacial matrix
#

did you change account?

#

oh

stark tide
#
@import UIKit;

%hook SpringBoard
- (void) viewDidLoad {
  %orig;

    
  UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Hello World" message:@"Test" preferredStyle:UIAlertControllerStyleAlert];
  UIAlertAction *action = [UIAlertAction actionWithTitle: @"Dismiss" style: UIAlertActionStyleDefault handler: ^ (UIAlertAction * _Nonnull action) {  NSLog(@ "Dismiss Tapped"); }];
  [alert addAction:action];
  [self presentViewController:alert animated:true completion:nil];


  
}
%end```
The self line appears to be wrong
#

wrong yes, sorry

glacial matrix
#

do you know what are the parent classes of SpringBoard?
and what class does an object have to be to use presentViewController:animated:completion:?

stark tide
#

Fairly new to obj-c, used to do swift.
UIViewController right?

glacial matrix
#

I think that would answer the 2nd question

stark tide
#

I'm not sure, the UIApplicationDelegate?

glacial matrix
#

I think that's a protocol, but online header dumps should tell you

stark tide
#

There seems to be loads?

restive ether
#

lmao

glacial matrix
# stark tide There seems to be loads?

is UIViewController in the list? if not, you'll have to find a class in SB that does so you can use this code.
... or make your own VC in a new window

stark tide
#
UIViewControllerInteractiveTransitioning.h   
UIViewControllerTransitioningDelegate.h   ```
Just these
#

TableViewController?

#

Just UIView?

#

Also this gives me undeclared window

#

@interface window : UIView
Like this?

primal perch
hardy glen
#

or learn uikit

#

that is also a choice

primal perch
restive ether
primal perch
#

can’t either

hardy glen
#

[self presentViewController:alert animated:true completion:nil]; Springboard is not a uiviewcontroller @stark tide

primal perch
#

idk what tesco even is

#

but that pic is funny

restive ether
#

i wonder if it’s like costco

#

@lofty juniper answer funny man

hardy glen
#

i think the second approach is deprecated in iOS 15 idk for sure though

lofty juniper
#

what

primal perch
#

what’s a tesco

lofty juniper
#

it's a store

restive ether
#

like a wholesale store?

#

or just a store

lofty juniper
#

no

restive ether
#

wtf

lofty juniper
#

a store

primal perch
restive ether
#

yeah that’s dumb

#

if it’s not wholesale it doesn’t matter

lofty juniper
#

?

#

i'm pretty sure there's like

#

no wholesale stores in the uk

tardy narwhal
#

blocked donotsee

restive ether
#

he do not see

primal perch
stark tide
#

Got it to work with 2nd option, thanks

restive ether
#

i was wondering where else shit came from

primal perch
#

fr

#

wtf its dbrug

twilit jungle
#

Stop hooking - (void)applicationDidFinishLaunching:(SpringBoard *)app in SpringBoard. Why go through the trouble of adding a method at runtime (hook) when you can just register for the notification?

primal perch
#

libtard destroyed

twilit jungle
indigo peak
#

trust me

#

i know

hardy glen
#
BrokePodsConnectionViewController *vc;``` can't this be a local
primal perch
#

yea it should be retained by the window

#

or rather the presenting parent controller

hardy glen
#

@stark tide do you need the alert to appear on top of every app, or only springboard

indigo peak
#

why are you guys taking apart this tweak so much

#

i finished it in an hour

stark tide
#
@import UIKit;

%hook SpringBoard

-(void)applicationDidFinishLaunching:(id)application {
  %orig;

    
  UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Hello World" message:@"Test" preferredStyle:UIAlertControllerStyleAlert];
  UIAlertAction *action = [UIAlertAction actionWithTitle: @"Dismiss" style: UIAlertActionStyleDefault handler: ^ (UIAlertAction * _Nonnull action) {  NSLog(@ "Dismiss Tapped"); }];
  [alert addAction:action];
  //[self presentViewController:alert animated:true completion:nil];
  [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:alert animated:YES completion:nil];

}
%end```
UIAlertController - (UIAlertView - Depreciated) Code for Message Popup
#

And this way without making own window works

hardy glen
#

if that works for you, it works for us

twilit jungle
#

does not work for me

#

but shrug

primal perch
#

im not the one running random tweaks on my phone so idc

#

do it in layoutsubviews for all i care

primal perch
#

considering he didnt know what alloc init does i think we'll take it

stark tide
#

Works for me on jb device but not jailed

grim sparrow
#

Are you trying to suggest that hooking springboard does not work jailed?

#

or am I missing something here

restive ether
#

lol.

primal perch
stark tide
#

What would work instead of springboard for jailed then?

hardy glen
#

jailed devices will not be able to hook springboard

#

only applications specific things

stark tide
#

And is their some guide or something to show what works for jailed and non-jailed?

hardy glen
#

nothing related to the system

hardy glen
stark tide
#

So would be better to just create own UIView then for an alert in jailed?

hardy glen
#

only application specific things, like youtube tweaks. for example cercube

hardy glen
#

what is the purpose of your tweak

stark tide
#

I would like the tweak to work in any sideloaded app on jailed device

#

For right now a simple alert box

#

I am not aiming big just yet lol

hardy glen
#

pick an application and start hooking it

#

instead of hooking system specific things for example springboard

stark tide
#

So there's no way to universally create a tweak which would work on any app to display an alertview?

#

If I pick an application and do hooks on that, it won't work on all then?

restive ether
#

that seems implied.

stark tide
#

There are tweaks that i've sideloaded onto different apps though and works fine, so surely if that works then something like an alertbox should also?

hardy glen
#

you would learn more if you just picked an application and start hooking instead of some universal thing

restive ether
#

yeah and they don’t hook springboard

stark tide
#

What would/could I hook instead that is universal?

restive ether
#

nothing

stark tide
#

How do some other tweaks do it then?

restive ether
#

by being jailbroken

hardy glen
#

.

stark tide
#

You can inject that into decrypted ipas e.g. youtube, snapchat , instagram etc

restive ether
#

you keep hopping back and forth between the assumption of being jailbroken and not being jailbroken

#

ok that’s not universal

hardy glen
#

my man is building game mods

restive ether
#

if you can’t figure out how to do simple hooks you aren’t going to be make a mod menu anytime soon i can tell you that much

primal perch
restive ether
#

you are skipping far too many steps

hardy glen
#

use flex and see what you can hook to make it "universal"

primal perch
#

this dick

untold river
restive ether
#

me

hardy glen
restive ether
#

please submit your favorite packages with a makefile thanks

#

L for ncurses though

hardy glen
#

if i can actually build bash lmao

glacial matrix
#

I guess it depends on what you’re doing

restive ether
#

it failed on the configure line

untold river
restive ether
#

might’ve been a race condition

#

build ncurses first

hardy glen
#

btw this doesn't work, says it can't find a release file or some shit

restive ether
#

@ocean raptor

hardy glen
#

i tried it yesterday on debian vm

untold river
#

do you have bullseye or sid

#

that's like the two dists cameron's repo has

ocean raptor
#

Nah, I only have Sid

cloud sundial
#

Huh

untold river
hardy glen
untold river
#

yeah that's why it wont work

hardy glen
#

L

restive ether
#

you can always pick freeBSD troll

ocean raptor
#

Use the script

restive ether
#

fBSD at this point might have better support than linux

hardy glen
#

i did use the script.

untold river
hardy glen
#

on my arch build

restive ether
#

yeah

primal perch
#

shitbsd

restive ether
#

the only person who used linux was hayden when he made the original makefile

#

well conan uses linux too i think

untold river
#

real

hardy glen
#

wait what should i use

#

what's recommended

restive ether
#

ncurses loves breaking

cloud sundial
ocean raptor
restive ether
primal perch
#

linux users when their computer is at 20% ram usage

ocean raptor
#

Conan doesn't have a Mac

restive ether
#

because some of the stuff only builds on macOS cause of quirks

ocean raptor
#

Which is why node 17 isn't on procursus yet

hardy glen
#

should i be using mac or freebsd

ocean raptor
restive ether
cloud sundial
#

At one point

ocean raptor
#

Everything will work on mac

hardy glen
#

okay bet

primal perch
#

Everything will work on macx

restive ether
#

MacX

#

next generation

untold river
primal perch
#

SwitchResX

ocean raptor
restive ether
untold river
restive ether
#

he’s the honorary python guy

ashen birch
#

true

restive ether
#

i’m assuming each minor version of python will be it’s own package

hardy glen
#

can i use debian 10.11 with prebuilt toolchain

restive ether
#

with there being a python meta package attached to latest

untold river
#

true

untold river
cloud sundial
#

Adam as in kirb?

restive ether
#

no

#

@ m1sta#9999

untold river
#

adam the autotss guy

cloud sundial
#

Ah

restive ether
#

kirb the bird has left behind his procursus fun time long ago

hardy glen
cloud sundial
#

Oh rip

ashen birch
#

and right now im preoccupied with other projects fr

untold river
#

lmao nick chan did a PR on my procursus github action to add mirror support

#

all one working mirror

restive ether
#

nick out here

cloud sundial
#

I haven't been around for so long that I'm not familiar with most people in the jb scene now... who is nick?

untold river
#

nick chan, goes by asdfugil on github

restive ether
#

nick is my chinese guy

#

he does all our translations

cloud sundial
#

Lol okay fair

untold river
restive ether
#

too bad managers don’t support multi component

hardy glen
untold river
#

i mean this is github actions so there's only apt

untold river
restive ether
hardy glen
#

i can't even go to download 10.10 because the website won't load

untold river
hardy glen
#

i got to download from a mirror and this shit is slow asf

untold river
untold river
cloud sundial
#

Uh why would he need sid?

#

To install procursus?

zenith hatch
#

i have no clue why but i cant receive the event when you open an app with a url scheme

#

any ideas?

hardy glen
cloud sundial
#

Stable?

prisma grove
#

Does anyone know what method sets this color on the keyboard?

#

Turns out hooking the the tintColor of UIView messes that up for some reason

ocean raptor
hardy glen
#

i would love it if i was actualy able to download debian lmao

raven flint
hardy glen
raven flint
#

weird

hardy glen
#

i just ended up using my hack

primal perch
#

true macos

hardy glen
#

Im building llvm

#

Lmfao

primal perch
#

tried that on windows once with 16gb ram

#

did not go so well'

hardy glen
#

I have 16 gb ram too

restive ether
primal perch
#

mightve been a windows moment

restive ether
#

just to troll you

#

unless you aren’t using the one off the llvm branch

hardy glen
#

It takes lldb 60 seconds to attach remotely. Idk wtf is wrong, i tried 2 iphones running procrusus and i tried mac/linux.

#

How tf do procursus mfers test stuff, just build and sleep and check for errors lmao

restive ether
#

yeah basically

#

at least for llvm, just do it overnight since it takes like ten years

ocean raptor
#

it doesn't take that long on the macstadium...

ashen birch
hardy glen
#

Takes 60 seconds to attach

untold river
#

@ocean raptor can tools built with theos be added to procursus and how would a makefile be written for it

#

specifically, locsim on Procursus

ocean raptor
#

Oh I forgot I was gonna do that

#

I'll add it in ~5min

#

Why does locsim kill locationd in its postinst? @restive ether

restive ether
#

no idea

#

it’s probably not necessary if i had to guess

hardy glen
#

this shit is so confusing like how

ocean raptor
#

It's very easy

#

first

#

tell us what the issue is!

#

we aren't telepaths

tacit spade
#

every time i remember that you can do this because swift doesn't care about whitespace, i get giddy

#

like

#

cmon

#

that ternary

#

is so clean

#

and then ill forget that that works

#

and like

#

have horrible code for weeks

glacial matrix
#

Is there no code formatter?

tacit spade
#

there is, im just excruciatingly stupid when it comes to programming

#

im still really proud of that ternary tho

hardy glen
#

who's down to help him out

primal perch
#

i just beat some kids ass on clash royale so hard

#

with level 10 lavaloon against his lvl 14 shit

vivid dew
#

cum bucket

gentle grove
native dune
#

they railed a kid in an online video game so hard

#

with a level 10 opject

primal perch
native dune
#

they had a level 14 object

primal perch
#

basically

#

minus the literal interpretation of sex on minors

native dune
#

idk i havent played that game in ages

native dune
prisma grove
#

@ocean raptor I made my customColorFunction more efficient by writing it in pure C

ocean raptor
#

why???

#

@restive ether this dude

restive ether
#

i-

untold river
#

spm moment

#

should've written it in asm

prisma grove
#

Why is this implementation in particular slower?

untold river
#

closer to metal = more efficient

#

/s

ocean raptor
prisma grove
ocean raptor
untold river
prisma grove
#

I couldn't find the compiler directive for @selector anywhere, I was looking through Apple's Open Source for a while

primal perch
#

well

#

you tried

prisma grove
#

Yeah but m files are just c files with a bunch of c directives so it has to be somewhere, right?

nimble parcel
ocean raptor
#

TIL

nimble parcel
#

what I mean is, eg, there’s no way you could represent [foo bar] as c directives

prisma grove
#

Do you know if @selector is a c directive?

primal perch
#

its not

nimble parcel
nimble parcel
#

it’s a clang thing

prisma grove
#

Hmm well it looks like @selector just calls to sel_registerName

#

So technically it’s being called at runtime either way?

prisma grove
#
    SEL colorSelector = NULL;
    CFIndex num = CFPreferencesGetAppIntegerValue(CFSTR("customTintColor"), kCFPreferencesCurrentApplication, NULL);
    switch (num) {
        case 1:
            colorSelector = sel_registerName("systemOrangeColor");
            break;
        case 2:
            colorSelector = sel_registerName("systemGreenColor");
            break;
        case 3:
            colorSelector = sel_registerName("systemTealColor");
            break;
        case 4:
            colorSelector = sel_registerName("systemRedColor");
            break;
        case 5:
            colorSelector = sel_registerName("systemPurpleColor");
            break;
        case 6:
            colorSelector = sel_registerName("systemIndigoColor");
            break;
        default:
            colorSelector = sel_registerName("systemBlueColor");
    }
}

static inline __attribute__((always_inline)) void swizzleTest2(void) {
    SEL colorSelector = NULL;
    CFIndex num = CFPreferencesGetAppIntegerValue(CFSTR("customTintColor"), kCFPreferencesCurrentApplication, NULL);
    switch (num) {
        case 1:
            colorSelector = @selector(systemOrangeColor);
            break;
        case 2:
            colorSelector = @selector(systemGreenColor);
            break;
        case 3:
            colorSelector = @selector(systemTealColor);
            break;
        case 4:
            colorSelector = @selector(systemRedColor);
            break;
        case 5:
            colorSelector = @selector(systemPurpleColor);
            break;
        case 6:
            colorSelector = @selector(systemIndigoColor);
            break;
        default:
            colorSelector = @selector(systemBlueColor);
    }
}```
#
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 3 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{

        clock_t start, end;
            
        double cpu_time_used;
        
        start = clock();
        for (int i = 0; i < 1000000; i++) {
            swizzleTest1();
        }
        end = clock();
        cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
        
        printf("swizzleTest1() took %f seconds to execute \n", cpu_time_used);
        
        start = clock();
        for (int i = 0; i < 1000000; i++) {
            swizzleTest2();
        }
         end = clock();
         cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
        
        printf("swizzleTest2() took %f seconds to execute \n", cpu_time_used);
        
    });
}
#
swizzleTest1() took 0.290076 seconds to execute 
swizzleTest2() took 0.242242 seconds to execute 
#

@grave sparrow Looks like sel_registerName is 15% slower. Interesting

#

If you make num a constant, sel_registerName is 1800% slower

#

Good tip, pretty similar results though - helps by like 2% swizzleTest1 based on an average of 5 runs

prisma grove
#

@grave sparrow yes, I realize that but I’m saying if you make num a constant for both functions then swizzletest2() is 1800% faster than swizzletest1()

lapis needle
#

why am i getting this error when running ‘make package’

#

i installed the toolchain and everything

#

and i’m on an SE 2 ios 14.5.1

ocean raptor
#

what bootstrap?

#

Procursus or elu?

lapis needle
#

Elu

ocean raptor
#

did you install cc tools from elu or bigboss

#

and your clang, is it from elu or bigboss?

lapis needle
#

bigboss

ocean raptor
#

theres your problem

#

uninstall the ones from bigboss and get it from elu

lapis needle
#

ok thanks

ocean raptor
#

and better yet, switch to a good bootstrap trol

graceful gate
graceful gate
#

Meanwhile, an alternative simpler method...: iproxy 2222:22

tacit spade
#

here’s a better advice

graceful gate
#

^^

tacit spade
#

please use a computer to code

#

it will save you

#

so much time

#

i wasted three years trying to make tweaks on device

#

don’t

#

Please save yourself pain and heartache

snow python
#

What type of code were you writing to have heart ache

primal perch
#

iphone keyboard for objective c

tacit spade
#

^

#

especially when i didn’t understand it

lapis needle
tacit spade
#

it helps to just see all of it

lapis needle
#

it’s for school and I can’t download Theos on a school computer

tacit spade
#

it’s for school

#

I’m confused

lapis needle
#

it’s a programming class

tacit spade
#

and they’re having you use Theos…?

lapis needle
#

i chose to

tacit spade
#

does programming interest you @lapis needle

lapis needle
#

yeah i do a lot just mostly Python

tacit spade
#

okay

lapis needle
#

i’m just bored in that class so i figured why not try something new

tacit spade
#

Ahhhhh

#

Well let me give you my advice

#

take it or leave it but I started out mostly self-taught

#

Tweak development is fun

#

But like you’ll be frustrated and have no guidance while you’re learning objective-c, and moreover, C.

lapis needle
#

i’ve done a bit of C

#

I just struggle with what to learn

#

obviously there’s lots of good things but i have trouble knowing which ones i’ll use practically

#

like learning C was good for programming logic and learning some low-level stuff but I have no real use for it besides

tacit spade
#

You could do C++! There’s a lot of good resources on that. But then again that requires installing VSCode and gdb and the like

#

I’m not tryna discourage you, let me be clear

#

it’s just a whole lot easier to learn by going the conventional way

#

And then when u know what ur doing, you can do fun stuff with tweaks 😄

lapis needle
#

i appreciate it

indigo peak
#

@misty cradle is getdatpfp open source

#

nvm i found it

#

sorry for ping

#

@restive ether if i were to make a tweak that makes a get request to discord's api, is that considered self botting?

#

endpoint: /guilds/{guild_id}/members/{member_id}

restive ether
#

is a normal user supposed to be able to do that

indigo peak
#

its for getting a member in a server

#

so i can get the top role color of said user

indigo peak
#

idk how to answer that

#

like

#

yes a normal user can invoke the endpoint i think

restive ether
#

@grim sparrow discord girl

grim sparrow
#

thats bot api

#

thats a no no for users

indigo peak
#

fuck

grim sparrow
#

you need to use the socket api

#

and how easy it would be to hijack that from discord I am unsure

indigo peak
#

@grim sparrow do you know if theres an actual class in the discord app that represents a user

#

or its all done over the network

grim sparrow
#

its all react trolling

indigo peak
#

so im NOT allowed to access /channels/:channel-id/messages/bulk-delete