xcode打包User interaction is not allowed

最近在做xcode自动打包的工具,遇到不少错误,列一下遇到错误的解决方案,以方便自己以后查看:

1、

2015-03-23 15:48:25.015 xcodebuild[10166:204416] [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-6611/IDEFoundation/SourceControl/Model/IDESourceControlManager.m:423
Details:  Error Domain=com.apple.dt.IDESourceControlErrorDomain Code=-1 "Missing extension: public.vcs.subversion" UserInfo=0x7f84ace487c0 {NSLocalizedDescription=Missing extension: public.vcs.subversion}
Object:   <IDESourceControlManager: 0x7f84acd73ee0>
Method:   -loadRepositories
Thread:   <NSThread: 0x7f84aac35bc0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

只是一个警告,原因和svn有关,可以直接忽略。

2、

User interaction is not allowed。

这是网上很多人遇到问题。

是因为苹果因为安全原因,默认不允许ssh登陆读取keychain。

这里使用http://www.egeek.me/2013/02/23/jenkins-and-xcode-user-interaction-is-not-allowed/提供的解决方法。

#允许使用login.keychain
security unlock ~/Library/Keychains/login.keychain

#修改过期时间
security set-keychain-settings -t 3600 -l ~/Library/Keychains/login.keychain

#查看修改后的时间
security show-keychain-info ~/Library/Keychains/login.keychain

 

xcode 自动打包的原理很简单:

1、使用xcodebuild编译工程。

2、使用xcrun -sdk iphoneos PackageApplication,打包为ipa。

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /opt/wordpress/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048