Ich erhalte den folgenden Fehler, wenn ich versuche, einen meiner Unit- oder UI-Tests auszuführen. Tritt nicht auf, wenn die Anwendung selbst ausgeführt wird. Die Fehlermeldung ist unten dargestellt:Das Objective-C-Modul "CoreGraphics" konnte nicht erstellt werden
/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'
Ich verwende Xcode 9 in Swift 3.2-Modus und CocoaPods. Ich verwende Firebase und FirebaseUI, die leveldb
als Abhängigkeit hat. Sie können sehen, dass der Fehler zuerst in leveldb/slice.h
ausgelöst wird, die die Datei string
nicht finden kann.
Ich habe versucht, die folgenden bis zu diesem Punkt:
- Clean (Shift + CMD + K)
- entfernen DerivedData
- bereinigter Build Folder ...
- Allow Non-Modular Inklusive In Framework-Modulen in Build-Einstellungen.
pod deintegrate
,pod clean
pod install
.
Für was es wert ist, hier ist der Fehler in der Ausgabe Navigator:
Irgendwelche Vorschläge?
Ich lief 'pod update', und dann konnte das * Objective-C Modul 'CoreGraphics * error error error error ging weg, aber jetzt bin ich mit den folgenden vorgestellt Fehler: * Nicht definierte Symbole für Architektur x86_64: ld: Symbol (e) nicht für Architektur gefunden x86_64 clang: Fehler: Linker-Befehl mit Exitcode 1 fehlgeschlagen (Aufruf mit -v) Hinweis: Symbol (e) nicht für Architektur gefunden x86_64 *. – eirikvaa
Danke, es funktioniert jetzt wie erwartet! Für jeden, der den Fehler, den ich in meinem letzten Kommentar erwähnt habe, bekommt, setze 'Enable Bitcode' auf' NO'. – eirikvaa
Ich habe versucht die Workaround vorgeschlagen und es hat nichts behoben. Ich habe auch versucht, auf CocoaPods 1.4.0 beta 2 zu aktualisieren und ich bekomme '' 'lipo: -remove's specified würde stattdessen eine leere fette Datei' '' ergeben. Jede Hilfe wäre willkommen. Umgebung: Xcode 9.1 mit Swift 3.2. – DemonGyro