Paisseon / Xinamine

Add compatibility for Xina-patched tweaks to Dopamine
GNU Affero General Public License v3.0
34 stars 5 forks source link

[Help wanted] Failed to compile this tweak. #4

Closed Liam0205 closed 1 year ago

Liam0205 commented 1 year ago

Environment

Error Message

Linker reports serval warnings, but I think they are subtle here. Not so sure about how to fix the final error. Please kindly give a help here.

$ gmake package
> Making all in Tweak…
> Making all for library Xinamine…
==> Compiling Sources/load.s (arm64e)…
==> Compiling Sources/load.s (arm64)…
==> Compiling Sources/Xinamine/Tweak.swift (arm64e)…
==> Compiling Sources/Xinamine/Tweak.swift (arm64)…
==> Linking library Xinamine (arm64)…
ld: warning: OS dylibs should not add rpaths (linker option: -rpath) (Xcode build setting: LD_RUNPATH_SEARCH_PATHS)
ld: warning: static initializer found in '/Users/Liam/iOSdev/Xinamine/.theos/obj/arm64/Sources/load.s.677be6d0.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
ld: warning: linking with (/usr/lib/libobjc.A.dylib) but not using any symbols from it
ld: warning: linking with (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation) but not using any symbols from it
==> Generating debug symbols for Xinamine…
==> Stripping Xinamine (arm64)…
==> Linking library Xinamine (arm64e)…
ld: warning: OS dylibs should not add rpaths (linker option: -rpath) (Xcode build setting: LD_RUNPATH_SEARCH_PATHS)
ld: warning: static initializer found in '/Users/Liam/iOSdev/Xinamine/.theos/obj/arm64e/Sources/load.s.6a222f4d.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
ld: warning: linking with (/usr/lib/libobjc.A.dylib) but not using any symbols from it
ld: warning: linking with (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation) but not using any symbols from it
==> Generating debug symbols for Xinamine…
==> Stripping Xinamine (arm64e)…
==> Merging library Xinamine…
==> Signing Xinamine…
> Making stage in Tweak…
> Making stage for library Xinamine…
> Moving files to rootless paths…
mv: /Users/Liam/iOSdev/Xinamine/.theos/_/Library: No such file or directory
gmake: *** [Makefile:29: internal-stage] Error 1
Paisseon commented 1 year ago

If you're on the Orion branch of Theos, just add the contents of this zip file to $THEOS/include and replace $THEOS/makefiles with the contents of this one

Otherwise switch to Orion branch and then do the above :p

They include fake headers to make Xcode + Theos work together (the first zip) and modified version of Theos makefiles which fixes some build errors for tweaks built with the Jinx framework

Liam0205 commented 1 year ago

Thanks, it works now. : )