#development
1 messages · Page 506 of 1

Why would that be trying to detect and connect to devices on your local network?
There is no code in there to ask user for permission
Except it doesn't do stuff on local network... it takes an IP you give it and connects to it
then check the settings for your app
It shouldn't matter if its a theos app or xCODE app
xCODE
Just means you are not installing it to the same spot as 3rd party apps
Which has nothing to do with theos
Same place as 3rd party apps?
has anyone written an explanation of their assembly tweaks using theos
If you are writing assembly in your tweak, why would you need an explanation for it?
Oh, I meant a tweak fully written in assembly
just make a tweak project, change tweak.xm to tweak.S and write it in asm
get rid of cflags pretty much
for example the facebook crash one you made all makes sense except I don't understand what .section __DATA, __mod_init_func is, that could just be my lack of arm knowledge tho
that's a constructor
specifically what __mod_init_func is
it’s Bc u are a JavaScript developer
you place a function address under that section to signal that its a constructor
LOL
ooh I see
thank you 
I just realized it's in my bio
hmm what should i write in assembly right now
I might have to use js soon too in college
@lethal ice deez nuts
Write Sentro connectivity module in assembly
also @late ridge you probably wanna start out making a command line tool first in assembly
tweak u gotta do a lot of shit
.

ya that makes sense, I'll try that
wait do you know asm
hmmm why are buttons on the ls not working 
@late ridge if u have any questions make sure to ping @lethal ice @twilit jungle and @narrow mason
true especially @narrow mason
U have to enable user interaction or something
or wait

U had to hook set touches I think
SwiftUI buttons btw
there's probably a view above it
but that's equivalent to UIButton
Unless you hook what I hooked in Veza to get user interaction working
lots of people have issues with the LS
lowkey I was actually gonna ask jules a question abt san antonio but he dipped
I got lazy
what was it
not open source 
CSNotificationAdjunctListViewController
then add it to the stack view
At position 0
wtf
i add that vc at index 0?
not sure how to that in orion but i will try
@tepid olive have you figured out everything?
i just got home so i can try some things now 

im so pissed
havent figured it out either
i used to get that error all the time in objc
yeah it's pissing me off
when i would be using a class method on an instance and vice versa
@indigo peak what are you tryna do now
well
you told me target is what i needed
which helps a lot
but now
when i print target.name()
@interface GameIcon : UIView
-(void)setWins:(int)arg1 ;
-(NSString *)name ;
@end
which is defined here
it prints this
Import it
Sep 4 21:09:54 iPhone MessagesExtension[13585] <Notice>: PENIS (Function)

You can’t just expect the linker to link to nothing
@indigo peak String(target.name)
You could dynamically create it though
You import the framework that has the symbols
@tepid olive
Or you treat it as a UIViewController and set the symbol as a string
no
Tf
\(name)
what
Yes
Why are you casting to NSString
tr
Swift will bridge that to String without you doing anything
i always put a ; after a print idk why
lol
still compile tho
Something something string
Yes but Swift converts it for you
Swift converts most foundation types without you doing anything
By the looks of it you’re trying to cast a closure to an NSString?
Which is never gonna work
Yes and that’s a closure
but it logs (Function)
Yes, a closure
but i want the value
li9ke 8 ball
Sea Battle
BasketBalls
would i do
String(describing: )
?
To get the value if that closure do target.name { NSLog(“\($0)” }
pov ur a nerd
No

Do you know what a block is in ObjC?
i see what they do
Ok well in swift they’re called closures
but idk how it actually works
Tf you trying to do
and or how to actually use them
add another vc to a vc
That’s not how VC’s work
to fix touches/buttons
oh i made it a view oops
regardless the view is what i want
¯_(ツ)_/¯
Technically you would add the view of the second vc to the view of the first subview
But make sure to hold a weak reference to the second view controller somewhere
Or it’ll be deallocated and you’ll be left with a fucked up view

Then create a global reference to it
how
Or figure out how to find it
i forgor 💀 most of the tweak dev things i knew
weak var view: UIView?
@grim sparrow i made name a property and it works
i was calling the getter
but it exists as a property


Make me
! ban
No one gives a fuck if you’re holding a weak reference to a class type
Yes
interesting
I think the template is swift preferences?
I have upset the DGh0st with my rants
Just call it with the original args
Uhh its a view... its not meant to be global. On top of that, doubt any of the people you are telling to make a global reference to is making it a weak reference.
Stop making global references when you can get references to things via chain of calls
Which is 99.9999% of the times
That’s effort
Its 5 mins of effort
If thats too much then you shouldn't be making the tweak in the first place
effort its effort

im not even close to done
there is so much setting up i need to do
converting the RootListController into swift
ah tru
fr
i do not understand this at all
- (instancetype)init {
self = [super init];
if (self) {
HBAppearanceSettings *appearanceSettings = [[HBAppearanceSettings alloc] init];
appearanceSettings.tintColor = [UIColor colorWithRed:1.0f green:0.81f blue:0.86f alpha:1];
appearanceSettings.tableViewCellSeparatorColor = [UIColor colorWithWhite:0 alpha:0];
self.hb_appearanceSettings = appearanceSettings;
}
return self;
}
converting to swift
i am lost
Time to learn swift
i am trying
this is how i learned objc
i want to do something
so i just
do what i can assume
and i look up how to do anything i dont know how to do
remember that for next time
repeat
and bam, i know objc
@late ridge im having some trouble getting cephei to work with swift, so rip cepheim and i also cant get the win spoofer page to load

Bruh 
Learn Swift coding for iOS with these free Swift 5.4 tutorials
If you don’t know swift, then converting to all swift code isn’t ideal.
If you wanna learn it in the future, that above is a great resource to learn
ty
I think it even has a project with SpriteKit
That you can try out.
I did it along time ago I forgot

and lets put it this way, im more likely to convert to swift than i am to convert to assembly
which is why i spent 4 months trying to extend the pool lines with just hooks
but that didnt work

i started the project in late april, early may
and the whole point was to make just 8 ball hacks
like a tweak just for 8 ball
and then i was frustrated with not being able to figure it out and get anything to work
so i tried archery
which was the first game i managed to hook and change values
and slowly on and off i would add more to it, while extended lines haunted me
ok yeah fuck this
fuck swift
swift can suck my balls
true
whoever thought swift was a good idea can eat my balls
Swift >
swift <
I think I’m in love with c++ no cap

Wait till I come back and show you what I have in store
Maybe after about 6 months
f
nobody said it was a good idea
ur loss bro
there is a objc to swift converter online 
i didnt actually think of that 😔
ok yeah fair enough
orion is a beta lol
yea ik
clearly it's rough around the edges
i wasnt expecting it to be perfect
i just prefer that to using objc because i'll use a swift UI and backend, so might as well make the hooks swift 
swift is great but it's hard to justify it for tweaks tbh
i could tell
a lot of people like swift and i was saying to myself "how, this is so annoying"
bridging objc <-> swift isn't perfect
understandable
i basically only use swift
it's great but for tweaks it feels off
i am actually excited to actually try to make a legit tweak in swift
and not remake imessage game hacks

i'm trying to make one
it'll just be a swiftui xenhtml lol
not sure whether the "widgets" will be binaries or json but i'll see

binaries would just be a nsbundle format with a template
boba best
i think that's better tbh, json will make widgets super annoying to make
lucy made prefs in swiftUI at one point I think

You were already told not to with NSLog
Don’t you mean strong reference to the vc?
do you want a idea that's already been executed but badly by another person
The idea is kinda good IMO
leaked fr code
this is bootrom shellcode sir
Same thing
its nothing to do with restoring
@glacial matrix /cc am I somehow overlooking a bug in my code?
try changing it to just bool rv = platform_get_boot_device(...);
nope
🤔 what about if (!platform_get_boot_device(...)) and fuck rv
The function’s int and __attribute__((noinline)) would go in reverse order, but otherwise I don’t see an issue in that function
tbh noinline is redundant, im just paranoid -fno-inline isn't working
@glacial matrix @lethal ice fixed by removing ret var initialization in all those funcs
those are all trampoline funcs so there are all inline asm
you mean getting rid of the line bool rv = false;?
in the function itself I have bool rv = false;
not the one in the screenshot
I changed it to bool rv;
fixed the IDE
spapghetti code
that's what i meant when i suggested this
thats in the screenshot function I changed it in the actual function called
I don’t get what you changed but good for you for figuring it out
Ill link code when I commit
well
Hm?
That would make sense but from my testing it works if it’s weak
If I hold no reference the view just distorts and doesn’t work, but holding a weak reference to the vc works
Wait no
It is a strong reference
Ignore me

Views becoming distorted due to weak/strong references doesn’t make much sense
I may have a screenshot of it
You have to add the weak modifier to variables, right? Otherwise the default is strong
Yeah
_ _
Last time I wrote Swift was 3.1
How is that different from iOS widgets?
It’s on the lockscreen
shut up orange people
You meant <@&417306501066260481>?
@advanced developers
you can interact with them and make them translucent
Yeah I know, I’m just doing it right now only for testing for simplicity and convenience
both of these can be achieved by just tweaking stock widgets

Converting JSON to UI code is fun

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
use an iOS 15 device with Xcode 12
i said it would be binaries 
just write the code in a template and compile to a nsbundle
it's better than json or something 
because the person can compile things themselves?
the swift compiler runs almost everywhere 
@heavy kernel
@lofty juniper scam
nvm i can delete it myself here 

there was a nitro scam
evelyn when they realize they can delete messages 
i need that emote
ty

:sipsip:
noooo
@indigo peak do u know anything that can be hooked to change the reachibility thing
Like add stuff to it
And shit
finally hswidgets for ios 14
@twilit jungle we need LSWidgets now
HSWidgets deprecated

@grim sparrow help me fix issue @grim sparrow
what issue
dm issue
It’s in objc, but here are 2 good places to find open source tweaks
There’s some reachibility tweaks in the first link
@grim sparrow hi

ok so
stop being a @grim sparrow
class SeaHook : ClassHook<SeaScene> {
func update(_ arg1: Double) {
orig.update(arg1)
let shipList = Ivars<NSMutableArray>(target).ships
for ship in (shipList as NSMutableArray as! [SeaShip]) {
ship.sprite.isHidden = false
}
}
}
ok

that gives a Undefined symbols for architecture arm64:
we out here
on which object
Fr
on SeaShip?
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SeaShip", referenced from:
objc-class-ref in Tweak.x.swift.63f79fb2.o
*/```
Force unwrapping 
yeah me no like that
eh I guess

So Amy
Only thing is
I need to set the sprite to not hidden
Not the ship
So it’s ship.sprite.ishidden
isBidden
o
uh
I guess if spirits is a member of ship
Then that would be ok I guess
But when I do as![SKNode] it won’t work
is sprite a property of the seaship object
yes
What's da error

because its not
what did you do in objc
Hold
% hook SeaScene
-(void)update:(double)arg1 {
%orig;
if([preferences boolForKey:@"seeShips"]) {
for(SeaShip* ship in [self valueForKey:@"ships"]) {
ship.sprite.hidden = false;
}
}
}
%end
fruhh
when i run make package install i get this error
clang: error: no input files
make[3]: *** [/Users/giannis/zeus/.theos/obj/arm64/Tweak.x.c5c2f532.o] Error 1
rm /Users/giannis/zeus/.theos/obj/arm64/Tweak.x.m
make[2]: *** [/Users/giannis/zeus/.theos/obj/arm64/FirstTweak13.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [FirstTweak13.all.tweak.variables] Error 2
could someone help me?

run make clean
i get this error... > Making clean in zeus…
make: *** zeus: No such file or directory. Stop.
make: *** [internal-clean] Error 2

you fucked up
i'll try that
make package install sex
I guess it still works but why is still there leftover text
I have to do some checks to make sure I’m removing the right button first
But when I get home
I made that on my phone in the car
oh wow
Bc I just made the layoutSubviews method do nothing
I didn’t make it removeFromSuperview

Would removeFromSv remove it completely
o
i made a new one and copied everything over but again the same errors
==> Compiling Tweak.x (arm64)…
clang: error: no input files
make[3]: *** [/Users/giannis/thunder/.theos/obj/arm64/Tweak.x.4aa6ad30.o] Error 1
rm /Users/giannis/thunder/.theos/obj/arm64/Tweak.x.m
make[2]: *** [/Users/giannis/thunder/.theos/obj/arm64/Thunder.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [Thunder.all.tweak.variables] Error 2
same
removeFromSuperview
%hook UIView
- (void)layoutSubviews {
%orig;
self.hidden = YES;
}
%end
does this work tro

Hmm yes thanks I will do that and install right away
you’re wrong
That’s the syntax for Ivars in origin, right?
@indigo peak what's the hello world equivalent to a tweak
I like to hook SBStatusBarManager with the method handleTapWithEvent I think it’s called and NSLog something
You could also hook springboard with applicationDidFinishLaunching and NSLog something
%hook SBStatusBarManager
-(void)handleStatusBarTapWithEvent:(id)arg0 {
NSLog(@“hello world”);
%orig;
}
%end
%hook SpringBoard
-(void)applicationDidFinishLaunching:(id)application {
%orig;
NSLog(@“hello world”);
}
%end
or do what I said
Or if you’re me is lines
Mr assembly
Just say if you’re weird
Because you hate yourself
proceeds to write tweaks in swift
I realized long ago this server is more of a mental asylum

I don't use objective c because I do not hate myself
honestly looks quite fun
No that’s for when you get into tweak development
Bro the only thing you need to be getting into is the shower
go ahead, use a function from another file without needing to import it
I literally took a shower today
Objective c looking ass

Go ahead, don’t use semicolons
I’m waiting
lol I just saw that opportunity and had to take it
me tryna find the semicolons in swift
no one is doing print("sex"); print("sex 2: the sequel")
I think everyone using swift is just putting them in diff lines

I would definitely wanna try to make a assembly tweak, but I don't know the instruction set, I only know a bit of risc-v :(
Sometimes I do ; because I don’t want to make a statement span over multiple lines
Because I hate myself
lol
so I would have to learn some basic instructions, before I can create something
I want to make a simple tweak in assembly
So I can show off to my comp science teacher
when you create a function of 5 lines and start overthinking how you can make it just one by removing stuff
then ending up breaking something


objective c mfs on their way to convince people swift is actually just ball piss in the form of a programming language

I just don’t like either
Sbingner
Swift starts to get fun when everything starts to work out
And you start using concepts like optionals to your advantage

Never forget
Ok we get it, you’re weird
bro optionals are good
Absolute moment
Optionals are very good yes
me On my way! To be lazy and just do ?? "not known lol" when I don't want to bother finding out why the variable is nil

Ok im overusing the emoji
💀
Theos I think is installed correctly and the makefile used to work correctly before
@floral estuary did you make this yourself or are you trying to compile something you found online
It’s mine I’m trying to learn to develop tweaks and I made one but my old Mac OS broke and after restore I reinstalled Theos but I have those errors now... before everything worked correctly
Hm that is quite unfortunate
FINALPACKAGE = 1
Turns off warnings
GO_EASY_ON_ME = 1
support ios from 13.0 to 13.7
export TARGET = iphone:clang:13.7:13.0
FIX TOOLCHAIN CODE
export PREFIX = "$(THEOS)/toolchain/XcodeDefault.xctoolchain/usr/bin/"
IP for device to install
THEOS_DEVICE_IP=192.168.1.1
export THEOS_DEVICE_PORT=2222
COMPILE ARCHS
ARCHS = arm64 arm64e
what i'm modifing
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
name and frameworks i'm using
TWEAK_NAME = Thunder
Thunder_FRAMEWORKS = AudioToolbox UIKit
Thunder_EXTRA_FRAMEWORKS += Cephei
Thunder_LIBRARIES = sparkapplist
Thunder_FILES = Tweak.x
Thunder_CFLAGS = -fobjc-arc -Wno-deprecated-declarations
SUBPROJECTS += thunderprefs
include $(THEOS_MAKE_PATH)/tweak.mk
FOR PREFERENCES
include $(THEOS_MAKE_PATH)/aggregate.mk
respring after install
after-install::
install.exec "sbreload"
oh thank you!! i'm learning the past few months so these was my understanding lol
when you say filesystem layout what do you mean? should i run a command for that?
bozo
-rwxr-xr-x 1 giannis staff 108 Aug 29 18:46 FirstTweak13.plist
-rwxr-xr-x@ 1 giannis staff 938 Sep 5 21:14 Makefile
-rwxr-xr-x 1 giannis staff 3895 Aug 29 18:46 Tweak.h
-rw-r--r--@ 1 giannis staff 61939 Sep 5 21:06 Tweak.x
-rw-r--r-- 1 giannis staff 57 Sep 5 19:07 Zeus.plist
-rwxr-xr-x 1 giannis staff 12933 Aug 29 18:46 control
drwxr-xr-x 9 giannis staff 306 Aug 29 18:46 firstpreferences
drwxr-xr-x 193 giannis staff 6562 Aug 29 18:46 packages
these are in project folder
why is ur user group "staff"
and project's folder located in user folder
what it should be?
oh wait, are you on windows?
nope macos
huh ok
i made a new project before trying to fix my old project and copied code so lets try to fix this because it's cleaner
FINALPACKAGE = 1
Turns off warnings
GO_EASY_ON_ME = 1
support ios from 13.0 to 13.7
export TARGET = iphone:clang:13.7:13.0
FIX TOOLCHAIN CODE
export PREFIX = "$(THEOS)/toolchain/XcodeDefault.xctoolchain/usr/bin/"
IP for device to install
THEOS_DEVICE_IP=192.168.1.1
export THEOS_DEVICE_PORT=2222
COMPILE ARCHS
ARCHS = arm64 arm64e
what i'm modifing
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
name and frameworks i'm using (?)
TWEAK_NAME = Thunder
Thunder_FRAMEWORKS = AudioToolbox UIKit
Thunder_EXTRA_FRAMEWORKS += Cephei
Thunder_LIBRARIES = sparkapplist
Thunder_FILES = Tweak.x
Thunder_CFLAGS = -fobjc-arc -Wno-deprecated-declarations
SUBPROJECTS += thunderprefs
include $(THEOS_MAKE_PATH)/tweak.mk
FOR PREFERENCES
include $(THEOS_MAKE_PATH)/aggregate.mk
respring after install
after-install::
install.exec "sbreload"
the makefile
-rw-r--r--@ 1 g_niarchos staff 883 Sep 5 21:50 Makefile
-rw-r--r--@ 1 g_niarchos staff 108 Sep 5 20:04 Thunder.plist
-rw-r--r--@ 1 g_niarchos staff 61939 Sep 5 20:04 Tweak.x
-rw-r--r--@ 1 g_niarchos staff 12931 Sep 5 20:03 control
drwxr-xr-x 9 g_niarchos staff 306 Sep 5 21:40 thunderprefs
Makefile:37: /aggregate.mk: No such file or directory
make: *** No rule to make target '/aggregate.mk'. Stop.
it gives me this error
did you install theos under root
oh yes it's empty

what’s the output of $THEOS with sudo
nothing its empty
set theos env var
If you’re really smart you don’t install theos and don’t get into tweak development
wise man

Step 2
uhh I think zsh uses .zprofile
correct me if Im wrong tho, both might work
y u on sierra 
yep
what server can I get this emote

I can assume I am not getting invited
Can’t you just do source ./profile
@late ridge
Pogger

yes now echo $THEOS prints theos path
pog
now try
make clean package
and now the problem i originaly had these errors
==> Compiling Tweak.x (arm64)…
clang: error: no input files
make[3]: *** [/Users/g_niarchos/thunder/.theos/obj/arm64/Tweak.x.4aa6ad30.o] Error 1
rm /Users/g_niarchos/thunder/.theos/obj/arm64/Tweak.x.m
make[2]: *** [/Users/g_niarchos/thunder/.theos/obj/arm64/Thunder.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [Thunder.all.tweak.variables] Error 2
Tweak.x.m
Yeah it does
i used the toolchain from xcode that supports ios 13 and its in theos folder with toolchain
can you compile a simple project @floral estuary
Man.
ya u can always try running
$THEOS/bin/nic.pl and trying to compile the basic iphone/tweak template
to see if it's working at all
^
try it
tried that and again the same errors
you could always reinstall theos
i already did that today
😂

i tried to run again the first step in theos guide installation and i noticed that when i run brew install ldid xz
i get this
@grave sparrow maybe thats what makes the problem?
virus??
what do you mean? if i understand correctly it can't install openssl 1.1
how to find this?
run which clang
this is the output /usr/bin/clang
what xcode is installed
xcode 9.2 the latest support for sierra
that’s why

@floral estuary make an issue on theos github, it probably doesn’t support xcode 9.2/ macOS Sierra
you can install Xcode 12 and use only the toolchain maybe, not sure though
Compile on device 
it used to work before... i just restore system thats weird
n f r
n f r
n f r
That’s what I do

At least objc, swift I compile on wsl
I prob should be compiling for objc on wsl
i don’t see a reason why you wouldn’t compile on computer if you have access to wsl
well
i never actually setup wsl
unttil like
2 days ago
i was always compiling on device bc even though i had a pc, i would be working on tweaks on my phone as well
i would ssh over from my pc at home but at school i would do it on my phoen
and i never changed how i did it
@tepid olive

stil getting the fucky wucky error
i get it much more in swift than i did in objc
like i would get it in objc by calling a instance method on a raw class
but now, i dont even know what the fuck im doing wrong
could you possibly tell me what im doing wrong
class SeaHook : ClassHook<SeaScene> {
func update(_ arg1: Double) {
orig.update(arg1)
let shipList = Ivars<NSMutableArray>(target).ships
for ship in shipList as! [SeaShip] {
ship.sprite.isHidden = false;
}
}
}
no idea

this sucks
i get the same error when i do this
// class BeerHook : ClassHook<BeerView> {
// func killCup(_ arg1: Any?) {
// let cupsList = Ivars<NSMutableArray>(target).cups
// for cup in (cupsList as NSMutableArray as! [BeerCup]) {
// orig.killCup(cup)
// }
// }
// }
btw i use fish


ngl, using orion with sourcekit auto completion is going to be nice
Based
@tepid olive so i managed to get rid of the error on the compile, but now it crashes the app
what was the fix
do tell
class SeaShip: SKNode {
var sprite: SKSpriteNode?
}
at the top of the file
i just made it a class
oh fair enough
but like i said, it just gets passed the compile error
im not actually sure whats causing the crash, other code, or this code
i doubt that fixed it
now im getting a seg fault
lmfao
@tepid olive the reason why i think its not working for me at least is because im defining SeaShip in the Tweak.h - which is being imported in TestSwiftC - and when you compile a tweak (at least in Orion, idk about Theos) it compiles the .x.swift file first and THEN compiles the Tweak.h which has the symbols for the class
but thats prob now how it is
thats just what i was speculating
i dont know about that one
on a objc to swift converter i found online
i slapped a @interface into it
and it produced the class SeaShip: SKNode {}
so i thought i could bypass the order of the compiling by making a hacked together interface in the swift file
@indigo peak you'll need to mark that class as @ objc as bare minimum lol
(remove space)
¯_(ツ)_/¯
Marking it with @objc did no fix it
then you need to interface somehow
TIL people have monthly subscriptions for their tweaks not including patreon
for the sake of not offending anyone here who might do that I won't rant abt it, but like mcbruh ._.
you're not netflix or spotify
Ur just behind the game bro
sub to my patreon
ok
What is your only fans
Neeerrrrdddddd

Neeerrrrdddddd
True

Hi any iOS developer here
Yeah many
No we are android developers
im a batch scripting expert whats up
i'm black
Wait fr I might bounce a question off you
sure
yeah i'm a virgin why
can't relate
I'm garlic bred
lol

He used swift. Would you save him
this string is too loud how do I mute it
.mute()
Yes, bc Swift feels like python. And I love python.
One is slow af tho
The other is epic
i know, swift is so slow
Yes, but apps are built on Swift
apps in swift are better than apps in cpp
tweaks in swift though 
You can use cpp
make the functions and variables in a cpp file
Then use a bridging header
And use those functions in swift
Someone could’ve told me that earlier
@indigo peak once you make the complete remake
Will you continue on with development of your tweak in swift
Or will you update it in obj c
probably not

if i still make updates it will be in objc
W
@slender glade do you know why the NSLog isnt running?
class AnagramsHook : ClassHook<AnagramsScene> {
var anagramsButton: UIButton = UIButton(type: .roundedRect)
func startGame() {
anagramsButton.frame = CGRect(x: UIScreen.main.bounds.size.width / 2 - 110, y: 10.0, width: 100.0, height: 40.0)
anagramsButton.backgroundColor = UIColor(red: 255 / 255.0, green: 255 / 255.0, blue: 255 / 255.0, alpha: 0.85)
anagramsButton.setTitle("Reveal Words", for: .normal)
anagramsButton.setTitleColor(UIColor.black, for: .normal)
anagramsButton.addTarget(self, action: #selector(self.anagramsShow), for: .touchUpInside)
anagramsButton.layer.cornerRadius = 14
target.view?.addSubview(anagramsButton)
orig.startGame()
}
func toResult() {
anagramsButton.removeFromSuperview()
}
// orion:new
func anagramsShow() {
//target.revealWords(true)
NSLog("PENIS pressed")
}
}
anagramsButton.addTarget(self, action: #selector(self.anagramsShow), for: .touchUpInside)

Add objc to the func 
gonna do nothing
but
Wait
@indigo peak but it reveals the words
right
If it doesn't
Then the function probably isn't being called properly (??)
Which would be why NSLog ain't working in the first place

WAAAIT A SECOND
@indigo peak I may embarsss myself
But don't you need to add () when calling it
When you create a c, cpp, or obj c file Xcode will ask you
"You wanna make a bridging header"
you should say "ye"
then you import that c, cpp, or obj c file in the bridging header
there's a THEOS_BRIDGING_HEADER makefile thing iirc
or
PROJECTNAME_BRIDGING_HEADER
i forget
bro what
wtf do you mean fucked up
What did the bringing headers do to you
Did they fucking kill you
make a file called "Bridge.h" or something and in it just put #Import "file name.c or something"
// Bridge.h
@interface Cum : Sperm
@end
// Tweak.x
#include "Bridge.h"
i think thats what youre talking about Mat
in objc yeah
To use it in swift on iOS you need to bridge it
So first you make a file called Task.h
Lemme get the code
cant you do
#import <Foundation/Foundation.h>
@interface NSTask : NSObject
- (instancetype __nonnull)init;
- (void)launch;
- (void)setArguments:(NSArray<NSString *> * __nullable)arg1;
- (void)setLaunchPath:(NSString * __nullable)arg1;
- (void)setStandardError:(id __nullable)arg1;
- (void)setStandardOutput:(id __nullable)arg1;
- (id __nullable)standardError;
- (id __nullable)standardOutput;
@end```
This is the Task.h
Then you make a bridging header, in that Bridging header, you put #Import "Task.h"
It does bridge the two languages
interesting
magic
@indigo peak
hi
Did you write this thread
while this is absolutely revolutionary for those who hook into Swift apps, please don't use this to hook anything other than that.
explanation why further in this thread because that's kinda long https://t.co/wq3gxBDdzB

mf was blurting out words bro
he also invalidated his own point
he said daemons and frameworks
ok well the ~80% of tweak devs will go back to hooking apps

trol
who even is this guy
anemone?

So
Who wanna edit this
i would
but idk how to sound smart
Same
uhhhh so today uhhh orion was released and uhhh there are some slight discrepancies and compatibility issues between Swift and Objective-C, but now you are able to compile tweaks for arm64/e devices running ios 12-14. Although Orion is in the beta stages (ABI-unstable), tweaks can be compiled. The docs will be 100% completed soon™️.
perfect

there are too many uhhs here
You make it sound like you’re moaning
moan so today moan orion was released and moan there are some slight discrepancies and compatibility issues between Swift and Objective-C, but now you are able to compile tweaks for arm64/e devices running ios 12-14. Although Orion is in the beta stages (ABI-unstable), tweaks can be compiled. The docs will be 100% completed soon™️.
moan ÚwÚ so today moan ÚwÚ owion ^-^ was weweased and moan ÚwÚ thewe awe some swight discwepancies and compatibiwity issues between Swift and Objective-C, but nyow whispers to self you awe abwe t-to compiwe tweaks fow awm64/e devices wunnying i-ios 12-14. Awthough Owion is in the x3 beta >w< stages (ABI-unstabwe), tweaks c-can be compiwed. the runs away docs wiww be 100% ;;w;; compweted sees bulge soon™️.
This is the most disorganized repo I've EVER seen

It is essential that ShortLook is built correctly in release mode, to ensure our DRM and obfuscation is applied. It is required that you test all release builds to ensure that they work correctly -- obfuscation may break certain code changes, so this testing is needed. Please also ensure that the DRM is functioning as intended before releasing.
As of ShortLook 1.0.18, Dynastic Rights Mangememt now uses it's own toolchain.
To get setup with it, visit the dynastic/hikari release page and follow install instructions for the latest toolchain.

OSS with DRM 
The page they linked isn't even working
lol
private repo moment
it was probably just open sourced as is from the private repo without removing that stuff from the readme
just cringed
the dynastic version of hikari is the private version
When compiling tweaks, does it automatically remove dead code? (because it doesn't look like it)
Whats dead code?
code that doesn't get called
How does a compiler know that it won't be called?
because i don't call it 
me when I remove code that has been sitting there unused for the past 3 years
I'm currently working on 5 different files and I only need to activate one (for testing)
and whats the guarantee that it won't be called by another binary?
hmm there is none, although some compiler flag that forces the removal would be nice if it exists
a compiler is going to remove stuff that is unused that is not global











