0 votos

Xcode no me deja usar el simulador

Xcode no me deja usar el simulador para construir aplicaciones. He probado a borrar y volver a descargar y sigue teniendo el mismo problema: Fallo con código de salida 1. Acabo de empezar un bootcamp para iOS 12 y Swift hace un par de semanas, así que todavía estoy averiguando la mayoría de las cosas. ¿Qué tengo que hacer para solucionar esto?

CopySwiftLibs

/Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse\ Mythology.app (in target: Norse Mythology)
    cd /Users/Zike/Library/Autosave\ Information/Norse\ Mythology
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk
    builtin-swiftStdLibTool --copy --verbose --sign 1BB855B5EC2A7454DBE0F820EE93868FB82CABB7 --scan-executable /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse\ Mythology.app/Norse\ Mythology --scan-folder /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse\ Mythology.app/Frameworks --scan-folder /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse\ Mythology.app/PlugIns --platform iphoneos --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse\ Mythology.app/Frameworks --strip-bitcode --resource-destination /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse\ Mythology.app --resource-library libswiftRemoteMirror.dylib --strip-bitcode-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Intermediates.noindex/Norse\ Mythology.build/Debug-iphoneos/Norse\ Mythology.build/SwiftStdLibToolInputDependencies.dep

Requested Swift ABI version based on scanned binaries: 6
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDarwin.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDarwin.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDarwin.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDarwin.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftMetal.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftMetal.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftMetal.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftMetal.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftos.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftos.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftos.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftos.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftCore.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftCore.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreImage.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftCoreImage.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreImage.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftCoreImage.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreFoundation.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftCoreFoundation.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreFoundation.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftCoreFoundation.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftUIKit.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftUIKit.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftUIKit.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftUIKit.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftSwiftOnoneSupport.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftSwiftOnoneSupport.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftSwiftOnoneSupport.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftSwiftOnoneSupport.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftQuartzCore.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftQuartzCore.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftQuartzCore.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftQuartzCore.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftObjectiveC.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftObjectiveC.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftObjectiveC.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftObjectiveC.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDispatch.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDispatch.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDispatch.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDispatch.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreGraphics.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftCoreGraphics.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreGraphics.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftCoreGraphics.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftFoundation.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib -r -o /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftFoundation.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftRemoteMirror.dylib to /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/libswiftRemoteMirror.dylib
Probing signature of /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDarwin.dylib
/usr/bin/codesign -r- --display /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDarwin.dylib
/Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDarwin.dylib: code object is not signed at all

Codesigning /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDarwin.dylib
/usr/bin/codesign --force --sign 1BB855B5EC2A7454DBE0F820EE93868FB82CABB7 --verbose /Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDarwin.dylib
/Users/Zike/Library/Developer/Xcode/DerivedData/Norse_Mythology-ayyvdkolhkmofsczhivtkebjinmx/Build/Products/Debug-iphoneos/Norse Mythology.app/Frameworks/libswiftDarwin.dylib: errSecInternalComponent

error: Fallo con código de salida 1

1voto

Kevin Peterson Puntos 4456

A menudo, este tipo de problemas se pueden resolver limpiando (borrando el contenido) de la carpeta de Datos Derivados.

Fuente :

Cómo borrar la caché de Xcode manualmente

1. Limpiar la construcción

Consejo: Si estás intentando solucionar un problema de bloqueo de Xcode, vale la pena limpiar primero la compilación del proyecto. Esto eliminará la compilación actual y creará una nueva la próxima vez que ejecute el código.

  1. Con el proyecto abierto en código, vaya a la barra de menú, elija Product -> Clean o:
  2. Con el proyecto abierto, pulse Command + Shift + K .

2. Limpiar la carpeta de construcción

Para limpiar la carpeta de construcción, y deshacerse de los archivos de caché, haga lo siguiente:

  1. En el proyecto Code, haga clic en el menú Product mientras mantiene pulsado Option y elija Clean build folder o:
  2. Pulse Command + Shift + Option + K .

3. Restablecer el contenido y la configuración del simulador

Si ninguno de los pasos anteriores resuelve tu problema, intenta restablecer el contenido y la configuración del simulador:

Vaya al menú y elija iOS Simulator y luego haga clic en Reset Content and Settings .

4. Borrar los datos derivados

Si sigues teniendo problemas, prueba a borrar los datos derivados, lo que obligará a Xcode a volver a crearlos la próxima vez que lo ejecutes.

  1. En el menú, seleccione Window -> Organizer .
  2. Ahora seleccione Projects -> Select your project .
  3. Seleccione el proyecto cuyos datos derivados desea eliminar.
  4. En la ventana que se abre, verá la carpeta de Datos Derivados en la lista, junto con su ruta en el Finder.
  5. A la derecha de la carpeta, hay un Delete botón. Púlsalo.

Ahora, borre la caché del módulo.

  1. Ir a: ~/Library/Developer/Xcode/DerivedData/ModuleCache .
  2. Arrastre los archivos de la carpeta ModuleCache a la papelera y vacíela.

AppleAyuda.com

AppleAyuda es una comunidad de usuarios de los productos de Apple en la que puedes resolver tus problemas y dudas.
Puedes consultar las preguntas de otros usuarios, hacer tus propias preguntas o resolver las de los demás.

Powered by:

X