にスウィフトサポートしてカルタゴ経由MailCore2の追加:は、私がここでできる限りバニラようになろうとしてXcodeの
新プロジェクト - > OS X->アプリケーション - >言語(スウィフト)名(MailCoreTest) 閉じるプロジェクト 追加その中の1行を持つプロジェクトのルートにCartfile:
/Users/theuser/Documents/XCode/MailCoreTest/Carthage/Checkouts/mailcore2/src/async/imap/MCIMAPAsyncSession.cpp:793:66: warning: 'gmailUserDisplayName' is deprecated [-Wdeprecated-declarations]
/Users/theuser/Documents/XCode/MailCoreTest/Carthage/Checkouts/mailcore2/src/async/imap/MCIMAPAsyncSession.cpp:793:66: warning: 'gmailUserDisplayName' is deprecated [-Wdeprecated-declarations]
オープン:githubの「MailCore/mailcore2」 実行カルタゴ更新--platform MacOSXのプロジェクトのルートからは 警告のカップルが、本当の問題を取得しますXcodeのプロジェクトをもう一度 Oアプリケーションターゲットの「一般設定」タブ、「埋め込みバイナリ」セクションで、Carthageが作成したMailCore.frameworkをドラッグアンドドロップします。 私もこの段階でアプリが正常にビルドが、私が追加したときに製品ディレクトリファイルをコピーフェーズ にdSYMを追加:スウィフト・ブリッジング・HEADER.Hファイルに
#import <MailCore/MailCore.h>
#import <MailCore/MCOConstants.h>
とObjectiveに追加-Cブリッジヘッダーのビルド設定
MailCoreTest Group
/Users/theuser/Documents/XCode/MailCoreTest/Carthage/Build/Mac/MailCore.framework/Headers/MCIndexSet.h
/Users/theuser/Documents/XCode/MailCoreTest/Carthage/Build/Mac/MailCore.framework/Headers/MCIndexSet.h:15:10: Include of non-modular header inside framework module 'MailCore.MCIndexSet'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCIMAPConnectOperation.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCIMAPNoopOperation.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCMainThread.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCMXRecordResolverOperation.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCNNTPCheckAccountOperation.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCONNTPDisconnectOperation.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCOPOPNoopOperation.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCOSMTPLoginOperation.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCPOPNoopOperation.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCSizeFormatter.h'
/Users/theuser/Documents/XCode/MailCoreTest/<module-includes>:1:1: Umbrella header for module 'MailCore' does not include header 'MCSMTPNoopOperation.h'
/Users/theuser/Documents/XCode/MailCoreTest/MailCoreTest/Swift-Bridging-Header.h
/Users/theuser/Documents/XCode/MailCoreTest/MailCoreTest/Swift-Bridging-Header.h:12:9: Could not build module 'MailCore'
Failed to import bridging header '/Users/theuser/Documents/XCode/MailCoreTest/MailCoreTest/Swift-Bridging-Header.h'
私はこれが別のプロジェクトで動作しています。私はそれに対してカートゥージ更新を実行することもでき、何も壊れない。何時間も働いて新しいプロジェクトを再現しようとしたが、私はそれを働かせることはできない。私は何かが欠落しているに違いないが、それが何であるか、どこを見てもわからない。
「Target」の下でBuild Settingsを試して、「Framework Modulesに非モジュラーインクルードを許可」をYESに設定しましたが、同じ結果が得られました。他の作業プロジェクトではこれはNOに設定されています。
はい、それがなかったの助けをしたと警告し、潜在的なメモリリークなど第一の束をクリアし、私は、私が持っていたMC2を削除し、マスタをチェックアウトし、再度これを追加しましたReadme.mdの指示に従います –