如何查看给定iOS ipa文件中定义的NSString [英] How to view NSString defined in a given iOS ipa file
本文介绍了如何查看给定iOS ipa文件中定义的NSString的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我记得我以前做过这个,但忘记了命令。
I remember I have done this before, but forgot the command.
例如
我有一个在源代码中定义的NSString,例如
I have a NSString defined in source, e.g.
NSString * s = @"secret";
我记得我可以使用字符串查看内容
命令,但我忘记查看它的确切命令,
I remember I can view the content using the strings
command, but I forgot the exact command to view it,
例如
strings my.ipa | grep "secret"
不起作用。有人有想法吗?
does not work. Anyone have idea?
推荐答案
我不确定是否可以直接使用字符串
在 ipa
上,但您可以执行以下操作:
I'm not sure it's possible directly with strings
on an ipa
, but you can do the following:
- 重命名您的
.ipa
要获得.zip
扩展名的文件。ipa
只需重命名为zips。 - Extract(它应该创建一个名为
Payload $的目录c $ c>)
-
cd
进入Payload /< app-name> .app
- 您应该在当前目录中有一个名为
< app-name>
的文件。 - 致电
字符串< app-name> | grep secret
。
- Rename your
.ipa
file to have the.zip
extension.ipa
's are simply renamed zips. - Extract (it should create a directory named
Payload
) cd
into thePayload/<app-name>.app
- You should have a file named
<app-name>
in the current directory. - Call
strings <app-name> | grep secret
.
这篇关于如何查看给定iOS ipa文件中定义的NSString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文