zoukankan      html  css  js  c++  java
  • IOS Exception 1(RangeText="[SKTexture]()")

    CompileSwift normal x86_64 com.apple.xcode.tools.swift.compiler

        cd /Users/Rubert/workspaces/Panda

        export PATH="/Applications/Xcode6-Beta2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode6-Beta2.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

        /Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -target x86_64-apple-ios8.0 -module-name Panda -O0 -sdk /Applications/Xcode6-Beta2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -g -module-cache-path /Users/Rubert/Library/Developer/Xcode/DerivedData/ModuleCache -I /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Products/Debug-iphonesimulator -F /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Products/Debug-iphonesimulator -c -j8 /Users/Rubert/workspaces/Panda/Panda/GameScene.swift /Users/Rubert/workspaces/Panda/Panda/GameViewController.swift /Users/Rubert/workspaces/Panda/Panda/Panda.swift /Users/Rubert/workspaces/Panda/Panda/AppDelegate.swift -output-file-map /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Objects-normal/x86_64/Panda-OutputFileMap.json -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Objects-normal/x86_64/Panda.swiftmodule -Xcc -iquote -Xcc /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Panda-generated-files.hmap -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Panda-own-target-headers.hmap -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Panda-all-target-headers.hmap -Xcc -iquote -Xcc /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Panda-project-headers.hmap -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Products/Debug-iphonesimulator/include -Xcc -I/Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/DerivedSources/x86_64 -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/DerivedSources -Xcc -DDEBUG=1 -emit-objc-header -emit-objc-header-path /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Objects-normal/x86_64/Panda-Swift.h

    0  swift                    0x000000010dc5ae08 llvm::sys::PrintStackTrace(__sFILE*) + 40

    1  swift                    0x000000010dc5b2f4 SignalHandler(int) + 452

    2  libsystem_platform.dylib 0x00007fff834105aa _sigtramp + 26

    3  libsystem_platform.dylib 0x00007fff52be1420 _sigtramp + 3481079440

    4  swift                    0x000000010de1f552 (anonymous namespace)::ConstraintWalker::walkToExprPost(swift::Expr*) + 162

    5  swift                    0x000000010df0d0d5 (anonymous namespace)::Traversal::visit(swift::Expr*) + 3621

    6  swift                    0x000000010df0a0e5 swift::Expr::walk(swift::ASTWalker&) + 53

    7  swift                    0x000000010de1b4b0 swift::constraints::ConstraintSystem::generateConstraints(swift::Expr*) + 96

    8  swift                    0x000000010de4d6af swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::Type, bool, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*) + 479

    9  swift                    0x000000010de51352 swift::TypeChecker::typeCheckBinding(swift::PatternBindingDecl*) + 162

    10 swift                    0x000000010de5d1c2 validatePatternBindingDecl(swift::TypeChecker&, swift::PatternBindingDecl*) + 562

    11 swift                    0x000000010de67626 swift::ASTVisitor<(anonymous namespace)::DeclChecker, void, void, void, void, void, void>::visit(swift::Decl*) + 214

    12 swift                    0x000000010de68677 swift::ASTVisitor<(anonymous namespace)::DeclChecker, void, void, void, void, void, void>::visit(swift::Decl*) + 4391

    13 swift                    0x000000010de5b360 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 112

    14 swift                    0x000000010de47008 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, unsigned int) + 1256

    15 swift                    0x000000010d245300 swift::CompilerInstance::performSema() + 2224

    16 swift                    0x000000010d01edcd frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 1885

    17 swift                    0x000000010d01e65d main + 1533

    18 libdyld.dylib            0x00007fff873bb5fd start + 1

    Stack dump:

    0. Program arguments: /Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/Rubert/workspaces/Panda/Panda/GameScene.swift /Users/Rubert/workspaces/Panda/Panda/GameViewController.swift -primary-file /Users/Rubert/workspaces/Panda/Panda/Panda.swift /Users/Rubert/workspaces/Panda/Panda/AppDelegate.swift -enable-objc-attr-requires-objc-module -target x86_64-apple-ios8.0 -module-name Panda -sdk /Applications/Xcode6-Beta2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -I /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Products/Debug-iphonesimulator -F /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Products/Debug-iphonesimulator -g -module-cache-path /Users/Rubert/Library/Developer/Xcode/DerivedData/ModuleCache -Xcc -iquote -Xcc /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Panda-generated-files.hmap -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Panda-own-target-headers.hmap -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Panda-all-target-headers.hmap -Xcc -iquote -Xcc /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Panda-project-headers.hmap -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Products/Debug-iphonesimulator/include -Xcc -I/Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/DerivedSources/x86_64 -Xcc -I/Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/DerivedSources -Xcc -DDEBUG=1 -emit-module-doc-path /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Objects-normal/x86_64/Panda~partial.swiftdoc -O0 -emit-module-path /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Objects-normal/x86_64/Panda~partial.swiftmodule -serialize-diagnostics-path /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Objects-normal/x86_64/Panda.dia -emit-dependencies-path /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Objects-normal/x86_64/Panda.d -o /Users/Rubert/Library/Developer/Xcode/DerivedData/Panda-aetklgxwmjigljcubujctlqprrdl/Build/Intermediates/Panda.build/Debug-iphonesimulator/Panda.build/Objects-normal/x86_64/Panda.o 

    1. While type-checking 'Panda' at /Users/Rubert/workspaces/Panda/Panda/Panda.swift:11:1

    2. While type-checking expression at [/Users/Rubert/workspaces/Panda/Panda/Panda.swift:13:21 - line:13:33] RangeText="[SKTexture]()"

    <unknown>:0: error: unable to execute command: Segmentation fault: 11

    <unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)

    Command /Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift failed with exit code 254

    在swift语言中,看到有人是这样定义数组var  array ="[SKTexture]()", 但是这样写会抛这样的错误,如果这样写就好了。var array = SKTexture[](),就可以了

  • 相关阅读:
    使用ffmpeg将mp4切片成ts slice 并生成m3u8命令,同时让IIS支持支持 m3u8
    C# 自动下移动光标 。winform 发送tab,在WPF中
    C# 获取当前程序路径方法整理
    Jeecg-Boot 2.0.0 版本发布,基于Springboot+Vue 前后端分离快速开发平台
    vue2.0源码-丰富的选项合并策略
    JavaScript 核心原理精讲
    前端性能优化
    Vue Router模式
    css3实现圆角三角形
    CSS动画
  • 原文地址:https://www.cnblogs.com/royi123/p/3945779.html
Copyright © 2011-2022 走看看