#development
1 messages · Page 483 of 1
well u could just set the vars it wants
whats the cflags for
oh i forgot its in /usr/local
yea
yea
yea
one thing thats weird
I've noticed some projects use eg curl_LIBS and others use libcurl_LIBS
yeah so it worked, but now i need sqlite3
installed
can you make it so every configure script uses /usr/local instead of /usr
set cppflags
it asked me for the install prefix of iconv, and i just installed with apt. i do /usr/local right?
screw it i'll just do --without-iconv
holy shit
that took forever
oh, and also, is there an easy way to find dependencies of software
looking at the configure script's output i can tell that this will be a very minimal installation of PHP
don't do that actually, see the conversation after my message
docker?
o
jew mexico
jew york
oh so I change the toolchain? which do you recommend?
idk docker, how do I run the image?
nvm nvm
@tepid olive is getting the macos sdk actually required for what i'm doing?
Only if you want to work with procursus
Which is preferred if you’re working with something that has cross compiled dependencies
i don't plan to work with procursus unless I submit php
Then good luck
thanks
Full php needs a lot more dependencies than we have currently
How do I update the toolchain?
On linux?
ios
Install clang
Its just called “clang”
I think I did already
Can you run “clang -v”
^
Can you run what i said
oh no
wait let me install it
clang works now
clang version 10.0.0 (git@bingner.com:elucubratus.git 38d9371d79ade653c47347ca418b91e61808011c)
Target: arm64-apple-ios7.0
Thread model: posix
InstalledDir: /usr/bin```

oh it works now
elucubratus isnt that great for compiling fyi
hmm as long as it compiles, im happy for now 😂
Aight
> Making all for tweak tweakname…
make[2]: Nothing to be done for 'internal-library-compile'.```
any idea what that means?
It means its already compiled
Run make clean first
oh it looks like it worked
Well, it installed and all that. The tweak itself doesn't. I copied something from an example which should make a red square appear on the lock screen; ```
@interface SBLockScreenViewControllerBase : UIViewController
@end
%hook SBLockScreenViewControllerBase
-
(void)viewDidLoad {
%orig;// our code UIVisualEffectView *redRectangle = [[UIVisualEffectView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)]; [redRectangle setBackgroundColor:[UIColor redColor]]; [self.view addSubview:redRectangle];
}
%end```
> Making all for tweak xxx…
==> Preprocessing Tweak.x…
==> Preprocessing Tweak.x…
==> Compiling Tweak.x (arm64)…
==> Compiling Tweak.x (armv7)…
==> Linking tweak xxx(arm64)…
==> Generating debug symbols for xxx…
==> Linking tweak xxx(armv7)…
==> Generating debug symbols for xxx…```
could it be that its not building it for my arch?
What arch are you
arm64 so it should work
iPhone11,2 , running iOS 14.2
That gives me a segmentation fault
Segmentation fault: 11
ARCHS = armv7 arm64 arm64e
TARGET := iphone:clang:latest:7.0
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = tn
tn_FILES = Tweak.x
tn_CFLAGS = -fobjc-arc
include $(THEOS_MAKE_PATH)/tweak.mk```
same when only using this
I should probably have theos do arm64e by default on linux/ios now
it's been set to macOS only so far because the source wasn't released for ages
I was about to pr this 
go ahead if you wanna get your name in the theos contributors lmao
im not bothered
it's an easy one, it just checks if platform is macosx wherever it calculates the default ARCHS
why is armv7 still default though
armv7 got dropped in 2016 no?
for iOS support at least
flame repo guy
I don't know exactly which toolchain you're meant to use but it definitely needs to be one newer than the one you're using
tee are one fecta
correct but Theos default deploy target is 7.0
goodmorning flame repo guy
it builds just fine without specifying archs in the makefile
it shows up in cydia and all that
but the code doesn’t run or something
we're supporting as far back as the toolchain can do ootb for best default results, though of course you're much better off setting a TARGET to your exact supported minimum version so clang doesn't yell at you to use @available and the generated binary can be more optimised with modern dyld stuff
right, as already mentioned the issue you're having is that you need to build for arm64e, but arm64e isn't supported by your toolchain
right
is there a way to fix that? I think I installed the latest clang version
so where do you have clang installed from?
cydia, let me send a screenshot
which repository I mean
:P
I appreciate the help btw. As you might have guessed, I’m pretty new to ios tweak development.
as an alternative you can install on Linux if that isn't too inconvenient for you. if you're on Windows there's WSL for that
I tried that before. I’ll try that again.
does that generate a deb file I can install or something?
yeah
it’ll install on your device for you over SSH
==> Signing tw…
bash: /home/user/theos/toolchain/linux/iphone/bin/ldid: cannot execute binary file: Exec format error
make[2]: *** [/home/user/theos/makefiles/instance/library.mk:51: /home/user/tw/.theos/obj/debug/tw.dylib] Error 126
rm /home/user/tw/.theos/obj/debug/tw.dylib.4319587c.unsigned
make[1]: *** [/home/user/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2
make: *** [/home/user/theos/makefiles/master/rules.mk:117: tw.all.tweak.variables] Error 2```
amys aren’t real
yeah I remember thats what it did when I ran it on my device as well. getting new errors on linux though.
ran make package and this is the result ^
did everything described here; https://github.com/theos/theos/wiki/Installation-Linux
which of the toolchains did you use?
the one without swift
no idea what the issue is, that binary should work fine then
possibly should retry downloading and extracting it again just in case something went wrong
alright, i'll try that now
Do I add the ARCHS = ... line in the Makefile? @lime pivot
I also noticed the Makefile uses $THEOS_MAKE_PATH, but when I echo it, its nothing.
oh it worked!
🥳
@tepid olive nice profile picture
thank you so much
nope :(
oh
i used to have it as a gif with glowing eyes
it's set within the make process by common.mk
it's a she right
meanwhile my cat just cbf
how old is he?
is that metric years
its YM years
aussie kitty
bonus oreo content for you
bro this is this the most cat activity the server has had in a while
does it hover everywhere or does it just have retractable legs
believe it or not this has an actual term, loafing
🍞
cats are weird in that their landing gear goes up when they have landed
bread
but it's out when they hover
🥖 🍞
can anyone confirm if this is supposed to work? https://github.com/ZaneH/Tweak-Series/blob/master/redrectangle/Tweak.xm
I tried to compile a tweak with that code, installed it. But it doesn't work for me. What am I missing?
oh no a youtube series
Oreo is about that old
cut me some slack :D
he was a few months old when we adopted him so not sure how old he really is
I didn't get it from youtube though
the difference between him as a kitten and as an adult lol
I can explain it as I can lean down while wearing a hoodie without worrying about him grabbing the drawstrings
l a z y
I don't understand why the tweak isn't loading. Do I have to do anything else apart from installing it?
jailbreak your phone
it's from 2018 so it probably just doesn't work any more
i’ve never jailbroken in my life
you'll just go to safe mode
alrighty, here goes nothing :D
you'll just go to safe mode
this is some quiet murderer whispering shit
this is the first time im sad my phone didn't crash when installing a tweak :'D
you have any idea what I can do now :(
“don’t worry, if the bulletproof vest fails, you’ll just reboot into safe mode”
lol
@lime pivot can you point me into the right direction debugging whatever is going on?
the build didn’t fail, no error/warning
did it install? and are you building the correct tweak?
I’m pretty sure I am
this is the code i’m using
but it doesn’t crash
Well, did it install?
and you are not in safe mode?

nope
Are you running make clean, before building?
make clean do do
will try that now
no success
Makefile Tweak.x control tn.plist packages```
do I specify archs in the Makefile or something?
Whats in tn.plist?
Try uninstalling and reinstalling. Stuff may be cached
Nice
How to set up theos on Mac
Segmentation fault (core dumped)
Did that two times now
{ Filter = { Bundles = ( "com.apple.springboard" ); }; }
iPhone XS
building on linux * my bad XD
WSL though, not sure if thats a problem
how do I see exactly?
So you did get segmentation fault on device when running it with the abort() code?
no, when running make package
How to google or how to check pinned messages
Oh, share the full output you got

it did after adding the ARCHS = ... line
You fked your environment 
its a new env :(
Does it segfault after removing the ARCHS?
nope

> Making all for tweak elmoware…
==> Preprocessing Tweak.x…
==> Preprocessing Tweak.x…
==> Compiling Tweak.x (armv7)…
==> Compiling Tweak.x (arm64)…
==> Linking tweak elmoware (arm64)…
==> Linking tweak elmoware (armv7)…
==> Generating debug symbols for elmoware…
==> Generating debug symbols for elmoware…
rm /home/chef/elmoware/.theos/obj/debug/arm64/Tweak.x.m
rm /home/chef/elmoware/.theos/obj/debug/armv7/Tweak.x.m
==> Merging tweak elmoware…
==> Signing elmoware…
> Making stage for tweak elmoware…
dm.pl: building package `com.elmoware.elmoware:iphoneos-arm' in `./packages/com.elmoware.elmoware_0.0.1-7+debug_iphoneos-arm.deb```
worked perfectly fine
yeah im not sure why it doesn't do arm64e
Because the default archs depends on the sdk
what do you mean?
oh, add it to the makefile again?
Yeah
which ones, only arm64 and armv7?
What you had before
which caused the segmentation fault, correct? sorry for the questions but i'm trying to make sure there is no miscommunication.
Yeah, want to see what step its segmentation faulting on
instantly
its the only thing it outputs
$ make package
Segmentation fault (core dumped)```
run “make package messages=yes”
same thing
smaller size or the bigger size?
bigger one
swift moment F
I did the other one first though
that didn't work
shall I remove the whole theos folder and reinstall?
You can try removing just the toolchain folder
But both of those toolchains should work, bigger one is a fork of the smaller one so...
rm -fr $THEOS/toolchain/
and then run the thing on the github page, right?
Yeah
alright, just a sec
ah yeah... thats why I installed the swift one
bash: /home/chef/theos/toolchain/linux/iphone/bin/ldid: cannot execute binary file: Exec format error
@twilit jungle wth is ur pfp brother
Its me wdym
i didn't realize white people had the last name patel
why am I getting this error :'(
waiting for the 
white people
who tf uses discord in white mode
ghost is a race shifter
^
he can turn white and black on demand
man, i got too used to it now
not like i'm using discord light mode in the night
One simply does not get used to being blinded

==> Signing elmoware…
bash: /home/chef/theos/toolchain/linux/iphone/bin/ldid: cannot execute binary file: Exec format error
make[2]: *** [/home/chef/theos/makefiles/instance/library.mk:51: /home/chef/elmoware/.theos/obj/debug/elmoware.dylib] Error 126
rm /home/chef/elmoware/.theos/obj/debug/elmoware.dylib.4319587c.unsigned
make[1]: *** [/home/chef/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2
make: *** [/home/chef/theos/makefiles/master/rules.mk:117: elmoware.all.tweak.variables] Error 2``` Any ideas guys?
are u on linux
Need to find ldid from somewhere else
WSL
sbingner needs to fix his toolchain
bingner's broke?
Oh
procursus ldid works
sad fella hours.
Well this is precompiled so it shouldn't be an issue
and the xcode one obviously
How do u get procursus macOS
which one do I install from where?
you can try installing the bigger sized toolchain and copy the ldid from that one to the smaller one
use katris tool chain
what the dog doing
^ does that work for you without segmentation faults?
methra1n
setting up and keeping a maintained linux ios toolchain is harder than doing the development on-ios imo
yea
too much to do

ldid isn’t real it can’t hurt you
he is and he does
eh Apple builds everything except cctools for Linux at this point
I have a toolchain that’s under CD, needs the Orion branch tho so I haven’t made it official yet
why do people keep making these
because supercharge isn’t out yet (:
supercharge? more like supercum
Don't need updating if it works correctly
true
most of these never work without issues
F
...
swift-5.3.2-RELEASE-ubuntu18.04/usr/bin/clang-10
/*stdin*\ : Read error (39) : premature end
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
chef@x:~$```
linux isn't treating me well today

how did you install it?
Also thats the same toolchain as the one on github page (bigger size)
wget https://github.com/CRKatri/llvm-project/releases/download/swift-5.3.2-RELEASE/swift-5.3.2-RELEASE-ubuntu18.04.tar.zst
oh
so... what could possibly be left to try to fix this 😂
using the smaller sized toolchain and copying ldid from somewhere else
what do you suggest for a ldid source?
The bigger sized toolchain, lol
the crkatari one?
Yeah, download that and then copy the ldid in there to $THEOS/toolchain/linux/iphone/bin/ldid
is everything on the system latest?
yeah, the buster one worked though
Use wsl2 and it’s fine it’s some wsl bug that only affects that ldid
Wait which distro are you using?
ubuntu

probably one
W
Well use 2 then
did that, can I now run the same installation?
I have it fixed in an updated toolchain but I was trying to make lldb work with arm64e better as well and that seems impossible so I haven’t finished testing it since I got sidetracked with ios15 checkrain etc
Seemed to be related to the way I made that ldid static
It works fine tor compiling with all of mine, lldb on arm64e not so much… also his is kinda broken on some other stuff I noticed but I forget exactly what it was
I enabled wsl version 2, why was wsl 1 not working? @twilit jungle
true
hmm so I redo everything I did and it should work?
lldb arm64e works for the most part
WSL2 is just better anyways
breakpoints are a little broke though lol
does wsl2 work without restarting or reinstalling the distro?
You might have restart your PC that is it
okok, see you in a few :)
iMobile question … when using idevicediagnostics mobilegestalt BatterySerialNumber … how do I output just the key value (the serial number)?
Well thats the most important part
:troll:
I installed WSL 2, got it all running and what not
but make package is taking forever
no output
progress though :D
Why doesn't English have syntax highlighting
make package has been running for 10 minutes without any output
do I wait or is this a lost cause? 🤣
something is wrong
did it come with make
make is installed
$ make -v
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.```
is the theos variable set in your environment
$ echo $THEOS
/home/chef/theos```
f
yup
try it with a new project
this is a new project
ill make another one
Big loss
its only when I add arm64e to the ARCHS
:((((
lets say I do this on a raspberry pi, you reckon it would work?
doubt it would be a fun experience
I have no options left 
lol thats going to be worse than WSL
==> Compiling Tweak.x (armv7)…
bash: /home/pi/theos/toolchain/linux/iphone/bin/clang++: cannot execute binary file: Exec format error
make[3]: *** [/home/pi/theos/makefiles/instance/rules.mk:262: /home/pi/elmoware/.theos/obj/debug/armv7/Tweak.x.425340a7.o] Error 126
==> Compiling Tweak.x (arm64)…
bash: /home/pi/theos/toolchain/linux/iphone/bin/clang++: cannot execute binary file: Exec format error
make[3]: *** [/home/pi/theos/makefiles/instance/rules.mk:262: /home/pi/elmoware/.theos/obj/debug/arm64/Tweak.x.1a39a41d.o] Error 126
rm /home/pi/elmoware/.theos/obj/debug/armv7/Tweak.x.mrm /home/pi/elmoware/.theos/obj/debug/arm64/Tweak.x.m
make[2]: *** [/home/pi/theos/makefiles/instance/library.mk:52: /home/pi/elmoware/.theos/obj/debug/armv7/elmoware.dylib] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/home/pi/theos/makefiles/instance/library.mk:52: /home/pi/elmoware/.theos/obj/debug/arm64/elmoware.dylib] Error 2
make[1]: *** [/home/pi/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2
make: *** [/home/pi/theos/makefiles/master/rules.mk:117: elmoware.all.tweak.variables] Error 2```
yup

did sbingner's toolchain not work after copying ldid?
i don't think I did it correctly, ill try that one more time
Or wait you don't even have to copy ldid after changing to wsl 2
i'll reinstall it all
its just an endless wait when running make package @twilit jungle :'D
run it with messages=yes
nothing happens
what step does it endlessly wait on?

$ make package messages=yes
I am going to go ahead and blame this on ubantu
what other options do I have at this point lol
resetup everything? a pure linux environment? a macOS environment? worse case scenario develop on device
update your toolchain for that
I can try https://github.com/theos/theos/wiki/Installation-iOS again
4. Get the toolchain:
Theos Dependencies installs iOS Toolchain.
which do you recommend?
there should be only 1
well I have that installed
and thats how I got that error
but we'll see
root# make package
Segmentation fault: 11```


:')

That would be an interesting twist of events. Don't recognize either one of those faction as a country.

invisible dgh0st
Only invisible to the people that don't believe
just did the whole shabang on kali. no luck @twilit jungle :'D
nghost
this is not gonna help in any way, but please don't be root to use theos
🟥 🟥 🟥 🟥 🟥 🟥 🟥 🟥
🟥 🟥 🟥 ⬜ ⬜ 🟥 🟥 🟥
🟥 🟥 🟥 ⬜ ⬜ 🟥 🟥 🟥
🟥 ⬜ ⬜ ⬜ ⬜ ⬜ ⬜ 🟥
🟥 ⬜ ⬜ ⬜ ⬜ ⬜ ⬜ 🟥
🟥 🟥 🟥 ⬜ ⬜ 🟥 🟥 🟥
🟥 🟥 🟥 ⬜ ⬜ 🟥 🟥 🟥
🟥 🟥 🟥 🟥 🟥 🟥 🟥 🟥
ok
well fuck.
building python from source bc brew is stupid af wee
how do i make automake use aarch64-apple-darwin-ld instead of just ld
me everytime i install something for some reason
somehow building from source actually worked first try
@silver rampart try procursus?
no
brew allows you to build from source
my backlog at the moment doesn't let me justify uprooting my entire workflow for everything and potentially going days without a stable OS/build system/etc unless absolutely necessary
next time i set up a macos install from ground zero and don't need to get it up and running in a single day i'll give it a shot
so maybe in August if I upgrade to macos 12
does mobilegestalt have an actual domain you can get into like com.apple.??? and use ideviceinfo -q {domain} -k HomeButtonType ? cause i don't like the xml from using idevicediagnostics mobilegestalt HomeButtonType
shouldn't you be able to get that info from places other than gestalt
...
probably but idk which domain they would be in.
what command do you use to invoke automake
./configure --host=aarch64-apple-darwin CC=aarch64-apple-darwin-clang CXX=aarch64-apple-darwin-clang++ CFLAGS="-isysroot /home/stefan/procursus_utils/SDKs/iPhoneOS13.2.sdk -I/root/iPhoneOS13.2.sdk/usr/include" CXXFLAGS="-isysroot /home/stefan/procursus_utils/SDKs/iPhoneOS13.2.sdk -I/root/iPhoneOS13.2/usr/include" LD=aarch64-apple-darwin-ld
thats my configure script
doesn't work?
hm
can you send me whatever you're running this on so i can look at it
never used automake before but i do build systems
it's a docker image containing debian
I don't actually know how to specify the ld location
so i just assumed at the end
that you set the LD environment variable
what happens when you type aarch64-apple-darwin-clang in the same terminal that command is ran in?
they know this
and symobolic link a replacement ld
Undefined symbols for architecture arm64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
as you can see it's running normal ld
yeah do what Cryptic said
rm -f /bin/ld?
yes
isn't that where it is
i'm assuming its in there
which ld
compilation tools are always usr
yeah, you shouldn't have to specify any of the other compilation tools other than CC
it's then the responsibility of that compiler driver to handle the rest of the tools it uses
rm -f /usr/bin/ld && ln -s /home/stefan/procursus_utils/cctools-src/usage_examples/ios_toolchain/target/bin/aarch64-apple-darwin-ld /usr/bin/ld?
is this the right command
ld: warning: ignoring file libpureftpd.a, building for iOS-arm64 but attempting to link with file built for iOS-arm64
what
Dockerfile
FROM debian AS base
ENV CC="/usr/bin/clang-13" \
CXX="/usr/bin/clang++-13" \
LD="/usr/bin/ld64.lld-13" \
RANLIB="/usr/bin/ranlib" \
AR="/usr/bin/ar" \
AS="/usr/bin/as" \
CFLAGS="-fPIC" \
CXXFLAGS="-fPIC" \
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 \
DEBIAN_FRONTEND=noninteractive \
RUN sed -i 's/deb\.debian\.org/ftp.de.debian.org/g' /etc/apt/sources.list && \
apt-get -qqy update && \
apt-get -qqy install --no-install-recommends ca-certificates gnupg curl && \
echo 'deb http://apt.llvm.org/buster/ llvm-toolchain-buster main' > /etc/apt/sources.list.d/llvm.list && \
curl -s -o - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
apt-get -qqy update && \
apt-get -qqy install --no-install-recommends clang lld && \
rm -rf /usr/bin/ld && \
ln -sf /usr/bin/ld64.lld-13 /usr/bin/ld
FROM base AS build
RUN clang XXXXXXX
did you make that
do i run it
I modified their version a bit
official procursus docker image when
my clang (at least for aarch64-apple-darwin) isnt in /usr/bin btw
on that note an "official" tweak development image would be interesting
then modify accordingly
aight
idk shit about docker tho
which is great bc that's what https://iphonedev.wiki/ runs on
gives clang some kisses to encourage it to do well
i'm assuming you're gonna replace it with the clang command that you're wanting to run?
ye
"/home/stefan/procursus_utils/cctools-src/usage_examples/ios_toolchain/target/bin/aarch64-apple-darwin-clang"
idk if he wrote that docker script knowing it was for compiling procursus or what
@faint timber he needs ios toolchain, so everything related to downloading llvm-ld should be out, right?
most likely yeh
if you're building within the image then yeah
ok
are you building procursus or just individual cli tools
cli tools
then yeah
the command you want to run
ok
setting it to the configure script
yeah
important bits from that docker file are downloading everything required to build the tool (so grab the toolchain you're using), removing and symlinking ld, and then running your commands
Example
FROM debian AS base
# MULTI ENV
ENV AAAA="aaaa" \
BBBB="bbbb"
# MULTI RUN
FROM base AS build
WORKDIR /tmp/build
RUN echo "$AAAA" > build1.txt && \
echo "$BBBB" > build2.txt
# COPY EXAMPLE
FROM base AS test
WORKDIR /tmp/
COPY --from=build /tmp/build /tmp/build
RUN cat build/build1.txt && \
cat build/build2.txt
kinda wanna sit down and shit out a dockerfile for Procursus
isn't procursus linux buggy af
for building it
but then i got reminded of the thing i barely started on that obsoletes the need for the dockerfile
and then i got reminded how massive in scope said project is
and this is why i never get anything done anymore
btw this is the best benchmarked make flags:
make -j$(expr $(nproc) / 2) -l$(expr $(nproc) / 2)
wanted to look at porting procursus to dragon for speed, but that'd only work in concept bc in practice dragon hardcodes too much stuff related to ios dev
been working on a rewrite for it's internal engine named "hummingbird"
btw I use hyperfine for benchmarks
everything works but
Undefined symbols for architecture arm64:
"_pureftpd_start", referenced from:
_main in main.o```
u should use hyperfine
tapi v4 api moment
how to ficks
idk
@nimble parcel Any ideas on this topic?
tapi api version issue but idk what exactly they need to fix
wait is that even a tapi issue
its not using a .tbd is it?
iOS-arm64 just reminds me of a v4 tbd
well it's likely processing non-string bitflags into strings
pro tip git reset single file to prev commit
git checkout HEAD~ -- makefiles/futurerestore.mk

so v4 toolchains are all gonna say that
can you show/link to the build script for whatever you're making?
this is missing the part where u painstakingly try to remember which command it was and guess 10 different ones
then just google it and visit the same stackoverflow answer for the 10th time in a row
so relatable
pro tip to only build openssl libs
make install_dev
./configure --host=aarch64-apple-darwin CC=aarch64-apple-darwin-clang CXX=aarch64-apple-darwin-clang++ CFLAGS="-isysroot /home/stefan/procursus_utils/SDKs/iPhoneOS13.2.sdk -I/root/iPhoneOS13.2.sdk/usr/include" CXXFLAGS="-isysroot /home/stefan/procursus_utils/SDKs/iPhoneOS13.2.sdk -I/root/iPhoneOS13.2/usr/include" LD=aarch64-apple-darwin-ld
then make
its pure-ftpd
CC is the full path btw
its an autoconf script
yeah that's what i need to look at
add the full path do cc, ld, etc
u mean configure.ac
just specifying the executable works fine for me
the folder is in PATH
ah cool
Im just paranoid
ok wtf
the song just said "paranoid" right when I did
I wasn't expecting it at all
lol entirely off topic but
it always takes 100,000 github actions builds to get it right 😎
my parents are so paranoid about apps listening on their phone's microphones and showing them ads related to it
lmfao
like they've tried to genuinely convince me that that's a real thing
they 100% believe it
hope this is the one you wanted
good thing I haven’t slept yet, not 100% sure what the issue is ofc but some toolchains refer to arm64e as arm64 so it might actually be an arm64 vs arm64e difference
it will take 30 years to build openssl in llvm mingw btw
the rough part about knowing what timezones people are in
the better a dev is, the less good of a gauge timezone is for "are they awake rn"
this is the image you see right before death
bless ppl who distribute precompiled binaries for everything
bless intel and apple engineers for getting usb hw correct unlike ryzen engineers who just...

80% of the time the 'just build it yourself' projects dont take the time to make building from source reasonable
python3.9.5 on my mac built from source with zero effort and zero bugs via homebrew
that was nice
this is why 100% of the time I just have a random tarball of .a lib files so I can just post a binary in under a minute
the only reason my stuff builds anywhere is bc it all uses my build tool
so instead of changing shit on my own system i change the build tool and usually push those changes
dont think that's a feature of dragon as much as it is a quirk of shipping my personal build system
that and the "test suite" is literally just a script that clones 8 of my github repos and builds them
I once dreamed of a world where jb devs could distribute their source on cydia instead of debs and have it compile on-device
I think that's one of the dumbest ideas i've had to date
You dreamed of following the arch linux philosophy on iOS basically
arch does that shit for the AUR and it's a pain
yeah
it has zero benefits for ios tweaks
and download time for a toolchain on ios is massive
I mean beside educating people a little bit more about the understanding of the internal of iOS tweaks. I would assume you are right
But that would mean that users would actually have to look at the source code
and the whole ass philosophy for the nouveau project is moving away from linux as a whole, which on-device building is directly contrary to
perhaps when Orion exists(?)
is that out yet?
Im sorry but its a hate crime not to be using rust
indifferent to existence of rust
i love committing hate crimes
they aren't annoying like opencore or arch users
one of my future project suites is iPhone downgrade tool suite all written in rust
yes this includes diassembler/patchfinder
they just exist and u say 'why' and they say 'why not' and u can't counter that
True I remember that one time you curb stomped for being a dog

wen eta javascript tweaks tho
coleslaw:
libprosititute will be open source and support javascript tweaks
libprostitute:
does not do those things
lmfao I deadass got this bullshit how do I workaround this @silver rampart
'Invalid bitcode version (Producer: '1205.0.22.11.0_0' Reader: '1200.0.32.29_0')', using libLTO version 'LLVM version 12.0.0, (clang-1200.0.32.29)' for architecture x86_64
Them hookers didn't come through
be cool to see basic JS tweaking bc installing theos+llvm/xcode+all that shit for super small simple tweaks is absurd
kabir is the one who knows about this stuff
discord plugins 
@nimble parcel hey mr can you give me a hand with this
like ios apps ship 'bitcode' which is LLVM IR
this is how apple recompiles stuff on the app store after submission
iirc there's literally two different types of 'bitcode' related to llvm tho
what project is this @ cryptic
if it's an xcode proj u can disable bitcode in build settings and see if that fixes it
patrolling google rn
could try this on the file
does that command work on static libs
btw I've never gotten ENABLE_BITCODE=no working outside xcode
random python question but does miasm support mach-o @silver rampart
LD_VERIFY_BITCODE = NO blind guess
dont know what miasm is but i'll go look
not doing anything rn
https://reddit.com/r/programming/comments/o9g8vr/the_dev_behind_one_of_the_worlds_best_snes/ this is so fucking sad man, hate to see this type of hate still goes around the community
doesn't look like this just looking at this error @silver rampart
just looking at it there's no implicit support but there may be a workaround
but in general likely not worth doing i'm assuming
breaking MODEFlattener 😦
what specifically are u needing to do
MODEFlattener seems really op
wanted to try it out but the only OLLVM binaries I have are all mach-o lol
dyldextractor has some good mach-o related stuff, likely not very portable, iirc there are some macho related pypi projects
I would imagine you could add mach-o stuff to miasm but that's up to you
wrote my first disasm today
i'd look into it but cant justify throwing time at it rn bc it'd probably end up eating a whole week of time
all my mach-o knowledge is surface level or too deep to be relevant
nicee
I think you would be interested in it considering the end result of MODEF
i dont dig through obfuscated stuff that often
its very simple, helped me learn alot. Its for chip8 so yeah, you could guess how easy it is to write this
excluding the stuff apple obfuscates, which is still a bit beyond me rn
I just want downgrade freedom
amazed FairPlay.kext is still a black box regarding public info on it, the obfuscation in that should be not-that-difficult to ppl who know what they're doing
the only obfuscated thing in my way is checkra1n
F
wen FOSS checkra1n
why isn't it open source already
I could write a watchOS iboot jailbreak from it
real talk from experience, probably bc it has a lot of fucky code not up to the standards of the authors
I just discovered a bug with libirecovery, mode detection is broken with using libusb instead of IOKit
with a little tiny bit of "lets not show our whole hand to apple rn" thrown in
yeah i always thought it was because of not showing apple
idk if it's ever going to be FOSS until it reaches irrelevance
at this point apple has bazad so lol
about to write a chip8 interpreter tommorow. Lets see if i can get it done. Then i will move to writing a intel 8080 disasm and emulator
for the same reason the iphonewiki.com probably wont be updated for many new techniques on stuff until said new techniques are obsolete
they need to fire the security by obscurity bozo
convo for hackdiff server i'm sure but
imo the security issues with ios are whoever's in charge's fault and not the fault of the engineers
the whole attitude towards ios security by apple is just
"gotta keep fixing all the holes in the tarp that covers the missing windows so ppl stop breaking in"
instead of u know
replacing the broken windows
they'll fix an exploitable uaf instead of ever stepping in and fixing the rest of the chain that makes it useful
seems like bazad's presence there has improved things at least
judging by the subsequent twitter meltdown by jakeashacks
what happened to it
they disabled it hence why we never see any untethers anymore
yeh it exists for demoted
check one of your iuis for more info there, been too long since i've looked
Corellium also reenables it
i'd be so happy with a userland untether ngl
even w/o a real codesign bypass
yep Im currently enjoying pangu7 on my 5s
few avenues for pulling one off in current year that seem promising but who knows
oh speaking of dm
I wish a lot more of those old jailbreaks would become FOSS just for learning purposes.
It would be very interesting how methods have changed over the years or stayed similar
ay finally
LD verify thing failed btw
MacOS and iOS Internals, Volume III: Security & Insecurity [Jonathan Levin] on Amazon.com. FREE shipping on qualifying offers. MacOS and iOS Internals, Volume III: Security & Insecurity
basically are
closest to open source we'll get but these writeups are phenomenal and don't lack much of anything
@faint timber https://github.com/actions/virtual-environments/issues/1814 ?
do you need someone to build this or something
That’s docker yo
I really wish there was a well maintained plist lib in rust
ah lmao
what does the xcode ENABLE_BITCODE flag actually do
is it a clang change or does it execute a strip of some sort
It embeds Bitcode into the binary which allow Apple to rebuild the app on their servers. They do this so they can optimise the app for different device types giving you a smaller download.
It can make binaries considerably larger so disable it unless you’re distributing through App Store. Any other form of distribution can’t take advantage of it
I told absidue to disable it in Zebra and this was the result
if you think those numbers are nuts you should see what happens when you strip bitcode from flutter's distributed frameworks
It's wild
A big caveat of flutter is the fact that apps built with it for iOS are 200-300MB
I've been trying to get developers to disable it in their stuff
I'm part of a 3 person group working on a specific flutter app and the one in charge of ios related shit bc neither of them know anything about it
and loading apps onto a phone over usbmuxd is slow as shit already, not to mention 300+MB apps
stripping bitcode from all included binaries reduced that number to 10MB

I think I went and filed an issue with flutter bc that's stupid
it means during the dev process, loading and running is gonna be slow as actual shit due to how much u have to copy over
you could disable it for debug builds and enable on release builds i guess
only time bitcode benefits anyone is when its uploaded to the appstore
yeah
I still can't build arm64e with theos. I reinstalled everything now without root.
mobile$ clang -v
clang version 10.0.0 (git@bingner.com:elucubratus.git 38d9371d79ade653c47347ca418b91e61808011c)
Target: arm64-apple-ios7.0
Thread model: posix
InstalledDir: /usr/bin
$ make package
Segmentation fault: 11```
Can anyone think of a reason for it to throw this error?
using ARCHS = armv7 arm64 arm64e in the Makefile
without that, it will build for armv7 and arm64 without any problems
A segfault is not gonna be because of root or anything
I am aware.
Try a procursus jailbreak
alright
try building empty project
If there's a private API in a public framework (like Foundation) that specially mark not compatible with iOS (but actually is), how do you bypass that rather than modify the header file itself?
Is there a much cleaner way?
same thing, segmentation fault 11
I know its a lot to ask but can someone here try the installation process for theos linux?
https://github.com/theos/theos/wiki/Installation-Linux
are you on linux?
oh okay
have you installed sdks and a toolchain
if so, then which ones have you used
I've tried so many things..
did you guys see github's autopilot thingy
this was on ios
this ^ was
can’t help you lmao
@vivid dew https://cdn.discordapp.com/attachments/632662169682444309/859334953204842516/ssssss.mp4 when the imposter halal
and ubuntu , not wsl
wsl is not linux
yea not sure if thats ideal. if i was in your shoes, i would not bother to install it on your device
it is a waste of time honestly, you are going to have the best results on a computer. you need room to be able to debug and be productive at the same time.
best case, if you use windows, use wsl or a vm
installing theos on wsl is a bit different iirc
i would go with debian or ubuntu minimal install
and then just follow https://github.com/theos/theos/wiki/Installation-Linux ?
yup, i think that needs to be updated?
for sdks and toolchains
use pins on this channel
if you encounter errors, drop them here but first google the errors and also check theos github issues
oh shit
nice
so there should not be any issues. @tepid olive try with a fresh install if you can
Alright, will make a debian vm
good luck, personally i use opencore for macos with a dualboot to windows. but usually if i need to use windows while on my mac partition, i use parallels and use qemu with hvf for linux so i never need to use windows or linux
Thanks. I'll see how this goes first.
tried to hide ls clock as a first tweak to compile and idk if i fucked up the code or something's changed but this the proper way to hide ls clock? from https://gist.github.com/LacertosusRepo
use flex to find out what you need to hook
that was 2 years ago, it might be different now
ah alr yeah saw the header was on 14.4 so assumed it would work but ill try that
just ping me here, you don’t have to dm. and by flex i mean, libflex
you can use flexall by dghost
oh alr idk some ppl dont like pings.will check that out
if you read the question thats not what I asked, you explained it, I was asking how it operates because hint I want to use it externally
yo by any chance you have knowledge on hosting github repos?
followed this guide https://github.com/MDausch/Example-Cydia-Repository. do i need to make a new branch for each tweak because dropping debs doesn't seem to make them show up
^with depictions
@hardy glen I just did the whole process on debian. No luck.
When not specifying archs in the makefile, it will build perfectly fine for armv7 and arm64. When adding ARCHS = arm64 arm64e it will do the infamous endless... nothing.
Lynx you building on your phone?
Is there a more efficient way to do this? These are the two solutions I have ``` std::vector<CCLocalMaximum> filteredMaxima;
// Check for each maximum
for (int k=0; k<maxima.size(); k++) {
// Get the maximum we are checking out
struct CCLocalMaximum max1 = maxima[k];
// This color is distinct until a color from before is too close
BOOL isDistinct = YES;
// Go through previous colors and look if any of them is too close
for (int n=0; n<k; n++) {
// Get the maximum we compare to
CCLocalMaximum max2 = maxima[n];
// Compute delta components
double redDelta = max1.red - max2.red;
double greenDelta = max1.green - max2.green;
double blueDelta = max1.blue - max2.blue;
// Compute delta in color space distance
double delta = sqrt(redDelta*redDelta + greenDelta*greenDelta + blueDelta*blueDelta);
// If too close mark as non-distinct and break inner loop
if (delta < threshold) {
isDistinct = NO;
break;
}
}
// Add to filtered array if is distinct
if (isDistinct) {
filteredMaxima.push_back(max1);
}
}```
and then this ``` std::vector<CCLocalMaximum> filteredMaxima;
std::copy_if (maxima.begin(), maxima.end(), std::back_inserter(filteredMaxima), [&threshold, &maxima, &filteredMaxima](struct CCLocalMaximum max1) {
for (int n=0; n<filteredMaxima.size(); n++) {
// Get the maximum we compare to
CCLocalMaximum max2 = maxima[n];
// Compute delta components
double redDelta = max1.red - max2.red;
double greenDelta = max1.green - max2.green;
double blueDelta = max1.blue - max2.blue;
// Compute delta in color space distance
double delta = sqrt(redDelta*redDelta + greenDelta*greenDelta + blueDelta*blueDelta);
// If too close mark as non-distinct and break inner loop
if (delta < threshold) {
return NO;
}
}
return YES;
}
);```
What are you trying to do?
Filter similar colors
It's just struct CCLocalMaximum { double red; double green; double blue; };
I'm just trying to find the most efficient way to do this as C++ is not really my thing and I wasn't sure what was bbetter
I don't see any obvious efficiency issues (but I'm not too familiar with c++), are you running into performance issues?
the one provided on the linux install wiki
linux
You are not really using many C++ features, but the efficiency depends on your algorithm which
.
flexivator 
where can I find an updated and working toolkit?
Are you specifying target sdk to use or relying on default? if you are relying on default then its probably using the latest version it finds in $THEOS/sdks, try setting target to one of the lower versions.
relying on default, how do I make it use a lower version?
Add TARGET = iphone:clang:<sdk version>:<minimum deployment version> to makefile
replace <sdk version> and <minimum deployment version> with the actual iOS version
dumb question probably, where do I find the sdk version im using?
i just downloaded the one the theos wiki specified
If you look in $THEOS/sdks there should be a few folders
so for example, iphone:clang:iPhoneOS14.4.sdk:14.2
Just 14.4
alright
oh damn most of it worked this time :D
bash: /home/x/theos/toolchain/linux/iphone/bin/ldid: cannot execute binary file: Exec format error
lmao
i mean.. its progress
this was at signing the tweak
im happy the fact it got this far honestly
Is that WSL 2 or pure lunix?
this means that the binary file is not made to run on your architecture pretty sure

error: lipo: unknown architecture specification flag: arm64e in specifying input file -arch arm64e /var/mobile/...```

The only c++ thing that can be improved there is taking references of the structs in the array rather than copies.
Oh and I think the predicate argument could be a const ref too
true
it worked building on my ubuntu vps!
thank you guys so much! @twilit jungle @hardy glen and all the others that helped me :)
building on a vps
troll
don't judge
been working on building the simplest thing for 2 days now
.

Now make it on windows
an annoying thing about c++ is implicit references tho
in c it’s not a problem because they don’t exist so you use pointer


I don’t like theos on mobile there’s always some c++ error
fake

you should be able to do it in O(n log^2 n) time instead of O(n^2) using a range tree
if the language is an impediment try doing it in something you’re more familiar with first
a k-d tree should work too; either would be pretty well suited to this but maybe look into the performance characteristics a little more
gm @misty cradle
how r u doing
Can someone point me into the right direction for finding how to change the "swipe up to open" text on lockscreen?
kinda busy rn but pretty good overall
add the repos nscake.github.io and dgh0st.github.io @tepid olive
then install FLEXall

no like
good to hear
yes.... install flexall to find out where the text is.....

you're confusing this with another flex
what about you tr1
hmmm
does anyone call you that or is it just me







Cryptic is typing...

