6
respostas

Erro ao gerar build " Segmentation fault: 11"

Quando tento fazer o build para emular no device o Xcode me retorna o seguinte erro:

CompileSwift normal x86_64 /Users/edu/Documents/eggplant-brownie/eggplant-brownie/eggplant-brownie/ViewController.swift (in target: eggplant-brownie)
    cd /Users/edu/Documents/eggplant-brownie/eggplant-brownie
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/edu/Documents/eggplant-brownie/eggplant-brownie/eggplant-brownie/ViewController.swift /Users/edu/Documents/eggplant-brownie/eggplant-brownie/eggplant-brownie/AppDelegate.swift -emit-module-path /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/Objects-normal/x86_64/ViewController~partial.swiftmodule -emit-module-doc-path /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/Objects-normal/x86_64/ViewController~partial.swiftdoc -serialize-diagnostics-path /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/Objects-normal/x86_64/ViewController.dia -emit-dependencies-path /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/Objects-normal/x86_64/ViewController.d -emit-reference-dependencies-path /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/Objects-normal/x86_64/ViewController.swiftdeps -target x86_64-apple-ios12.1-simulator -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -I /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Products/Debug-iphonesimulator -F /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Products/Debug-iphonesimulator -enable-testing -g -module-cache-path /Users/edu/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 4.2 -enforce-exclusivity=checked -Onone -D DEBUG -serialize-debugging-options -Xcc -I/Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/eggplant-brownie-generated-files.hmap -Xcc -I/Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/eggplant-brownie-own-target-headers.hmap -Xcc -I/Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/eggplant-brownie-all-target-headers.hmap -Xcc -iquote -Xcc /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/eggplant-brownie-project-headers.hmap -Xcc -I/Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/DerivedSources/x86_64 -Xcc -I/Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/edu/Documents/eggplant-brownie/eggplant-brownie -module-name eggplant_brownie -o /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Build/Intermediates.noindex/eggplant-brownie.build/Debug-iphonesimulator/eggplant-brownie.build/Objects-normal/x86_64/ViewController.o -index-store-path /Users/edu/Library/Developer/Xcode/DerivedData/eggplant-brownie-hkgxqocwfvhlevdzoqdomchnzhbe/Index/DataStore -index-system-modules

0  swift                    0x000000010e60759a PrintStackTraceSignalHandler(void*) + 42
1  swift                    0x000000010e606d4e SignalHandler
6 respostas

Oi Edu, tudo bem?

Poderia compartilhar o seu código no git para eu poder te ajudar?

Abraço!

Oi tudo bem! Sim posso: https://github.com/dudulive/eggplant-brownie

Fiz o download do projeto e está vazio.. você fez o commit e o push com as últimas alterações?

Abs.

É o projeto inicial do primeiro curso de ios . Ainda não implementei os botões e os campos, por que queria fazer o build primeiro mais não estou conseguindo.

Entendi.

Faz o seguinte, tenta fazer um clean no projeto:

Clica em: Product -> Clean

E tenta rodar o projeto de novo... qualquer coisa me avisa.

Abs.

Fiz o clean no projeto e não funcionou.