#development

1 messages · Page 159 of 1

faint stag
#

i mean, there is defaultApplicationSwitchValue

serene hawk
#

thanks, yes that sets the default switch value for all applications

#

but i basically need to have some apps set on by default and not all

faint stag
#

but if you'd rather do something programatically, you could modify the array to have specific ids be true until they've been changed

serene hawk
torn cloud
#

false

queen ruin
#

Is that nexus

torn cloud
#

fix goddamn drm woeis

sonic totem
#

Interpret this Zefram bootloop

placid kraken
#

can someone test music app theming on flora 1.1.4

#

you’ll have to build it yourself because i haven’t uploaded the deb yet

#

the deb in releases for 1.1.4 isn’t up to date

#

you can theme it via base colors > music tint in advanced mode

#

but it also works in simple mode

#

(hopefully, it’s intended to)

slender glade
#

@restive ether @grim sparrow Perplexed by the fact that he has the audacity to spout this bs abt queer people when he profited off of donations for Trolltools when 1/3 of that app was literally just a UI for my library https://x.com/sourceloc/status/1769503581747413053?s=46

@rolandWH_dev Except for:

  • Pride (the first of the Seven Deadly Sins)
  • Inappropriate accompanied by disgusting behaviour
  • Pronouns
  • And most importantly spreading cancerous ideas to other people.

No, thanks. Such psychos do in fact disturb me and others.

#

Literally just queer people are bad except when I profit off of them

granite frigate
#

Except for:

  • Pronouns
#

What the fuck does that even mean everyone has pronouns dumbass

#

😭

slender glade
#

Funniest point bc like what is that point

slim bramble
native dune
#

the Seven Deadly Sins

torn cloud
slim bramble
steady nest
#

not surprised he lives in "piss" city trol

slender glade
slender glade
placid kraken
#

the whole seriousness of that post dissipated completely when i read cancerous ideas im sorry

#

i started giggling

grim sparrow
placid kraken
#

isn’t he like 16

grim sparrow
slender glade
granite frigate
#

Don't think he reveals who he works for

grim sparrow
granite frigate
#

Huh

torn cloud
#

swift

#

I’m not surprised

faint stag
#

obviously swift

slender glade
# grim sparrow

I’m deadass considering making a LinkedIn account and just searching for random startups to apply to

slim bramble
#

sw*ft

#

@hasty ruin

#

fuck

#

well deal with the ping

hasty ruin
#

useless ping @mods

grim sparrow
#

ive had crypto people head hunting me

#

and im just like

naive kraken
# grim sparrow

can we like... not do that? cause all it would accomplish is to radicalize him further

grim sparrow
#

eww crypto

granite frigate
#

Try it fr

faint stag
slender glade
slender glade
slender glade
faint stag
#

i mean yeah they have methods for that when you actually register but beyond that point

#

meh

sonic totem
#

Anything more and he will just get the satisfaction of annoying people

granite frigate
#

In this post, I’ll look at CVE-2023-6241, a vulnerability in the Arm Mali GPU that allows a malicious app to gain arbitrary kernel code execution and root on an Android phone. I’ll show how this vulnerability can be exploited even when Memory Tagging Extension (MTE), a powerful mitigation, is enabled on the device.

kind herald
#

me waiting for android 9 kernel 4.4.111 root exploit

shut stag
kind herald
#

aaron killed him

shut stag
#

someone pinged me in another channel

torn oriole
#

Aaron where automod rule to automatically hang people who send those trol

shut stag
#

lemme do that

torn oriole
#

It breaks freemoji

#

It regex’s for I think

#

I didn’t look at the rule properly

#

It’s only markup links

azure sail
#

lmao

torn oriole
#

The url changes all the time

#

They’re not dumb

#

Gir can’t scan markup text either so

gentle grove
#

instead check if the text fits the format of a domain which doesn't match what the link target is

#

that's a lot more robust

torn oriole
#

If you wanna come up with the appropriate foolproof regex then go ahead trol

gentle grove
#

that would be horrific

torn oriole
#

Then go fix gir

gentle grove
torn oriole
#

Make gir be able to read markdown

gentle grove
kind herald
#

ocr for gir when

torn oriole
tepid olive
#

y'all

#

what is the best way to make

#

uh

tepid olive
#

from regex

torn oriole
tepid olive
#

lol

torn oriole
#

Simply a gir skill issue

tepid olive
#

real

tepid olive
#

for a tweak

#

do I use

#

comet

#

or something else

#

idk any other ones

serene hawk
tepid olive
#

it isn't

indigo peak
#

just make them

#

🗿

placid kraken
#

you should not use fiore’s json pref that’s all ill say

indigo peak
#

true

placid kraken
#

idk how fast parsing plists is but parsing json is just slow by design

indigo peak
#

nah cuz it should “compile” it down to bplist but it doesn’t

#

like it’s completely possible to convert json

#

but it just doesnt

#

like it’s not meant to be performance better bc it’ll be the same once it’s compiled down, just meant to be easier while writting

tepid olive
#

can I do

#

it

#

programatically?

indigo peak
#

no not really

placid kraken
#

i mean yes

#

but it’s not very intuitive

#

you can do that for every specifier

#

it’s just not as readable

indigo peak
#

well

#

what did they mean by programmatically

tepid olive
#

Idk

#

Lol

placid kraken
#

that’s generally what i do for all the flora colors i guess

acoustic imp
acoustic imp
grave sparrow
#

array of dictionary of dictionary of array of dictionary of array of array

faint timber
#

missed one

cloud yacht
hexed knot
#

array of what

placid kraken
cloud yacht
placid kraken
#

have fun with a dictionary as a key

placid kraken
#

in theory it would work like this ```objc
NSDictionary *prop1 = @{ @"hello": @"world" };
NSDictionary *prop2 = @{ @"world": @"hello" };
NSDictionary *real = @{
@(.hello != nil): 1,
@(
.world != nil): 2
}

real[prop1] // 1
real[prop2] // 2

placid kraken
slim bramble
#

Jaba

radiant idol
#

how did you manage to make objc look swift-y

placid kraken
#

IDK

#

IM SORRY

slim bramble
faint timber
#

I think its uro approved

placid kraken
#

i KNEW IT

radiant idol
#

rosie writing rosiecode agan

placid kraken
#

i kinda assumed this is why isEqual exists

#

but how does it actually compare internally arent objects only pointers

#

or does it just compare the values inside

radiant idol
#

I think each object has its own impl for isEqual

slim bramble
cloud yacht
placid kraken
#

i have so much to learn

#

in js objects are passed by reference so if you do

const object1 = { test: 1 };
const object2 = { test: 1 };

object1 === object2; // false
``` itll be false
cloud yacht
#

js my beloved

placid kraken
#

because even though theyre technically the same object theyre under a different reference so the equality fails

cloud yacht
#

you can use objects as keys

tepid olive
#

hey @frail cedar uh is libSwift_concurrency missing a known issue on ios 14.8

#

lol

placid kraken
tepid olive
#

because apple says it should exist from 13 and up

placid kraken
#

objects can only be strings numbers or symbols

cloud yacht
#

oh yeah

#

I guess I was wrong

#

but maps work

slim bramble
#

It makes me want to jump out of the window

cloud yacht
#

js is good for manipulating the dom

#

cause its fairly error tollerant

slim bramble
#

Fucking weird language

cloud yacht
placid kraken
#

maps helped for this

slim bramble
frail cedar
placid kraken
frail cedar
#

you have to embed the dylib in your app

tepid olive
#

that's stupid

placid kraken
#

heck do it in python

#

or c

tepid olive
#

can I manually embed it in an app store app

placid kraken
#

or c++

#

or java

frail cedar
#

set target to <15.0 and include code that depends on concurrency

#

it auto includes it

tepid olive
#

oh

#

but like

frail cedar
#

it supports as low as ios 9

tepid olive
#

how do I embed it in the app store app

frail cedar
cloud yacht
frail cedar
#

...

tepid olive
#

wait

#

so

#

you're telling me

#

that

#

oh right

frail cedar
#

you include concurrency code in ur swift app

#

set target to <15

#

build it

tepid olive
#

they targeted 16.0

frail cedar
#

xcode auto includes libswift_Concurrency.dylib

tepid olive
#

but it's the only missing dependency woeis

frail cedar
#

you can get the dylib from xcode.app

#

its somewhere in there

tepid olive
#

oh ok gotcha

frail cedar
tepid olive
#

because it was introduced in 14.5

frail cedar
#

yes

tepid olive
#

I was on 14.3

frail cedar
#

what r u trying to get working

tepid olive
#

saturn

frail cedar
#

what dat

tepid olive
#

it's like a scheduling app

#

for students

frail cedar
#

i see

#

good luck

tepid olive
#

lol

#

the version that's meant to work on 14.x is really shitty

slim bramble
#

smh

#

Python did the same goof

placid kraken
#

then c rounds it

tepid olive
#

I mean

#

I guess I don't need it

#

hopefully google apps work at least

#

those all depended on AVFAudio

#

I mean I also upgraded to 14.8 because I didn't realize lossless audio for apple music was only introduced in 14.6 lol

tepid olive
#

there's no like

#

libswift_concurrency fixer tweak lol

placid kraken
#

@slim bramble ```c
#include <stdio.h>

int main() {
double res = 0.1 + 0.2;
printf("%.17lf", res); // 0.30000000000000004

return 0;

}

slim bramble
placid kraken
#

lol ofc its only gonna be 0.3 if you dont show all the decimal places

#

the printf literally rounds to 1dp

tepid olive
#

y'all

placid kraken
#

woooo nice

slim bramble
tepid olive
#

tweak isn't finished yet though, I just applied in advance so that I could release as soon as I finish testing

slim bramble
tepid olive
#

wasn't expecting them to accept same day lol

tepid olive
# slim bramble

I just linked my github profile, that's proof enough of my experience

slim bramble
#

fr

slim bramble
tepid olive
#

lol

#

anyways

#

can you use comet

#

on non-swift tweaks

torn cloud
torn cloud
tepid olive
#

do any of y'all have carplay simulator working

#

for me it just segfaults

#

not sure why lol

slim bramble
#

I NEED

#

NOW

kind herald
#

it only works with a simulator iPhone

torn cloud
#

it runs on the macOS kernel smh

#

you can forget doing any security research or kernel debugging

acoustic imp
slim bramble
kind herald
#

about to try CarPlay Simulator with Xcode 14

tepid olive
#

fuck you too apple

tepid olive
slim bramble
#

Where is the carplay simulatoir

#

tf

tepid olive
tepid olive
slim bramble
#

oh

#

fr

tepid olive
#

lets you connect with real iphone

slim bramble
#

grabbing my mac rn

kind herald
#

we ball

tepid olive
#

oh you only need additional tools

#

it doesn't depend on xcode

torn cloud
#

mine is like 7mb/s

tepid olive
#

can you like emulate T2 on hackintosh lol

acoustic imp
torn cloud
#

got two icloud locked macs in my shop

#

such beautiful machines

kind herald
tepid olive
#

damn it

acoustic imp
torn cloud
#

but T2 ruined it vexedtomato

torn cloud
#

like none

#

zero

tepid olive
#

lemme try an even older version of carplay simulator

torn cloud
#

nada

kind herald
torn cloud
#

there's that one checkm8 one but it doesn't persist on hard reset

tepid olive
#

damn it apple

acoustic imp
#

Just message the OG owner Fr

torn cloud
kind herald
#

worked

torn cloud
#

my boss emailed the guy a million times

tepid olive
#

ok well

acoustic imp
#

L

torn cloud
#

how

tepid olive
#

I guess you're my tester

kind herald
#

Xcode 14.0 additional tools

#

just works

tepid olive
#

14.0

#

lemme try that

torn cloud
torn cloud
kind herald
#

who says I bought them

slim bramble
tepid olive
#

it didn't work either

kind herald
slim bramble
torn cloud
#

buffer overflow eta wen

acoustic imp
#

iOS 14 app support 💀💀

kind herald
#

damn no carplay simulator for iOS 12

tepid olive
#

?

torn cloud
tepid olive
#

ios 14 app support is fine

torn cloud
#

y'all are just dumb trol

tepid olive
#

I'm on ios 14

kind herald
#

real

tepid olive
kind herald
#

I main an iPad with iPadOS 14.8.1

torn cloud
acoustic imp
#

iPad kid

tepid olive
kind herald
#

someone gift me carbridge legacy so I can try it with carbridge simulator

#

/j

torn cloud
#

wait is that why paypal doesn't work on ios 14

#

it downloads then hangs then the download resets

#

idk why

tepid olive
#

well libswift_concurrency can be injected into an app

#

it supports ios 14

#

just not included by default

torn cloud
#

hm

tepid olive
#

it's in xcode somewhere

#

I think

kind herald
#

I ALREADY HAVE THESE

tepid olive
#

lol

faint lionBOT
#
yt

YouTube is typically a very poor source of information and should be avoided. Many jailbreak YouTubers promote piracy, outdated tweaks, or just flat out fake jailbreaks. Reliable sources: iOS Guide, r/jailbreak Wiki, Apple Database and The Apple Wiki.

tepid olive
#

?

kind herald
#

who did that

#

reveal yourself

torn cloud
#

huh

kind herald
#

mods snipe

torn cloud
#

who was that

tepid olive
#

cxdxn

#

I saw them,

#

do it

torn cloud
#

no i didn't

tepid olive
#

lier

torn cloud
#

since it's in mastermike's username for some reason

kind herald
#

wonder why

velvet path
#

what

torn cloud
kind herald
#

anyways carplay simulator does not work on iOS 12

torn cloud
velvet path
#

I literally checked the channel right as you said that

torn cloud
#

we were talking about the GIR command in your username

velvet path
torn cloud
#

lol

faint lionBOT
#

Hey @torn cloud, have a look at this!

yt

YouTube is typically a very poor source of information and should be avoided. Many jailbreak YouTubers promote piracy, outdated tweaks, or just flat out fake jailbreaks. Reliable sources: iOS Guide, r/jailbreak Wiki, Apple Database and The Apple Wiki.

kind herald
torn cloud
tepid olive
#

guys I hate that I have to make preferences with swift

kind herald
#

guess I need a real car to try out carplay on iOS 12

velvet path
kind herald
#

oh

tepid olive
velvet path
torn cloud
#

i love humans

tepid olive
torn cloud
kind herald
#

Hi alfie

faint lionBOT
sonic totem
sonic totem
summer thistle
sonic totem
sonic totem
#

I probably wasn’t clicking it correctly

summer thistle
sonic totem
#

Proud

summer thistle
#

I had to learn that the hard way lol

#

Spent countless hours trying to fix stupid shit all cuz I wanted it to look good

sonic totem
tepid olive
#

ok well tbf I want my tweak to be super customizable at it will have like custom image pickers and stuff

#

that'd be too difficult in objc

summer thistle
#

Keep ‘em coming Alfie lol

tepid olive
#

and I want it to look appealing

#

not just bland apple preferences

kind herald
#

and make it where it can't be changed

tepid olive
summer thistle
#

I made my own date and time picker just cuz I couldn’t get the apple one to work properly and that was not a fun task to do in objc

tepid olive
#

lmao

#

I don't know UI for shit btw

#

lmao

#

I know everything else

#

not UI

summer thistle
#

Eventually I got it to work well but it was like not worth the time I spent on it whatsoever

#

I’m not great with UI either

tepid olive
#

for now I really just need prefs for debugging purposes

#

so I can manually trigger events

#

I also don't know swiftUI

#

I can use UIKit a little

summer thistle
#

Like this is the best I could really get with objc

tepid olive
#

that's still pretty good

summer thistle
#

Thx

#

I made it so it has depends too so like depending on whether certain options are enabled, I can show or hide additional things

torn cloud
#

time to cook

tepid olive
#

hm

sonic totem
tepid olive
#

I really don't know UI

#

guess I have to figure it out

sonic totem
summer thistle
#

Lol

sonic totem
summer thistle
#

Damn u cookin Alfie lmfao

sonic totem
#

Okay time for me to sleep

sonic totem
kind herald
#

goodnight alfie cg dev

torn cloud
#

smh how would i get the task port without getting fucked over

sonic totem
torn cloud
#

i can't think of anything else to use apart from tfp0

sonic totem
torn cloud
sonic totem
#

Call task_for_pid?

summer thistle
torn cloud
steady nest
sonic totem
steady nest
#

call task_for_pid

torn cloud
#

i thought task_for_pid is extremely limited in most recent iterations of macos/ios

sonic totem
#

Assuming:

  • you have task_for_pid-allow entitlement
  • you aren’t trying to get tfp0
steady nest
#

why do you even need a task port for smth

summer thistle
primal perch
sonic totem
summer thistle
#

I did already

#

And got denied

primal perch
#

womp womp

sonic totem
#

When was this 😭😭

tepid olive
#

poor DTCalabro

#

can someone give me a quick swiftUI rundown lol

summer thistle
sonic totem
#

NO WAY

summer thistle
#

No, old screenshot

sonic totem
#

Okay good

#

When was it from

torn cloud
# sonic totem What’s the context

uh so the host port is obtained using host_get_host_port()

then task_for_pid is called with the host port, the process ID obtained using getpid(), and a pointer to a variable (task_port) where the task port will be stored.

#

should i just give you the code?

sonic totem
#

I mean why are you getting the task port if another process

summer thistle
sonic totem
#

Like, what’s the project

sonic totem
#

No way man 😭😭

#

Justice for DTCalabro wtf

kind herald
#

threaten modmail to get developer role

torn cloud
sonic totem
summer thistle
sonic totem
#

Good luck then lol

sonic totem
torn cloud
sonic totem
tepid olive
#

can I like

#

use xcode to generate swift UI for me

summer thistle
#

See, Aaron doesn’t like me

sonic totem
#

DTCalabro deserves it more than anyone else atp

torn cloud
tepid olive
#

I don't feel like fucking with UI

sonic totem
#

Bro is the last white name to be a dopamine 1 AND 2 tester

tepid olive
#

can I just design it in a graphical design tool

torn cloud
#

anyway i'm gonna wrap up

summer thistle
#

Yeah

sonic totem
#

Still is

summer thistle
#

True

torn cloud
#

crazy

summer thistle
#

Still am

sonic totem
radiant idol
#

can vouch

sonic totem
tepid olive
kind herald
#

no swiftui

tepid olive
#

I don't really have a choice

summer thistle
#

Still working on it

sonic totem
tepid olive
#

I started trigonometry today

sonic totem
#

Welcome to hell

tepid olive
#

lmao

cloud yacht
summer thistle
sonic totem
summer thistle
#

So gl

sonic totem
#

Wait until you start integrating trig

#

trig and e

cloud yacht
#

dx/dy e

sonic totem
#

dy/dx clear

primal perch
#

integrate dn

tepid olive
#

wow

#

I just found the best website ever

#

you input a prompt and it makes swift UI for you

#

and it's fucking good?!

sonic totem
#

Time for a new TrollInstallerX UI

tepid olive
#

like it just generated this for me

#
import SwiftUI

struct ContentView: View {
    @State private var selectedOption: String?
    @State private var isDebugMenuPresented = false
    private let options = ["Tornado", "Light rain"]
    
    var body: some View {
        NavigationView {
            VStack {
                Button("Open Debug Menu") {
                    isDebugMenuPresented = true
                }
                .padding()
                .background(Color.blue)
                .foregroundColor(.white)
                .cornerRadius(8)
            }
            .sheet(isPresented: $isDebugMenuPresented) {
                DebugMenuView(selectedOption: $selectedOption, options: options)
            }
            .navigationTitle("Preferences")
        }
    }
}

struct DebugMenuView: View {
    @Binding var selectedOption: String?
    let options: [String]
    
    var body: some View {
        VStack {
            Picker("Select an option", selection: $selectedOption) {
                ForEach(options, id: \.self) { option in
                    Text(option).tag(option as String?)
                }
            }
            .pickerStyle(MenuPickerStyle())
            .padding()
            
            Button("Trigger") {
                // Trigger action based on selectedOption
            }
            .padding()
            .background(Color.blue)
            .foregroundColor(.white)
            .cornerRadius(8)
        }
        .padding()
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

#

it even has a simulator built in

#

and it's all completely free

#

?!!

#

how is it so good

kind herald
#

can't even afford 5G UW

#

L

tepid olive
kind herald
#

they disabled settings on there

#

trolled

#

nevermind I'm just a little dumb

#

wow they're using Mac mini (2023) with M2 Pro for these simulators

summer thistle
tepid olive
#

yeah lol

cloud yacht
#

huh its not working for me

#

DNS entry is just blank

primal perch
#

say gex

kind herald
#

gex

spare hornet
#

Hi all, what would be the best way to get to see my computer's screen on my iphone?

kind herald
#

cooking

radiant idol
#

cringe

kind herald
#

shut up night wind

radiant idol
#

literally no you

kind herald
#

made with ai

#

uh

#

objective c

radiant idol
#

no sw*ft

kind herald
#

my apologies

#

sora this super cool non-swiftui ai thing you sent earlier is cool

tepid olive
#

@radiant idol how do I respring device

#

from code

kind herald
#

kill springboard

radiant idol
#

look at Bolders Reborn src code

tepid olive
#

k

radiant idol
#

the way I do it is overkill

#

but

tepid olive
#

hm

#

can I just use killall

#

or is that a bad idea

radiant idol
#

I mean you can

primal perch
#

cumcraze

faint stag
hasty ruin
tepid olive
#

what do I do

#

when this happens

#

wait why is it looking for an Assets.car

hasty ruin
#

Isn't that just a warning

tepid olive
#

well

#

it seems to cause a crash

#

when I open my prefs

hasty ruin
#

pretty sure every tweak gets this logged

tepid olive
#

oh

summer thistle
#

Yeah, thats a common log

tepid olive
#

ah

summer thistle
#

Just saw it the other day myself lol

tepid olive
#

if it helps

acoustic imp
#

how do i call a method after a CABasicAnimation runs ?

#

been looking on stack of and chat gpt and they kinda said same thing but its jus not working

indigo peak
#

try that

acoustic imp
#

the deleget stuff, alr tried that

indigo peak
#

no the answer

#

not the question

acoustic imp
#

so this one ?

#

theres an answr with deleget

#

how does it like know tho

#

@indigo peak thanks it worked sorta, i jus gota fix my logic

acoustic imp
native orbit
#

sandbox profiles fr got the worse syntax

granite frigate
#

Oh for fucks sake

#

I'm uninstalling xcode this is ridiculous

#

30gb for making shitty iOS apps im done

placid kraken
#

unless that’s an option in prefs

#

but normally if you skip it auto plays

sonic totem
granite frigate
#

it’s not a choice for me

twilit jungle
sonic totem
#

It’s universal truth

reef trail
#

i chat gpted my self into a decent design lol

sonic totem
#

@granite frigate mfw I’m about to leave for school and realise I haven’t charged my Mac

sonic totem
#

It’s on 6%

granite frigate
#

same thing

primal perch
acoustic imp
spare hornet
#

If yes how?

#

please

kind herald
#

open QuickTime player and once it opens go up to the menu bar at the top, click file and start new movie recording. then in the drop down menu next to the record button you should see your phones name under screen, click that and wait a few seconds and it should show you your phone’s display

#

you can’t control the device through there though

tepid olive
#

@whitetailani

#

@frail cedar

#

Arghhh

#

yup ios 15.0+

placid kraken
tepid olive
#

no it's part of an app store app lol

#

google photos

#

also

#

"wrong implementation for column-style UISplitViewController support"

#

what do I do about this lol

#

oh I got it to work

#

it didn't like NavigationView

worthy mulch
#

stupid question, where does theos stick the output? I'm just trying to compile the beginning tool code

primal perch
#

built object files are in .theos, or just use make package

worthy mulch
#

what if I just want the compiled binary, pretty much as if I ran clang input output?

primal perch
#

make package and unzip it or find it in the .theos folder after running make, i dont think theres some easier way save for invoking clang manually

worthy mulch
#

this feels like learning how to use C all over again

worthy mulch
#

at least I got the code I needed working, might actually try and do something useful

faint stag
#

by default the staging dir is ./.theos/_

worthy mulch
#

that would have worked beautifully

faint stag
worthy mulch
#

how do most people actually develop stuff for iOS without a mac? I'm just sshed in and trying to use my phone like a standard linux box, but everything's just a little laggy
a good chunk of that latency could be coming from the fact that the connection from my linux box and phone are connected over wireguard hosted on a vps, but it isn't this bad when i'm using the wireguard connection to ssh into my homelab linux server

faint stag
faint stag
worthy mulch
#

i forgot my cable in my dorm

faint stag
#

well, just make sure the device isn't sleeping because network stuff gets kinda throttled when it does

worthy mulch
#

which of the MacOS under quemu projects would lend itself best to being run over vnc or x11 forwarding from a mostly headless linux server?

worthy mulch
faint stag
#

but i mean you could still just launch qemu on whatever display you wish from the command line

#

though vnc is enabled by default for qemu i believe

#

my recommendation would be osx-kvm

#

once it's all setup though, ideally you'd run the vm headless with autologin and just ssh

worthy mulch
#

Would it be possible to do something like X11 forwarding for individual apps in the osx kvm?

faint stag
#

you'd need vm software with some kind of integration for the macOS windowserver

#

which isn't a thing on linux, especially with kvm

#

but if you mean the other way around (linux applications displayed in macos), there's xquartz

worthy mulch
#

so no way to install a x11 server on macOS

worthy mulch
#

so I could ssh into a vm with XQuartz forwarding, and it wold behave just as if it were a proper x11 forwarding session?

faint stag
#

meaning you can have X clients running on Quartz (macOS window server)

#

this would only be useful if you either

  • have a macOS app that runs in X
  • or want to have a client running from linux to display within the VM
worthy mulch
#

ah, ok

tepid olive
#

I'm struggling alot with ui

granite frigate
#

Classic

tepid olive
#

can I like

#

use

#

gemini

#

or something

#

swiftui is bad

#

uikit is bad

granite frigate
#

swiftui is okay

tepid olive
#

no

#

swift bad

#

annoying

granite frigate
#

real

torn cloud
tepid olive
#

So I'm trying to get into making my own tweaks and found Orion and I've been following this guide to try and change the time in the status bar
https://blog.sourceloc.net/ios-14-tweak-development-beginner-tutorial/

My issue is after installing the deb and restarting SpringBoard nothing changes. What could I have potentially missed? I'm on 16.6 beta on Dopamine.
This is the interface


@interface _UIStatusBarStringView : UILabel
@end```
and this is the hook

import Orion
import StatusTimeFormatterC

class StatusBarTimeHook: ClassHook<_UIStatusBarStringView> {

func setText(_ text: String) {
    orig.setText("Hello world!")
}

}

(If this should go in [#969343289641828382](/guild/349243932447604736/channel/969343289641828382/) I'll move it there)
placid kraken
tepid olive
#

Rad

placid kraken
#

tbh there’s no reason why that shouldn’t work

#

maybe try hooking the getter instead of the setter

tepid olive
#

What does a getter look like in obj-c

placid kraken
#

just the property name

#

so instead of setText its just text

tepid olive
#

ah

placid kraken
#

it returns a string instead of void

#

and it doesn’t take in anything

tepid olive
#

so literally just make it orig.text instead

placid kraken
#

not quite, you would return “Hello World!”

tepid olive
#

So completely remove the orig line?

placid kraken
#

in objc

@interface _UIStatusBarStringView : UILabel
@end

%hook _UIStatusBarStringView

- (NSString *)text {
    return “Hello World!”;
}

%end
tepid olive
#

This is in swift though

placid kraken
#

orig is the original implementation

tepid olive
#

Right

placid kraken
#

you don’t need orig if you’re just returning a custom string

#

equivalent to this in objc

@interface _UIStatusBarStringView : UILabel
@end

%hook _UIStatusBarStringView

- (NSString *)text {
    return %orig;
}

%end
slender glade
#
class StuatsBarStringViewHook: ClassHook<_UIStatusBarStringView> {
  func text() -> String {
    return "Hello, world"
  }
}
placid kraken
#

bear in mind i’m typing this on phone it might be wrong

tepid olive
#

That makes more sense

slender glade
#

@tepid olive when you hook something you're changing how a function works

#

essentially replacing the function

#

orig is the original, un-hooked version of the function

placid kraken
#

^^^

slender glade
#

in Orion (Swift), you do orig.whatever, ie, orig.text(), in Objective-C, it's just %orig;

slender glade
tepid olive
#

runtime

#

Everything builds fine

slender glade
#
class StuatsBarStringViewHook: ClassHook<_UIStatusBarStringView> {
  func setText(_ str) {
    orig.setText("Hello, world")
  }
}
tepid olive
#

Is there a way to check if it's actually running

slender glade
#

Yes

#

logging

tepid olive
#

Could I use the console on my mac to check it or download some app for it

slender glade
#

NSLog("[Tweak name] etc")

#

You can use Console.app on macOS or you can use Antoine

#

in this case Console.app would be preferrable

tepid olive
slender glade
tepid olive
#

because that's what is running?

slender glade
#

Correct

tepid olive
#

Ah

#

Not seeing it show up in the console

#

Filtered it by the SpringBoard process

#

So it's just not running?

serene hawk
#

yes

tepid olive
#

Would that mean something is wrong with the hook then

hasty ruin
#

do you have an arm64e slice in your binary?

tepid olive
#

I'm not so sure what that is

#

Potentially

#

bro wtf why are my syslogs not working

serene hawk
tepid olive
#
ARCHS = arm64 arm64e
THEOS_PACKAGE_SCHEME=rootless
INSTALL_TARGET_PROCESSES = SpringBoard


include $(THEOS)/makefiles/common.mk

TWEAK_NAME = StatusTimeFormatter

StatusTimeFormatter_FILES = $(shell find Sources/StatusTimeFormatter -name '*.swift') $(shell find Sources/StatusTimeFormatterC -name '*.m' -o -name '*.c' -o -name '*.mm' -o -name '*.cpp')
StatusTimeFormatter_SWIFTFLAGS = -ISources/StatusTimeFormatterC/include
StatusTimeFormatter_CFLAGS = -fobjc-arc -ISources/StatusTimeFormatterC/include

include $(THEOS_MAKE_PATH)/tweak.mk
#

uhm

#

something looks off with the TARGET

serene hawk
#

replace it with: TARGET := iphone:clang:latest:15.0

#

or something similar lol

tepid olive
#

what would something similar be

serene hawk
#

depends on what you want your target to be

tepid olive
#

and whether you're using a patched SDK

serene hawk
#

if you're compiling for rootless only rn just go with what i provided above

tepid olive
#

Ok

#

this is mah makefile

#
SHELL := /bin/bash
THEOS_PACKAGE_SCHEME = rootless
ifdef ROOTFUL
$(shell test -f controlrootful && mv control controlrootless)
$(shell test -f controlrootful && mv controlrootful control)
THEOS_PACKAGE_SCHEME = rootful
else
$(shell test -f controlrootless && mv control controlrootful)
$(shell test -f controlrootless && mv controlrootless control)
endif
TWEAK_NAME = WeatherWhirl
WeatherWhirl_FILES = Tweak.m WeatherHandler.m HomeScreenView.m CloudView.m RainViewController.m Preferences.m
WeatherWhirl_CFLAGS = -fobjc-arc -Wno-deprecated-declarations -Wno-unused-but-set-variable
WeatherWhirl_EXTRA_FRAMEWORKS = FLAnimatedImage
ifdef ROOTFUL
WeatherWhirl_LDFLAGS += -rpath /Library/Frameworks
endif
ifndef FORSIM
TARGET := iphone:clang:16.5:15.0
else
TARGET = simulator:latest:15.0
ARCHS = x86_64
WeatherWhirl_FRAMEWORKS := CydiaSubstrate
endif
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
include $(THEOS_MAKE_PATH)/tweak.mk
SUBPROJECTS += weatherwhirlprefs
include $(THEOS_MAKE_PATH)/aggregate.mk
serene hawk
#

why no indents hm

tepid olive
#

I don't like whitespace

serene hawk
tepid olive
hasty ruin
#

mods can we ban this user

tepid olive
#

goddammit

#

Yeeesh

#

Progress has been made

#

I'm so good at finding issues

#

god dammit I hate kfd

#

I have tether downgrade

#

sometimes with taurine it panics

#

and then I have to retether boot

#

which is harder than it sounds trust

#

Holy shit it works

#

Took an unbelievable amount of time 😄

#

welcome to the club

#

Does this mean I'm ready to jailbreak iOS 17?

#

no lol

#

So my end goal is to create a cc module to respring

#

How much hair pulling does that entail

#

not too much

#

I think there's a lib for adding cc modules

#

and Cephei has a respring function

torn cloud
tepid olive
#

(Cephei is a tweak lib)

torn cloud
#

or is that something else

tepid olive
#

I just wanted to make my own

#

nono Cephei isn't a tweak

#

It's a lib

#

it's a library to help tweak devs lol

#

ye

#

So now I get to learn how to use libs?

#

cephei is integrated into theos

#

I think

#

Incredible

#

don't quote me on it

#

So not worth skipping my environmental science class for this

#

it is included yes

#

Awesome

hasty ruin
tepid olive
#

I appreciate the help everyone. I'm going to go grab dinner and get some homework done lol

tepid olive
indigo peak
#

vcam code leak!!

void get_memory(void) {
    @autoreleasepool {
        struct task_basic_info info;
        mach_msg_type_number_t size = TASK_BASIC_INFO_COUNT;
        task_info(mach_task_self(), TASK_BASIC_INFO, (task_info_t)&info, &size);
        NSLog(@"memory: %f MB", ((CGFloat)info.resident_size / 1048576));
    }
}
tepid olive
#

I thought that learning C++ would make the tranisition to obj-c easier and it's still kind of a headache

hasty ruin
indigo peak
hasty ruin
tepid olive
#

it's just preferences UI

indigo peak
#

i fixed the memory leak i was having

tepid olive
#

which was all generated with AI btw

#

lmao

hasty ruin
tepid olive
#

but

indigo peak
#

im 90% sure the reason i was leaking was i forgot to CFRelease smth

tepid olive
#

I don't fucking know any swift

indigo peak
#

then why use it

tepid olive
#

the whole thing

#

was made by AI

#

I legit asked bing chat

#

to make that for me

hasty ruin
#

is this worth it

indigo peak
#

ask it to rewrite in objc 😭

hasty ruin
#

for a dead game

tepid olive
indigo peak
#

shit AI if it cant understand objc

timid garden
torn cloud
steady nest
steady nest
hasty ruin
#

by dead game I mean my mates don’t play it

torn cloud
sonic totem
#

Although I do own both tbf

sonic totem
torn cloud
#

this has nothing to do with jade lol

sonic totem
#

Mb

#

Thought it was the control centre

torn cloud
#

yeah

torn cloud
#

lol

sonic totem
#

Is that Akara maybe

torn cloud
#

I might get Akara as well

sonic totem
#

I was lagging

torn cloud
#

🗣️

steady nest
sonic totem
#

Oh right

slim bramble
primal perch
#

hasty ruin
#

South Korean*

primal perch
#

close enough

placid kraken
#
function differentiate(polynomial: string | null, variable = 'x') {
    if (!polynomial) return null;
    if (!isNaN(+polynomial)) return '0';

    const terms = polynomial.replace(/[ ]/g, '').split(/(?=[+-])/g).filter(x => x.includes(variable));

    const parsedParts = terms.map(term => {
        const [coefficient, power] = term.split(variable);
        if (!power) return `${coefficient}`

        const parsedPower = power.replace('^', '');
        const parsedCoefficient = ['', '+', '-'].includes(coefficient) ? `${coefficient}1` : coefficient;

        const newCoefficient = parseInt(parsedCoefficient) * parseInt(parsedPower);
        const newPower = parseInt(parsedPower) - 1;
        const signedCoefficient = `${newCoefficient > 0 ? '+' : ''}${newCoefficient}`;

        switch (newPower) {
            case 0:
                return `${signedCoefficient}`;
            case 1:
                return `${signedCoefficient}${variable}`;
            default:
                return `${signedCoefficient}${variable}^${newPower}`
        }
    })

    const result = parsedParts.join('');

    if (result.startsWith('+')) {
        return result.replace('+', '');
    }

    return result;
}
#

power rule in 35 loc

#

🙏

sonic totem
#

New hatred: async Swift

cloud yacht
#

tbh all Swift should be async so that way I can run away while its waiting

placid kraken
#

New hatred: Swift

acoustic imp
#

old news

cloud yacht
#

also

sonic totem
#

Genuinely unusable rn

restive ether
sonic totem
#

I can't get it to work at all

#

Wtf is this

restive ether
#

you might be the first person to bother using it that’s probably why

sonic totem
restive ether
#

that reference might be older than you

sonic totem
#

It is

#

I'm switching to ObjC

restive ether
sonic totem
placid kraken
sonic totem
#

I'm rewriting the entire project

#

Swift rage

hasty ruin
#

Based

placid kraken
#

tbf objc does have async

#

with like dispatch_async

#

dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); lol

visual meadow
sonic totem
#

I’ve got like two and a half weeks no school

#

I’m good

cloud yacht
#

probably somewhere

tepid olive
radiant idol
#

ASYNC SW*FT

sonic totem
#

Don’t get mad

#

You know how I’m resolving it

radiant idol
#

yes İ do

#

İ'm proud of you

native dune
#

swift is probably faster than objc

#

doesnt make it good tho

sonic totem
#

I can’t have Swift in this project because it’s gotta support 15.0b1 troll

acoustic imp
#

🧐

native orbit
#

sounds like a feature not a bug

tepid olive
#

So I want to add the seconds to the time in the status bar, but it only updates every minute. Is there a way to get the status bar to update every second or is that a bad idea

primal perch
radiant idol
acoustic imp
#

Missing anyone ?(16Player like contributions page thing)

restive ether
#

you forgot to add me

sonic totem
#

Maybe remove iCraze idk

restive ether
#

definitely remove capt

radiant idol
#

tired so I can't think of the correct way of doing this, but uh

#

hold on

#

I might have something to do with this in Jade's code

acoustic imp
#

cant u do sm like timeout{ update;} ?

slim bramble
#

@sonic totem you want to be in the contributors ?

slim bramble
slim bramble
sonic totem
#

Nah

slim bramble
sonic totem
#

Just like I wouldn’t credit you for TrollStore

slim bramble
#

Taking that personally

radiant idol
#
@implementation XXXXX {
    NSDateFormatter *formatter
    // ...
}

- (instancetype)init {
    self = [super init];

    if (self) {
        formatter = [[NSDateFormatter alloc] init];
        formatter.locale = NSLocale.autoupdatingCurrentLocale;
        [formatter setLocalizedDateFormatFromTemplate:@"Jmmss"]; // w/ seconds

        // init label or ig you can modify the stock one
    }

    return self;
}

- (void)updateTime {
    if (shouldUpdate) {
        NSString *string = [formatter stringFromDate:[NSDate date]];
        timeLabel.text = string;

        __weak typeof(self) weakSelf = self;
        double delayInSeconds = 1; // every second
        dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
        dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
            [weakSelf updateTime];
        });
    }
}

@end

something like that but obviously you'd need to make this a hook instead of a new class

acoustic imp
#

XXXX

tepid olive
#

Slight issue

#

Doing this in Swift

radiant idol
#

kek

#

skill issue

tepid olive
#

Honestly

radiant idol
#

figure it out then

#

¯_(ツ)_/¯

tepid olive
#

Maybe I should just start using obj-c

radiant idol
#

for tweaks, objc is better

acoustic imp
radiant idol
#

idk

acoustic imp
#

i said anyone not anything

hasty ruin
#

cgrectoop

radiant idol
#

Lmfaoooo

#

Owned

marble jacinth
#

ida 8.3 cracked

cloud yacht