错误:
Building for iOS, but linking in .tbd file (/opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd) built for iOS Simulator, file '/opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd' for architecture arm64
如图
把/opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd
文件用文本打开,用Sublime Text3,删除archs后面的两项(, i386, x86_64
),就可以编译成功了。
删除后的CydiaSubstrate.tbd
---
archs: [ armv7, armv7s, arm64, arm64e ]
platform: ios
install-name: /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate
current-version: 0.0.0
compatibility-version: 0.0.0
exports:
- archs: [ armv7, armv7s, arm64, arm64e ]
symbols: [ _MSCloseImage, _MSDebug, _MSFindAddress, _MSFindSymbol,
_MSGetImageByName, _MSHookClassPair, _MSHookFunction,
_MSHookMemory, _MSHookMessageEx, _MSImageAddress,
_MSMapImage ]
...