Theos打包报错

mokledeMacBook-Air:mokletweak mokle$ make

Making all for tweak MokleTweak…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (armv7)…
==> Linking tweak MokleTweak (armv7)…
ld: framework not found CydiaSubstrate
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/Volumes/Date/tweak/mokletweak/.theos/obj/debug/armv7/MokleTweak.dylib] Error 1
make[2]: *** [/Volumes/Date/tweak/mokletweak/.theos/obj/debug/armv7/MokleTweak.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [MokleTweak.all.tweak.variables] Error 2
mokledeMacBook-Air:mokletweak mokle$

照小黄书把THEOS/lib 把ios的cydiasubstrate拷贝进去改名 libsubstrate.dylib 还是依然报这个错

已经尝试重装,更换目录, 一直是这样一个错误 nic.pl一个原生模板 make还是报错 求解决。。。一天了 @everettjf @NavilleZhang @snakeninny

根据这个帖子走一遍

好滴,我等下po终端

mokledeMacBook-Air:~ mokle$ git clone --recursive https://github.com/theos/theos.git /opt/theos
Cloning into ‘/opt/theos’…
remote: Counting objects: 7370, done.
remote: Total 7370 (delta 0), reused 0 (delta 0), pack-reused 7370
Receiving objects: 100% (7370/7370), 1.91 MiB | 56.00 KiB/s, done.
Resolving deltas: 100% (4493/4493), done.
Checking connectivity… done.
Submodule ‘vendor/include’ (https://github.com/theos/headers.git) registered for path ‘vendor/include’
Submodule ‘vendor/lib’ (https://github.com/theos/lib.git) registered for path ‘vendor/lib’
Cloning into ‘vendor/include’…
remote: Counting objects: 1763, done.
remote: Total 1763 (delta 0), reused 0 (delta 0), pack-reused 1763
Receiving objects: 100% (1763/1763), 624.11 KiB | 54.00 KiB/s, done.
Resolving deltas: 100% (706/706), done.
Checking connectivity… done.
Submodule path ‘vendor/include’: checked out ‘889f159f6dd834ac35e193387b823539045cd374’
Submodule ‘CaptainHook’ (https://github.com/rpetrich/CaptainHook.git) registered for path ‘CaptainHook’
Submodule ‘LightMessaging’ (https://github.com/rpetrich/LightMessaging.git) registered for path ‘LightMessaging’
Submodule ‘libactivator’ (https://github.com/rpetrich/libactivator.git) registered for path ‘libactivator’
Submodule ‘rocketbootstrap’ (https://github.com/rpetrich/rocketbootstrap.git) registered for path ‘rocketbootstrap’
Cloning into ‘CaptainHook’…
remote: Counting objects: 126, done.
remote: Total 126 (delta 0), reused 0 (delta 0), pack-reused 126
Receiving objects: 100% (126/126), 26.07 KiB | 23.00 KiB/s, done.
Resolving deltas: 100% (38/38), done.
Checking connectivity… done.
Submodule path ‘vendor/include/CaptainHook’: checked out ‘fcd8c1d1596688dc6f6e443114394ca4954a70f4’
Cloning into ‘LightMessaging’…
remote: Counting objects: 80, done.
remote: Total 80 (delta 0), reused 0 (delta 0), pack-reused 80
Unpacking objects: 100% (80/80), done.
Checking connectivity… done.
Submodule path ‘vendor/include/LightMessaging’: checked out ‘496257b11c3e906333797639355db9a43015eb50’
Cloning into ‘libactivator’…
remote: Counting objects: 4804, done.
remote: Total 4804 (delta 0), reused 0 (delta 0), pack-reused 4804
Receiving objects: 100% (4804/4804), 1.43 MiB | 39.00 KiB/s, done.
Resolving deltas: 100% (2432/2432), done.
Checking connectivity… done.
Submodule path ‘vendor/include/libactivator’: checked out ‘bfac8ee70e8ad6560305dc7f0fa586c1b5696ef1’
Cloning into ‘rocketbootstrap’…
remote: Counting objects: 362, done.
remote: Total 362 (delta 0), reused 0 (delta 0), pack-reused 362
Receiving objects: 100% (362/362), 92.45 KiB | 17.00 KiB/s, done.
Resolving deltas: 100% (167/167), done.
Checking connectivity… done.
Submodule path ‘vendor/include/rocketbootstrap’: checked out ‘bd54f4ac8452ce2dc2978459afc262440ce94f19’
Submodule ‘LightMessaging’ (git://github.com/rpetrich/LightMessaging.git) registered for path ‘LightMessaging’
Cloning into ‘LightMessaging’…
remote: Counting objects: 80, done.
remote: Total 80 (delta 0), reused 0 (delta 0), pack-reused 80
Receiving objects: 100% (80/80), 34.49 KiB | 7.00 KiB/s, done.
Resolving deltas: 100% (43/43), done.
Checking connectivity… done.
Submodule path ‘vendor/include/rocketbootstrap/LightMessaging’: checked out ‘496257b11c3e906333797639355db9a43015eb50’
Cloning into ‘vendor/lib’…
remote: Counting objects: 273, done.
remote: Total 273 (delta 0), reused 0 (delta 0), pack-reused 273
Receiving objects: 100% (273/273), 76.56 KiB | 22.00 KiB/s, done.
Resolving deltas: 100% (59/59), done.
Checking connectivity… done.
Submodule path ‘vendor/lib’: checked out ‘18dbcbc41f9c95b8c7eaedc553fddfdd6201fd4b’
mokledeMacBook-Air:~ mokle$ sudo chown $(id -u):$(id -g) /opt/theos
Password:
mokledeMacBook-Air:~ mokle$ open ~/.bash_profile
mokledeMacBook-Air:~ mokle$ cd /Volumes/Mokle
mokledeMacBook-Air:Mokle mokle$ nic.pl
NIC 2.0 - New Instance Creator

[1.] iphone/activator_event
[2.] iphone/application_modern
[3.] iphone/cydget
[4.] iphone/flipswitch_switch
[5.] iphone/framework
[6.] iphone/ios7_notification_center_widget
[7.] iphone/library
[8.] iphone/notification_center_widget
[9.] iphone/preference_bundle_modern
[10.] iphone/tool
[11.] iphone/tweak
[12.] iphone/xpc_service
Choose a Template (required): 11
Project Name (required): mokle005
Package Name [com.yourcompany.mokle005]: com.mokle.mokle005
Author/Maintainer Name [mokle]: mokle
[iphone/tweak] MobileSubstrate Bundle filter [com.apple.springboard]: com.tencent.mqq
[iphone/tweak] List of applications to terminate upon installation (space-separated, ‘-’ for none) [SpringBoard]: SpringBoard
Instantiating iphone/tweak in mokle005/…
Done.
mokledeMacBook-Air:Mokle mokle$ cd mokle005
mokledeMacBook-Air:mokle005 mokle$ make

Making all for tweak mokle005…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (armv7)…
==> Linking tweak mokle005 (armv7)…
ld: framework not found CydiaSubstrate
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/Volumes/Mokle/mokle005/.theos/obj/debug/armv7/mokle005.dylib] Error 1
make[2]: *** [/Volumes/Mokle/mokle005/.theos/obj/debug/armv7/mokle005.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [mokle005.all.tweak.variables] Error 2

您看下 还是报错,nic.pl已经能创建 就是make出错~:confounded:

dpkg 和 ldid都已经装过的, 今天装三次了

我的系统是 10.10 Xcode 6.4

这个问题与Theos 有关,我为了逆向开发,故意弄OS X 10.9 + Xcode 5,但是提示没有swift支持,好,升级10.10 + Xcode 6,又提示ld: framework not found CydiaSubstrate
同样一份工程在另一台10.12 + Xcode 9上却没有问题,
无奈又升级为最新的
make 没有问题了;

结论:Theos的版本是与 macOS (OS X) 和 Xcode 版本有关系的,如果不能指定Theos电版本,那么只能全部用最新的了.