简体   繁体   English

Xcode 6.3.1:iOS应用程序运行但不会存档

[英]Xcode 6.3.1: iOS app runs but won't archive

On Xcode 6.3.1 using a multi-project workspace - two Swift frameworks, the app itself, and Cocoapods. 在使用多项目工作区的Xcode 6.3.1上-两个Swift框架,应用程序本身和Cocoapods。 I can successfully build and run the app both on the simulator as well as my iPhones, but when I try to Archive it, I get: 我可以在模拟器以及iPhone上成功构建并运行该应用程序,但是当我尝试对其进行存档时,我得到:

Command failed due to signal: Segmentation fault: 11

This error appears to happen on two of my view controller files, but I have no idea what is wrong with them. 这个错误似乎发生在我的两个视图控制器文件中,但是我不知道它们有什么问题。 Tried building from command line. 从命令行尝试构建。 Fruitless. 无果而终。 I've also messed with my build settings, as has been suggested in other questions, to no avail. 正如其他问题所建议的那样,我也弄乱了我的构建设置,但无济于事。

Has anyone experienced the same issue? 有没有人遇到过同样的问题? Can't submit anything to app store or make a test IPA :( Here is the stack trace produced: 无法将任何东西提交到应用商店或进行IPA测试:(这是产生的堆栈跟踪:

    0  swift                    0x0000000109d14a18 llvm::sys::PrintStackTrace(__sFILE*) + 40
    1  swift                    0x0000000109d14ef4 SignalHandler(int) + 452
    2  libsystem_platform.dylib 0x00007fff8fbb0f1a _sigtramp + 26
    3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1883566336
    4  swift                    0x00000001097f0d85 (anonymous namespace)::EmitDFDiagnostics::run() + 469
    5  swift                    0x00000001097fa55e swift::SILPassManager::runFunctionPasses(llvm::ArrayRef<swift::SILFunctionTransform*>) + 1310
    6  swift                    0x00000001097fb6a7 swift::SILPassManager::runOneIteration() + 2359
    7  swift                    0x00000001097fbe1c swift::SILPassManager::run() + 1212
    8  swift                    0x00000001097f8725 swift::runSILDiagnosticPasses(swift::SILModule&) + 597
    9  swift                    0x00000001095fdd6f frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 4319
    10 swift                    0x00000001095fcae6 main + 1814
    11 libdyld.dylib            0x00007fff8ff895c9 start + 1

I had the exact same problem. 我有同样的问题。 I discovered the thing that was keeping the app from successfully archiving was the fact that i used the find() function to find the index of an item in an array. 我发现阻止应用程序成功归档的原因是我使用find()函数在数组中查找项目的索引。 That function is provided by Swift, but when used in my actual codebase it wouldn't archive. 该功能由Swift提供,但是当在我的实际代码库中使用时,它不会存档。 I'm assuming there may be a couple stock functions that are preventing archiving. 我假设可能有几个阻止归档的备用函数。 And keep in mind, these functions build and can run on the simulator, but they will not archive. 请记住,这些功能可以构建并可以在模拟器上运行,但是不会存档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM