benzeng / google-toolbox-for-mac

Automatically exported from code.google.com/p/google-toolbox-for-mac
Apache License 2.0
0 stars 0 forks source link

Test Execution error running against iPhone 3.0 SDK #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This appears to be fixed on trunk as the exit strategy is different.
However, for the release tag it is broken.

What steps will reproduce the problem?
1. Running tests against iPhone 3.0 Simulator using google test kit 1.5.1

What is the expected output? What do you see instead?

Expected:

Executed 193 tests, with 0 failures (0 unexpected) in 0.045 (0.045) seconds

Got:

Executed 193 tests, with 0 failures (0 unexpected) in 0.045 (0.045) seconds
2009-03-18 09:56:15.558 Tests[64567:10b] *** -[UIApplication terminate]:
unrecognized selector sent to instance 0xd14410
2009-03-18 09:56:15.558 Tests[64567:10b] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '***
-[UIApplication terminate]: unrecognized selector sent to instance 0xd14410'
2009-03-18 09:56:15.558 Tests[64567:10b] Stack: (
    807800427,
    2419809851,
    808176203,
    807751910,
    807604514,
    11166,
    814624733,
    814659967,
    814621115,
    810661610,
    807585791,
    807581512,
    838921506,
    838921703,
    814661496,
    13982,
    8698
)

What version of the product are you using? On what operating system?
iPhone 3.0 Simulator, MacOS X 10.5.6

Please provide any additional information below.

Apple changed their 'UIApplication' private api and renamed the 'terminate'
method to 'terminateWithSuccess'. This can be verified by using the
class-dump utility against the UIKit framework.

Attached is a patched version of GTMIPhoneUnitTestDelegate.m that makes the
necessary changes.

Original issue reported on code.google.com by dewi...@gmail.com on 18 Mar 2009 at 2:02

Attachments:

GoogleCodeExporter commented 9 years ago
marking as fixed since trunk already avoid the problem.

Original comment by thoma...@gmail.com on 18 Mar 2009 at 11:20

GoogleCodeExporter commented 9 years ago
I have the same problem:*** Terminating app due to uncaught exception 
'NSInvalidArgumentException', reason: '-[UIApplication terminate]: unrecognized 
selector sent to instance 0x5f12220'  using google-toolbox-for-mac-1-5-1  with 
Xcode 3.2.4 on Mac 10.6.7. GTM downloaded from 
http://download.cnet.com/Google-Toolbox/3000-2070_4-194287.html.  I created a 
easy,sample test method which worked (had nothing to do with the app) but the 
app crashes each time at start-up. 
I'm new at this so maybe someone can can help me fix this.
Thank you!

Original comment by carla.r...@gmail.com on 5 May 2011 at 1:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
carla - We don't support the zips and have removed them from the project site 
(the iOS has/had a history of updating so often and required tweaks each time 
it didn't scale to keep making zips).  Please pull directly from svn to get the 
latest code.

Original comment by thoma...@gmail.com on 5 May 2011 at 1:36