【问题标题】:Segmentation fault 11 - Bridging-header分段错误 11 - 桥接头
【发布时间】: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。

任何帮助将不胜感激。

【问题讨论】:

    标签: ios xcode swift swift2


    【解决方案1】:

    我通过将Pods/** 添加到我的应用目标上的User Header Search Paths 构建设置来解决此问题

    希望这对将来的某人有所帮助。

    【讨论】:

    • 导致新错误 file not found with include;用户引用而不是
    猜你喜欢
    • 1970-01-01
    • 2015-09-14
    • 2016-10-14
    • 1970-01-01
    • 1970-01-01
    • 2012-09-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多