V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
cicada
V2EX  ›  iDev

Reveal 真机调试的问题,求解救

  •  
  •   cicada · 2015-06-27 15:15:28 +08:00 · 7309 次点击
    这是一个创建于 3198 天前的主题,其中的信息可能已经有所发展或是发生改变。

    现在想用Reveal连接真机调试
    参考文章:http://chuansong.me/n/1308113
    配置完成之后,运行的时候提示错误
    error: no known method '-cStringUsingEncoding:'; cast the message send to the method's return type
    error: 1 errors parsing expression
    求大神解救啊,谢谢.
    抱歉,忘记加上环境信息
    Xcode版本:6.3.2
    真机IOS版本:8.3
    Reveal版本:1.5.1(4946)

    12 条回复    2016-10-18 20:35:15 +08:00
    lawder
        1
    lawder  
       2015-06-27 19:12:51 +08:00   ❤️ 2
    上午刚搞定Reveal连接真机调试
    1. 换用命令 command alias reveal_load expr (Class)NSClassFromString(@"IBARevealLoader") == nil ? (void*)dlopen((char*)[(NSString*)[(NSBundle*)[NSBundle mainBundle] pathForResource:@"libReveal" ofType:@"dylib"] cStringUsingEncoding:0x4], 0x2) : ((void*)0) 参考 http://support.revealapp.com/discussions/questions/52969-integrating-reveal-no-longer-working

    2.记得给libReveal.dylib签名,参考 http://support.revealapp.com/kb/getting-started/integrating-reveal-add-reveal-to-your-xcode-project第7点
    cicada
        2
    cicada  
    OP
       2015-06-29 10:38:20 +08:00
    @lawder 太感谢你了,按照这个方法设置成功了.
    lzyroot
        3
    lzyroot  
       2015-06-29 14:05:11 +08:00
    直接cydia搜索Reveal Loader安装,这是开源地址: https://github.com/heardrwt/RevealLoader

    然后把插件安装自带的libReveal.dylib换成最新的就行了
    cicada
        4
    cicada  
    OP
       2015-07-02 09:57:16 +08:00
    @lzyroot 因为机器没有越狱,所以没办法cydia安装,现在有个老设备越狱,准备按照你这个方法试试,感谢.
    zenghaojim33
        5
    zenghaojim33  
       2015-12-23 17:44:56 +08:00
    @lawder 请问第二步签名怎么做呢?链接没找到方法
    lawder
        6
    lawder  
       2015-12-23 19:10:41 +08:00
    Mariox
        7
    Mariox  
       2016-01-06 22:05:42 +08:00
    @lawder 真机调试 上面的步骤已经走通, 可以输出日志 : INFO: Reveal Server started (Protocol Version 25). 但是 Reveal 设备列表里面还是空的。
    设备 iOS9.2 iPad mini2
    XCode7.2
    lawder
        8
    lawder  
       2016-01-06 22:30:37 +08:00
    @Mariox iPad mini2 和 Mac 是在同一个局域网下吗?会不会 iPad mini2 用了 3G/4G ?
    Mariox
        9
    Mariox  
       2016-01-07 13:40:16 +08:00
    找到问题了,局域网子网掩码被修改了, http://support.revealapp.com/kb/tips-tricks/bonjour-debugging-why-cant-i-connect-to-my-app 参照改了 hosts 可以连接了,@lawder 十分感谢
    qiudan098
        10
    qiudan098  
       2016-10-10 08:57:55 +08:00
    @lawder 这个链接已经失效,能说说签名的步骤吗,谢谢
    coldmn3
        11
    coldmn3  
       2016-10-18 20:14:20 +08:00
    @lzyroot 你是 reveal 2 吗,我装的 reveal 2 试了没法看第三方 app,自己的可以。
    coldmn3
        12
    coldmn3  
       2016-10-18 20:35:15 +08:00
    @coldmn3 发现问题了,支付宝、京东好像用某种方式加密了还是怎么了, reveal 看不了,其他的 app 可以砍
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5177 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:31 · PVG 17:31 · LAX 02:31 · JFK 05:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.