checkout code from SVN repository gives error in xcode 5 - ios

I am trying to checkout code from SVN repository, which fails giving below error after providing the credentials and Repository address.
The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
And below in the console :
IDESourceControlAuthentication: Couldn't remove password from
keychain: Error Domain=DVTSecErrorDomain Code=-25300 "The specified
item could not be found in the keychain." UserInfo=0x7fe7f5320860
{NSLocalizedDescription=The specified item could not be found in the
keychain.}
Note that it was working fine up to Xcode 4.6 and started giving me error after updating to Xcode 5.

Connect once using command line tools and accept server certificate permanently. You won't have any problems afterwards.
Just run an svn command like svn info and you should see sth like below
svn info https://svn.codespot.com/a/eclipselabs.org/xtext-utils/subprojects/unittesting/branches
Error validating server certificate for 'https://svn.codespot.com:443':
The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
Hostname: *.googlecode.com
Valid: from Wed, 16 Feb 2011 00:27:28 GMT until Thu, 16 Feb 2012 00:37:28 GMT
Issuer: Google Inc, US
Fingerprint: 34:4b:90:e7:e3:36:81:0d:52:1f:10:c0:4c:98:66:90:4a:9e:05:c9
(R)eject, accept (t)emporarily or accept (p)ermanently?
Accept permanently or temporarily to continue.
However I strongly recommend any other subversion client application or command line tools which are much more reliable compared to Xcode.

Related

Why is my Rails app not pushing to Github? (error:1407742E:SSL )

I am finishing off a blog tutorial and am trying to do my final push to GitHub and Heroku. I just added the popper gem to the Gemfile and then tried to push to GitHub as usual using git push origin master.
Normally it then asks for my username and password, but instead I got the following error and have no idea what it means or why I got it. I haven't changed anything else as far as I remember.
fatal: unable to access 'https://github.com/<username>/FrogBlog.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
I am unsure how to proceed, as this message means nothing to me. I can post more files from my project if required, please advise.
GitHub recently deprecated some old and insecure cryptographic standards, including TLSv1, which is referenced in your error message:
On February 8, 2018 we’ll start disabling the following:
TLSv1/TLSv1.1: This applies to all HTTPS connections, including web, API, and git connections to https://github.com and https://api.github.com.
diffie-hellman-group1-sha1: This applies to all SSH connections to github.com
diffie-hellman-group14-sha1: This applies to all SSH connections to github.com
We’ll disable the algorithms in two stages:
February 8, 2018 19:00 UTC (11:00 am PST): Disable deprecated algorithms for one hour
February 22, 2018 19:00 UTC (11:00 am PST): Permanently disable deprecated algorithms
Most Git clients should continue to work, but there are some known incompatibilities.
If you update your Git client (it looks like you're using the standard CLI client?) pushing to GitHub will probably start working again.

TFS Java SDK Error (NativeAuth - Error configuring native authentication library)

We are sending files to TFS using the TFS Java SDK.
The files have been successfully sent until August 30 and the following error message occurs after August 30.
This problem occurred on AIX Server.
What should I check?
NativeAuth - Error configuring native authentication library
java.lang.UnsatifiedLinkError: com/microsoft/tfs/jni/internal/auth/NativeAuth.nativeAuthConfigure()J
at com.microsoft.tfs.jni.internal.auth.NativeAuth.<cinit>(NativeAuth.java:53)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:201)
at com.microsoft.tfs.jni.internal.negotiate.NativeNegotiate.isAvailable(NativeNegotiate.java:52)
...
Instead of API, you can try to run the get command to retrieve files from TFS:
tf get

Xcode Server Bot won't connect to Gitlab server (Fails to integrate)

I'm trying to integrate a simple Xcode Bot with my Xcode server.
I'm using OS X Server 5 Beta 3 and Xcode 7 Beta 5
I create a bot and everything goes great. I use an existing ssh key for connecting to this git repository on gitlab and that works fine everywhere else and even Xcode (in accounts preferences) seems to not have a problem with the repo.
But when I go to integrate the bot, it fails to check out the source with:
Failed to authenticate SSH session: Callback returned error (-1)
I've tried changing this to use my actual gitlab credentials instead of the ssh key and I get the same error. It doesn't seem to matter what I use for the bot, it fails to sign in. Yet all of those credentials work on gitlab using git and Xcode itself just fine.
Anyone else run into this? And/or are there any better logs somewhere of what's going on?
Not much in the verbosity in the xcodebuild logs on the server either:
2015-08-10 09:42:28.303 xcsbuildd[14203:84978] XCSIntegrationExecutor.m:229 [XCSIntegrationExecutor integrationStep:didFinishWithError:result:] [BuildService, Error] XCSCheckoutIntegrationStep finished integration with an error: Error Domain=XCSBuildServiceDomain Code=-1 "Could not checkout sources because the source control information is in an invalid format. UserInfo=0x7fb8ece65810 {NSLocalizedDescription=Could not checkout sources because the source control information is in an invalid format., XCSErrorFixItType=scm-failure}
Not sure what it means by invalid format?:
Could not checkout sources because the source control information is
in an invalid format

Error verifying the remote agent configuration 'vs-mda-remote test' fails with 'Error: not enough data'

I am following steps according to "Install Tools to Build for iOS" on msdn https://msdn.microsoft.com/en-us/library/dn771551.aspx, to setup an iOS build..
On my Mac, I get the following error when I execute the "vs-mda-remote test" command..
Initializing self test for https
downloading cert for pin 390276
Downloading client cert for selftest from https://myMac:3000/certs/390276 to /Users/fred/remote-builds/selftest/selftest-client.pfx
pfxPath: /Users/fred/remote-builds/selftest/selftest-client.pfx
serverUrl: https://myMac:3000
buildUrl: https://myMac:3000/build/tasks?vcordova=4.1.2&cfg=release&command=build&options=--emulator
_tls_common.js:176
c.context.loadPKCS12(pfx);
^
Error: not enough data
at Error (native)
at Object.createSecureContext (_tls_common.js:176:17)
at Object.exports.connect (_tls_wrap.js:850:21)
at Agent.createConnection (https.js:82:14)
at Agent.createSocket (_http_agent.js:194:16)
at Agent.addRequest (_http_agent.js:166:23)
at new ClientRequest (_http_client.js:154:16)
at Object.exports.request (http.js:49:10)
at Object.exports.request (https.js:136:15)
at Request.start (/usr/local/lib/node_modules/vs-mda-remote/node_modules/request/request.js:674:30)
The server appears to be sending one..
vs-mda-remote
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
0.2.7
Loading resources for language en from /usr/local/lib/node_modules/vs-mda-remote/resources/en/resources.json
Build Retention initialized with baseBuildDir /Users/fred/remote-builds/builds, maxBuildsToKeep 20
Initialized BuildManager with installedCordovaVersion: 4.1.2; baseBuildDir /Users/fred/remote-builds/builds; maxBuildsInQueue 10; deleteBuildsOnShutdown true; allowsEmulate true; nextBuildNumber 1479
ios-sim is installed on path at: /usr/local/lib/node_modules/vs-mda-remote/node_modules/ios-sim/build/release/ios-sim
Remote build server listening on [https] port 3000
GET /certs/390276 200 1ms - 3.51kb
Trouble shooting tried:
- to ensure that iOS profiles and xCode developer certs exist - I tested that I can deploy a test app to an iPad.
- rerun install and checked every message to look for failure, none
- regenerated serverCert and clientCert multiple times
possibly linked
- the pfxPath is valid and a pfx does exist. (other issues around this issue indicate that a passphrase must be passed to the context object and I cannot find any passphrase being passed, but this code https://sourcegraph.com/github.com/joyent/node/.CommonJSPackage/node/.def/commonjs/lib/_tls_common.js/-/createSecureContext #176 seems to handle no passphrase..
I've just had the same problem, but managed to figure it out - the following was configured Mac
1: Start the Server without TLS security
vs-mda-remote --secure false
2: Test the server (launch another terminal)
vs-mda-remote test --server http://localhost:3000
At this point - you shouldn't get any errors (this was failing here because the test mode seems to use TLS by default, and the only way to test with no security, is to manually specifiy the server URL)
3: Configure visual studio as per the documentation
https://msdn.microsoft.com/en-us/library/dn771551.aspx
I have managed to get mine working great as of about 5 minutes ago using this. One point to make, in visual studio (2003 + CTP3.1) make sure you select iOS (to the right of the build mode drop down), if you don't select iOS then the iOS specific devices will not appear in the run list - sounds trivial, but it took me a few seconds scratching my head why I couldn't deploy to iOS remotely when I had Android build selected
Hope that helps you out!

Not able to download the source code of a deployed application on Google App Engine using appcfg command

I'm using java and have deployed some applications on Google App Engine and trying to download the source code for one of the deployed applications using the command line tool appcfg however with no luck. It's not able to authenticate and I'm not able to figure out why ?
Here's the command that I'm using :
appcfg -A mailboxsigma download_app c:\users\rkumar2\desktop\destination
After issuing the command here's the output :
Oct 27, 2014 10:04:32 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
0% Fetching file list...
Oct 27, 2014 10:04:35 PM com.google.appengine.tools.admin.AbstractServerConnecti
on send1
WARNING: Error posting to URL: https://appengine.google.com/api/files/list?app_i
d=mailboxsigma&
401 Unauthorized
Must authenticate first.
This is try #0
Email: raghvendra1669#gmail.com
Password for raghvendra1669#gmail.com:
Email:
As you can see in the output that after I enter my gmail credentials i.e email and password it starts asking again for the email so I do it again and upon repetitively entering the credentials it fails.
I checked my App Engine Console for correctness of the deployed application's identifier and found it to be correct. What am I missing here ?
Email: raghvendra1669#gmail.com
Password for raghvendra1669#gmail.com:
Email: raghvendra1669#gmail.com
Password for raghvendra1669#gmail.com:
Error Details:
Email "raghvendra1669#gmail.com" and password do not match.
Unable to fetch file list
.
Google disables login via apps deemed "less secure". This includes the appcfg in the SDK. What you can do is enable less secure apps.
Alternatively, you can use OAuth2.
As command line authentication has been disabled due to security reasons we can use OAuth2 for authentication. To use the same from the command line we need to indicate that we are going to use OAuth2 for authentication by passing an argument in the command--auth2.
So command would look something like this :
appcfg -A mailboxsigma --oauth2 download_app c:\users\rkumar2\desktop\destination
After issuing this command it opens up a authentication window in the browser and when you accept the authentication it will generate a key which you need to enter in the command prompt and your download starts.
Note : Downloading an app will downloads all .class files and not really the source files so you need to decompile using a suitable decompiler.

Resources