ユニットテストまたはUIテストを実行しようとすると、次のエラーが発生します。アプリケーション自体を実行しているときには発生しません。エラーメッセージは次のとおりです。Objective-CモジュールCoreGraphicsを構築できません
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:
#include <CoreFoundation/CFBase.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/CoreFoundation.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
#include <CoreFoundation/CFBase.h>
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:
#include <Block.h>
^
/Users/eirik/Documents/Utvikling/iOS/ProsjekterSamarbeid/AnchorPoint Fishing as/FerskFiskiOS/Pods/leveldb-library/table/Block.h:10:10: note: in file included from /Users/eirik/Documents/Utvikling/iOS/ProsjekterSamarbeid/AnchorPoint Fishing as/FerskFiskiOS/Pods/leveldb-library/table/Block.h:10:
#include "leveldb/iterator.h"
^
/Users/eirik/Documents/Utvikling/iOS/ProsjekterSamarbeid/AnchorPoint Fishing as/FerskFiskiOS/Pods/leveldb-library/include/leveldb/iterator.h:18:10: note: in file included from /Users/eirik/Documents/Utvikling/iOS/ProsjekterSamarbeid/AnchorPoint Fishing as/FerskFiskiOS/Pods/leveldb-library/include/leveldb/iterator.h:18:
#include "leveldb/slice.h"
/Users/eirik/Documents/Utvikling/iOS/ProsjekterSamarbeid/AnchorPoint Fishing as/FerskFiskiOS/Pods/leveldb-library/include/leveldb/slice.h:21:10: error: 'string' file not found
#include <string>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/CoreGraphics.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:
#include <CoreGraphics/CGBase.h>
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: error: could not build module 'CoreFoundation'
#include <CoreFoundation/CFBase.h>
^
<unknown>:0: error: could not build Objective-C module 'CoreGraphics'
私はSwift 3.2モードとCocoaPodsでXcode 9を使用しています。私は依存関係としてleveldb
を持っているFirebaseとFirebaseUIを使用しています。エラーが最初にでトリガーされ、string
ファイルが見つからないことがわかります。
私はこの時点までに、次の試してみました:
- クリーン(Shiftキー+ CMD + K)
- をDerivedData
- クリーンフォルダを作成し削除...
- 非モジュラーに含めることができますビルド設定のフレームワークモジュールで。
pod deintegrate
,pod clean
pod install
。任意の提案:それはここでは、価値が課題ナビゲーターにエラー何のために
?
私は 'pod update'を実行し、* Objective-Cモジュールを構築できませんでしたCoreGraphics *エラーはなくなりましたが、アーキテクチャx86_64用の未定義シンボル:アーキテクチャ用のシンボルが見つかりませんx86_64 clang:エラー:リンカコマンドが終了コード1で失敗しました(呼び出しを見るには-vを使用します)注:アーキテクチャでシンボルが見つかりませんx86_64 *。 – eirikvaa
ありがとうございます、今は期待どおりに動作しています!最後のコメントで言及したエラーを受け取った人は、「Enable Bitcode」を「NO」に設定してください。 – eirikvaa
回避策を試してみましたが、何も修正されませんでした。私はまた、CocoaPods 1.4.0 beta 2へのアップデートを試みました。そして、 '' 'lipo:-removeが指定されると、空のファットファイルが生成されます.'''となりました。どんな助けもありがとう。 環境:Swift 3.2を使用するXcode 9.1。 – DemonGyro