tnm, pod install failed.
avcatshy opened this issue · 4 comments
avcatshy commented
tnm, pod install failed.
everettjf commented
log ?
avcatshy commented
~/Desktop/toAppleTrace cat Podfile
source 'https://github.com/AloneMonkey/MonkeyDevSpecs.git'
use_frameworks!
target 'toAppleTrace' do
pod 'AppleTrace'
end
~/Desktop/toAppleTrace pod install
Analyzing dependencies
Cloning spec repo `alonemonkey` from `https://github.com/AloneMonkey/MonkeyDevSpecs.git`
Downloading dependencies
Installing AppleTrace (1.0.1)
[!] Error installing AppleTrace
[!] /usr/local/bin/git clone https://github.com/everettjf/AppleTrace.git /var/folders/gw/b5h1dcm51dg1hmxrnb6s9w340000gn/T/d20210202-52166-1bskjl --template= --single-branch --depth 1 --branch 1.0.1
Cloning into '/var/folders/gw/b5h1dcm51dg1hmxrnb6s9w340000gn/T/d20210202-52166-1bskjl'...
warning: Could not find remote branch 1.0.1 to clone.
fatal: Remote branch 1.0.1 not found in upstream origin
MonkeyDevSpecs still link to your repo, but only v1.0 tag here.
将tag 号改了以后,可以成功安装:
~/Desktop/toAppleTrace cat ~/.cocoapods/repos/alonemonkey/AppleTrace/1.0.1/AppleTrace.podspec
Pod::Spec.new do |spec|
spec.name = "AppleTrace"
spec.version = "1.0.1"
spec.summary = "AppleTrace for MonkeyDev"
spec.description = <<-DESC
- AppleTrace for MonkeyDev
DESC
spec.homepage = "https://github.com/everettjf/AppleTrace"
spec.license = { :type => "BSD", :file => "LICENSE" }
spec.author = { "everettjf" => "everettjf@live.com" }
spec.social_media_url = "http://weibo.com/everettjf"
spec.platform = :ios, "8.0"
# spec.source = { :git => "https://github.com/everettjf/AppleTrace.git", :tag => spec.version.to_s }
spec.source = { :git => "https://github.com/everettjf/AppleTrace.git", :tag => "v1.0" }
但是在结合monkeydev使用时,没有生成 ‘appletracedata目录’,
-iPad:~ root# find /private/var/mobile/Containers/Data/Application/A21E37FA-5E2B-4FB5-84B0-03F37AD094D7 -name "WeChat"
/private/var/mobile/Containers/Data/Application/A21E37FA-5E2B-4FB5-84B0-03F37AD094D7/Library/Caches/Matrix/CrashBlock/WeChat
-iPad:~ root# find /private/var/mobile/Containers/Data/Application/A21E37FA-5E2B-4FB5-84B0-03F37AD094D7 -name "*appletracedata*"
-iPad:~ root#
是不能这么直接改tag还是哪里操作有问题?
everettjf commented
-iPad:~ root# find /private/var/mobile/Containers/Data/Application/A21E37FA-5E2B-4FB5-84B0-03F37AD094D7 -name "appletracedata"
不是app这个目录。需要找到沙盒目录。
avcatshy commented
经过尝试应该是与MonkeyDev适配的不好,手动注入编好的framework是可以工作的。
p.s :hook objc_msgSend 属实是精确,但是耗时也不可小觑,在之上再封装一层就更难顶了。 测试小程序没问题,大点儿的程序就直接因为启动耗时太久被watchDog干掉了。。。