Nico113 / mpoauthconnection

Automatically exported from code.google.com/p/mpoauthconnection
0 stars 0 forks source link

Mobile iPhone Test App won't run on device or simulator #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. check out repository
2. try building mobile app to device with 3.0 sdk
3. app installed, launches, and then SIGABRT

What is the expected output? What do you see instead?
app should launch, doesn't

What version of the product are you using? On what operating system?
revision 129 of mpoauthconnection, OSX 10.6.2, xcode 3.2.2, ipod touch gen2
with 3.1.2 software

Please provide any additional information below.

Also can't get the app to run in the simulator due to the mobile unit
tests, as it fails at compile time saying "keychain access not available."

Additionally, when I remove the unit tests from being run when installed on
simulator, the simulator launches, and then crashes.

Original issue reported on code.google.com by master.b...@gmail.com on 11 Mar 2010 at 5:21

GoogleCodeExporter commented 9 years ago
I just checked
http://matrixpointer.com/karl/posts/mpoauth-on-the-iphone-mpoauthmobile and saw
instructions to configure.  I entered my information, however it still crashes 
on launch.

Original comment by master.b...@gmail.com on 11 Mar 2010 at 5:39

GoogleCodeExporter commented 9 years ago
Additionally, I'm debugging and noticed that the paths for the frameworks were a
little messed up, namely UIKit and CoreGraphics.  I manually set their paths 
and was
able to have the app boot up & crash, reporting the following:

2010-03-11 12:52:25.504 MPOAuthMobile[10793:207] *** Assertion failure in
-[MPOAuthAuthenticationMethodOAuth initWithAPI:forURL:withConfiguration:],
/Users/brack/dev/applications/iphone-app/framework/mpoauthconnection/Source/Fram
ework/MPOAuthAuthenticationMethodOAuth.m:49
2010-03-11 12:52:25.506 MPOAuthMobile[10793:207] *** Terminating app due to 
uncaught
exception 'NSInternalInconsistencyException', reason: 'Incorrect number of oauth
authorization methods'

Original comment by master.b...@gmail.com on 11 Mar 2010 at 5:59

GoogleCodeExporter commented 9 years ago
Forgot to post this earlier -- this is an issue with the oauthAutoConfig.plist. 
 For
the twitter entry, MPOAuthAuthenticationMethodXAuth dictionary only has
MPOAuthAccessTokenURL.  This causes the assertion to fail because it tries to 
use
this configuration but there are < 3 entries.

Original comment by master.b...@gmail.com on 11 Mar 2010 at 9:22

GoogleCodeExporter commented 9 years ago
The problem was the XAuth support was missing from the project file. If you 
don't have XAuth for your client 
anyway, you'll still need to manually change the authenticationMethod to 
MPOAuthAuthenticationMethodOAuth. 
In a later commit I'll add code to automatically fallback to OAuth if username 
and password are not provided.

Original comment by karl.a...@gmail.com on 12 Mar 2010 at 3:28

GoogleCodeExporter commented 9 years ago
Was fixed in r130

Original comment by karl.a...@gmail.com on 12 Mar 2010 at 3:29

GoogleCodeExporter commented 9 years ago
I'm still getting the "Incorrect number of oauth
authorization methods" (using Twitter).  What can I do to fix this?

Original comment by jonathan...@gmail.com on 27 May 2010 at 7:37

GoogleCodeExporter commented 9 years ago
Having problem starting MPOAouthMobile 

getting 7 error

Unknown.m:0: error: -[MPOAuthCredentialConcreteStoreKeychainTests 
testWritingToAndReadingFromKeychain] : Keychain Access Not Currently Available
Unknown.m:0: error: -[MPOAuthSignatureParameterTests testHMACSHA1Signature] : 
Keychain Access Not Currently Available
Unknown.m:0: error: -[MPOAuthSignatureParameterTests 
testURIEscapedGeneratedSignatures_Core941] : Keychain Access Not Currently 
Available
Unknown.m:0: error: -[MPOAuthURLRequestTests testNSURLParameterEncoding_Core51] 
: 
Keychain Access Not Currently Available
Unknown.m:0: error: -[MPOAuthURLRequestTests 
testNormalizeRequestParameters_Core911] : Keychain Access Not Currently 
Available
Unknown.m:0: error: -[MPOAuthURLRequestTests testParameterDictionaries] : 
Keychain 
Access Not Currently Available
/Developer/Tools/RunPlatformUnitTests.include:390: error: Failed tests for 
architecture 'i386' (GC OFF)

although I have selected my development profile for build and , have put the 
application identifier (i.e com.xxx.xx.app) in target property. Can any one 
help. 

Original comment by ameyashetti on 3 Jun 2010 at 6:58

GoogleCodeExporter commented 9 years ago
I have the same problem....  "Incorrect number of oauth authorization 
methods"...
This code don't work... 

Original comment by mini...@gmail.com on 13 Oct 2011 at 9:34