如何查看给定iOS ipa文件中定义的NSString [英] How to view NSString defined in a given iOS ipa file

查看:121
本文介绍了如何查看给定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:


  1. 重命名您的 .ipa 要获得 .zip 扩展名的文件。 ipa 只需重命名为zips。

  2. Extract(它应该创建一个名为 Payload

  3. cd 进入 Payload /< app-name> .app

  4. 您应该在当前目录中有一个名为< app-name> 的文件。

  5. 致电字符串< app-name> | grep secret

  1. Rename your .ipa file to have the .zip extension. ipa's are simply renamed zips.
  2. Extract (it should create a directory named Payload)
  3. cd into the Payload/<app-name>.app
  4. You should have a file named <app-name> in the current directory.
  5. Call strings <app-name> | grep secret.

这篇关于如何查看给定iOS ipa文件中定义的NSString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆