Swift / Xcode 7问题与CocoaPods安装SlackTextViewController

时间:2015-10-06 14:50:43

标签: ios iphone xcode swift cocoapods

我之前完成了所有这些工作,但现在它不起作用 继承人的步骤: 1- Cd项目/<<项目文件夹 2-pod init 3-open -a Xcode Podfile 4-xcode打开>删除文本替换它 5- pod安装

在项目文件夹中我得到 PodFile + 文件名为:Pods

    Analyzing dependencies

CocoaPods 0.39.0.rc.1 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

dyld: warning, LC_RPATH @executable_path/../../../../../../../SharedFrameworks in /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/../../..//DVTInstrumentsFoundation.framework/Versions/A/DVTInstrumentsFoundation being ignored in restricted program because of @executable_path
dyld: warning, LC_RPATH @executable_path/../lib in /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib being ignored in restricted program because of @executable_path
dyld: warning, LC_RPATH @executable_path/../lib in /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib being ignored in restricted program because of @executable_path
dyld: warning, LC_RPATH @executable_path/../Frameworks in /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/MacOS/Xcode3Core being ignored in restricted program because of @executable_path
Downloading dependencies
Installing SlackTextViewController (1.7)
Generating Pods project
2015-10-06 17:40:44.328 ruby[24848:729221] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8228/IDEFoundation/Initialization/IDEInitialization.m:590
Details:  Assertion failed: _initializationCompletedSuccessfully
Function: BOOL IDEIsInitializedForUserInteraction()
Thread:   <NSThread: 0x7fda9385d7c0>{number = 1, name = main}
Hints: None
Backtrace:
  0  0x000000010a433a4c -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1  0x000000010a4331d9 _DVTAssertionHandler (in DVTFoundation)
  2  0x000000010a433445 _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x000000010a4333a7 _DVTAssertionFailureHandler (in DVTFoundation)
  4  0x000000010d24cf5c IDEIsInitializedForUserInteraction (in IDEFoundation)
  5  0x000000010fd28e49 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
  6  0x000000010fd2a9ce +[PBXProject projectWithFile:errorHandler:] (in DevToolsCore)
  7  0x00007fff96db4f14 ffi_call_unix64 (in libffi.dylib)
Abort trap: 6

1 个答案:

答案 0 :(得分:3)

我能够按照以下步骤在示例项目中安装没有问题:

  1. cd project
  2. sudo gem install cocoapods(输入密码)
  3. pod setup
  4. pico Podfile(它创建一个Podfile) 在我的Podifle中:

    平台:ios,&#39; 8.0&#39;

    pod&#39; SlackTextViewController&#39;

  5. pod install