iPhone crash logs say “Version: ???”

前端 未结 3 1981
遥遥无期
遥遥无期 2021-01-30 09:07

I\'m developing an iPhone app and doing ad-hoc distribution for beta testing. My users are sending me crash logs that say this:

Identifier:      MyAppName
Versi         


        
相关标签:
3条回答
  • 2021-01-30 09:55

    This seems to be the case for all iPhone apps, including the ones from Apple. You can look through all of the iPhone application crash logs for your devices in Console:

    FILES/~/Library/Logs/CrashReporter/MobileDevice/...

    Everything in that list shows up with unknown versions for me, except for MobileSafari, which has slightly different information:

    OS Version:          iPhone OS 2.2.1 (5H11)
    Date:                2009-02-15 02:19:06 -0600
    

    All other applications, including Apple's Calendar & Mail apps, show up with question marks for their version numbers.

    It seems that other developers have noticed the same thing. It is probably a bug in the iPhone's CrashReporter program.

    0 讨论(0)
  • 2021-01-30 09:57

    For adhoc and beta testing, just change your identifier. MyAppNameV1.0b36 instead of MyAppName Obviously this won't work for your App Store version, but it will get you through beta testing.

    Note that this probably requires a wildcard ad hoc profile, but these can be easily made through the developer portal.

    0 讨论(0)
  • 2021-01-30 10:00

    The easiest method is to save the UDIDs of all the binaries you distribute, and compare them to the UDIDs in the crash dumps. UDIDs are different for each build you make.

    To retrieve the UDID:

    $ dwarfdump -u /path/to/MyApp.app/MyApp
    UUID: 864F3D54-F165-3356-3292-2C9C48E97C55 (armv6) /path/to/MyApp.app/MyApp
    

    And compare it to the crashlog:

    Binary Images:
        0x1000 -    0x5ffff +MyApp armv6  <864F3D54F165335632922C9C48E97C55> /var/mobile/Applications/5FB3933B-348E-42D7-B99F-76DE284D2148/MyApp.app/MyApp
    
    0 讨论(0)
提交回复
热议问题