akemin-dayo / simject

simject is a command-line tool and iOS dynamic library that allows developers to easily test their tweaks on the iOS Simulator.
BSD 2-Clause "Simplified" License
486 stars 55 forks source link

Tweak won't compile with x86_64 #47

Closed Chr0nicT closed 3 years ago

Chr0nicT commented 5 years ago

Tried the other fixes for the other issues. Didn't work https://pastebin.com/BJqZWNgA

Thanks!

nullpixel commented 5 years ago

I get this issue too.

PoomSmart commented 5 years ago

You are trying to compile tweaks for x86_64 but it’s clear that the SDK you are using is for iOS. Make sure you set TARGET to simulator.

nullpixel commented 5 years ago

@poomsmart: I get this issue when running make setup...

PoomSmart commented 5 years ago

@nullpixel Are you sure TARGET variable isn’t being overrided by something else?

nullpixel commented 5 years ago

@poomsmart: I don’t see why it would be. I’m running a default Theos build with no modifications. I don’t see what it’d be tbh

akemin-dayo commented 5 years ago

@nullpixel @Chr0nicT What version of Xcode are you guys using? And are you using latest Theos?

And specifically to @Chr0nicT, what's your Makefile look like?

Building make setup (which includes two x86_64 tweaks) succeeded for me using both Xcode 9.4.1 and Xcode 10.2.1 with the latest Theos.

JazzuBook003:simject karen$ make setup
bin/resim
bin/simject.dylib
bin
==> Cleaning…
==> Cleaning…
> Making all for tool resim…
==> Compiling resim.mm (x86_64)…
==> Linking tool resim (x86_64)…
==> Generating debug symbols for resim…
==> Merging tool resim…
==> Signing resim…
Copying binaries...
/Users/karen/Development/simject/resim/.theos/obj/macosx/debug/resim -> ../bin/resim
> Making all for tweak simject…
==> Preprocessing simject.xm…
==> Compiling simject.xm (x86_64)…
==> Linking tweak simject (x86_64)…
==> Generating debug symbols for simject…
rm /Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/x86_64/simject.xm.mm
==> Preprocessing simject.xm…
==> Compiling simject.xm (i386)…
==> Linking tweak simject (i386)…
==> Generating debug symbols for simject…
rm /Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/i386/simject.xm.mm
==> Merging tweak simject…
==> Signing simject…
Copying binaries...
/Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/simject.dylib -> ../bin/simject.dylib
Password:
/opt/simject/simjectExampleTweak.dylib
/opt/simject/simjectExampleTweak.plist
/opt/simject/simject.dylib
/opt/simject/simject.plist
/opt/simject
bin/simject.dylib -> /opt/simject/simject.dylib
simject/simject.plist -> /opt/simject/simject.plist
/opt/simject/simject.dylib: replacing existing signature
Done. Place your tweak's dynamic libraries and accompanying property lists inside /opt/simject to load them in the iOS Simulator.
JazzuBook003:simject karen$ xcodebuild -version
Xcode 10.2.1
Build version 10E1001
JazzuBook003:simject karen$ make setup
bin/resim
bin/simject.dylib
bin
==> Cleaning…
==> Cleaning…
> Making all for tool resim…
==> Compiling resim.mm (x86_64)…
==> Linking tool resim (x86_64)…
==> Generating debug symbols for resim…
==> Merging tool resim…
==> Signing resim…
Copying binaries...
/Users/karen/Development/simject/resim/.theos/obj/macosx/debug/resim -> ../bin/resim
> Making all for tweak simject…
==> Preprocessing simject.xm…
==> Compiling simject.xm (x86_64)…
==> Linking tweak simject (x86_64)…
==> Generating debug symbols for simject…
rm /Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/x86_64/simject.xm.mm
==> Preprocessing simject.xm…
==> Compiling simject.xm (i386)…
==> Linking tweak simject (i386)…
==> Generating debug symbols for simject…
rm /Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/i386/simject.xm.mm
==> Merging tweak simject…
==> Signing simject…
Copying binaries...
/Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/simject.dylib -> ../bin/simject.dylib
Password:
/opt/simject/simjectExampleTweak.dylib
/opt/simject/simjectExampleTweak.plist
/opt/simject/simject.dylib
/opt/simject/simject.plist
/opt/simject
bin/simject.dylib -> /opt/simject/simject.dylib
simject/simject.plist -> /opt/simject/simject.plist
/opt/simject/simject.dylib: replacing existing signature
Done. Place your tweak's dynamic libraries and accompanying property lists inside /opt/simject to load them in the iOS Simulator.
JazzuBook003:simject karen$ xcodebuild -version
Xcode 9.4.1
Build version 9F2000
nullpixel commented 5 years ago

@angelXwind latest theos with the latest Xcode 10. I also have the Xcode 11 beta installed if that matters.

PoomSmart commented 5 years ago

It might be possible that you have SDKVERSION and/or SYSROOT set that point to the native iOS SDK, which is clearly not for simject. Related issue: https://github.com/angelXwind/simject/issues/49

PoomSmart commented 3 years ago

Closed for inactivity.