【发布时间】:2016-04-05 13:47:46
【问题描述】:
我在尝试归档我的项目时遇到了问题。在设备、模拟器或运行单元测试上运行时一切正常,但是当我尝试归档它时,我收到 Segmentation fault 11 错误。除其他外,错误的突出部分似乎是:
/Users/[USER]/Projects/[PROJECT]/[PROJECT]-ios/[PROJECT]/[PROJECT]-Bridging-Header.h:15:9: error: 'Mixpanel.h' file not found
#import "Mixpanel.h"
^
0 swift 0x00000001033e84eb llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1 swift 0x00000001033e77d6 llvm::sys::RunSignalHandlers() + 70
2 swift 0x00000001033e8b4f SignalHandler(int) + 287
3 libsystem_platform.dylib 0x00007fff84e9252a _sigtramp + 26
4 libsystem_platform.dylib 0x00007f9ffc822bf0 _sigtramp + 2006517472
5 swift 0x0000000101604397 swift::ClangImporter::Implementation::addEntryToLookupTable(clang::Sema&, swift::SwiftLookupTable&, clang::NamedDecl*) + 151
6 swift 0x0000000101604462 swift::ClangImporter::Implementation::addEntryToLookupTable(clang::Sema&, swift::SwiftLookupTable&, clang::NamedDecl*) + 354
7 swift 0x0000000101604ec9 swift::ClangImporter::Implementation::importHeader(swift::ModuleDecl*, llvm::StringRef, swift::SourceLoc, bool, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> >) + 985
8 swift 0x0000000101605656 swift::ClangImporter::importBridgingHeader(llvm::StringRef, swift::ModuleDecl*, swift::SourceLoc, bool) + 502
9 swift 0x00000001015f5c29 swift::CompilerInstance::performSema() + 601
10 swift 0x000000010113a326 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&) + 934
11 swift 0x000000010113941d frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 2781
12 swift 0x0000000101134e3c main + 1932
13 libdyld.dylib 0x00007fff8a0d15ad start + 1
Stack dump:
我正在使用 cocoapods 进行包管理,并在同一个项目中使用 swift + objc。
任何帮助将不胜感激。
【问题讨论】: