Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

482
Views
Xcode 10.2, Swift 5, el comando compileSwift falló al compilar el programa con el esquema de lanzamiento

Estoy usando Xcode 10.2, Swift 5.

Con el esquema de depuración, no ocurre ningún problema, pero con el esquema de lanzamiento cuando construyo o archive, muestra que Command compileSwift falló con un código de salida distinto de cero.

Intenté eliminar DerivedData / Clean / pod deintegrate & pod install & pod update. Ninguno de estos funciona.

ingrese la descripción de la imagen aquíingrese la descripción de la imagen aquí

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Para mi proyecto, el problema estaba relacionado con la Cache del módulo, que genera un error cuando el Optimization Level para la Release se establece en Optimize for Speed [-O] . Configuré el Compilation Mode en Whole Module nuevamente y configuré el nivel de optimización para el pod en el archivo pod:

 post_install do |installer| installer.pods_project.targets.each do |target| # Cache pod does not accept optimization level '-O', causing Bus 10 error. Use '-Osize' or '-Onone' if target.name == 'Cache' target.build_configurations.each do |config| level = '-Osize' config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = level puts "Set #{target.name} #{config.name} to Optimization Level #{level}" end end end end

Referencia: https://github.com/hyperoslo/Cache/issues/233#issuecomment-477749560

over 4 years ago · Santiago Trujillo Report

0

Solucioné este problema yendo a Pods Project y luego a la configuración de construcción y configurando el Modo de compilación en Incremental para Release . Luego limpie y archive, entonces debería compilar bien.

over 4 years ago · Santiago Trujillo Report

0

Así que tuve el mismo problema al actualizar mi proyecto a Swift 5. Por alguna razón, Cocoapods (última versión, 1.6.1) configuró SWIFT_VERSION de algunos pods en Swift 5 incluso si se lanzaron como Swift 4, 4.1, 4.2 pods. Así que tuve que agregar un script posterior a la instalación que estableciera la versión de corrección de Swift así

 post_install do |installer| installer.pods_project.targets.each do |target| if target.name == 'CryptoSwift' || target.name == 'SwiftyBeaver' target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '4.2' end end end end
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!